%sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget'/translations/zh_CN/core-api/kernel-apimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/zh_TW/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/it_IT/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ja_JP/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ko_KR/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/sp_SP/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hThe Linux Kernel APIh]hThe Linux Kernel API}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api.rsthKubh)}(hhh](h)}(hBasic C Library Functionsh]hBasic C Library Functions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hX#When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined by ANSI, and these deviations are noted in the text.h]hX#When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined by ANSI, and these deviations are noted in the text.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(hString Conversionsh]hString Conversions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlesimple_strtoull (C function)c.simple_strtoullhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hSunsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)h]hdesc_signature_line)}(hRunsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)h](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKgubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKgubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKgubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKgubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKgubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKgubh desc_name)}(hsimple_strtoullh]h desc_sig_name)}(hsimple_strtoullh]hsimple_strtoull}(hjnhhhNhNubah}(h]h ]nah"]h$]h&]uh1jlhjhubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jfhjhhhjhKgubhdesc_parameterlist)}(h0(const char *cp, char **endp, unsigned int base)h](hdesc_parameter)}(hconst char *cph](hdesc_sig_keyword)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hendph]hendp}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKgubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKgubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhjhKghhhhubh desc_content)}(hhh]h)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKghjhhubah}(h]h ]h"]h$]h&]uh1jhhhhhjhKgubeh}(h]h ](cfunctioneh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh container)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoull instead.h](h)}(h**Parameters**h]hstrong)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKkhjubhdefinition_list)}(hhh](hdefinition_list_item)}(h+``const char *cp`` The start of the string h](hterm)}(h``const char *cp``h]hliteral)}(hjh]hconst char *cp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhhjubh definition)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjBh]h char **endp}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKihj<ubj)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKihjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKihjubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hj{h]hunsigned int base}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKjhjuubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKlhjubh)}(h8This function has caveats. Please use kstrtoull instead.h]h8This function has caveats. Please use kstrtoull instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsimple_strtoul (C function)c.simple_strtoulhNtauh1hhhhhhNhNubh)}(hhh](j)}(hMunsigned long simple_strtoul (const char *cp, char **endp, unsigned int base)h]j)}(hLunsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKvubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKvubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKvubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKvubjg)}(hsimple_strtoulh]jm)}(hsimple_strtoulh]hsimple_strtoul}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKvubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(h char **endph](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hendph]hendp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hbaseh]hbase}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKvhjhhubj)}(hhh]h)}(h$convert a string to an unsigned longh]h$convert a string to an unsigned long}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKvhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoul instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKzhj~ubj)}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hjh]hconst char *cp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKwhjubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjh]h char **endp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKxhjubj)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKyhjubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKyhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKyhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK{hj~ubh)}(h7This function has caveats. Please use kstrtoul instead.h]h7This function has caveats. Please use kstrtoul instead.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKzhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsimple_strtol (C function)c.simple_strtolhNtauh1hhhhhhNhNubh)}(hhh](j)}(hClong simple_strtol (const char *cp, char **endp, unsigned int base)h]j)}(hBlong simple_strtol(const char *cp, char **endp, unsigned int base)h](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h simple_strtolh]jm)}(h simple_strtolh]h simple_strtol}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hendph]hendp}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h!convert a string to a signed longh]h!convert a string to a signed long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtol instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubj)}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hj!h]hconst char *cp}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjZh]h char **endp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjTubj)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubh)}(h6This function has caveats. Please use kstrtol instead.h]h6This function has caveats. Please use kstrtol instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsimple_strtoll (C function)c.simple_strtollhNtauh1hhhhhhNhNubh)}(hhh](j)}(hIlong long simple_strtoll (const char *cp, char **endp, unsigned int base)h]j)}(hHlong long simple_strtoll(const char *cp, char **endp, unsigned int base)h](j )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj)}(h h]h }(hj" hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj! hKubj )}(hlongh]hlong}(hj0 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhj! hKubj)}(h h]h }(hj> hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj! hKubjg)}(hsimple_strtollh]jm)}(hsimple_strtollh]hsimple_strtoll}(hjP hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj! hKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh ubj)}(h h]h }(hjy hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh ubjm)}(hcph]hcp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubj)}(h char **endph](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hendph]hendp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj& hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjB hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hbaseh]hbase}(hjP hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj! hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj! hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj! hKhj hhubj)}(hhh]h)}(h&convert a string to a signed long longh]h&convert a string to a signed long long}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjw hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj! hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoll instead.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj)}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hj h]hconst char *cp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hj h]h char **endp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hj- h]hunsigned int base}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj' ubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB hKhjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh h]h Description}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubh)}(h7This function has caveats. Please use kstrtoll instead.h]h7This function has caveats. Please use kstrtoll instead.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvsnprintf (C function) c.vsnprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hIint vsnprintf (char *buf, size_t size, const char *fmt_str, va_list args)h]j)}(hHint vsnprintf(char *buf, size_t size, const char *fmt_str, va_list args)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(h vsnprintfh]jm)}(h vsnprintfh]h vsnprintf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubj)}(h;(char *buf, size_t size, const char *fmt_str, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj/ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj, ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj1 modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jJ ASTIdentifier)}jE j sb c.vsnprintfasbuh1hhj( ubj)}(h h]h }(hjW hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj( ubjm)}(hsizeh]hsize}(hje hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj( ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubjm)}(hfmt_strh]hfmt_str}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jS c.vsnprintfasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hargsh]hargs}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM hj hhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj1 hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjL jjL jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt_str`` The format string to use ``va_list args`` Arguments for the format string **Description** This function generally follows C99 vsnprintf, but has some extensions and a few limitations: - ````n```` is unsupported - ````p*```` is handled by pointer() See pointer() or Documentation/core-api/printk-formats.rst for more extensive description. **Please update the documentation in both places when making changes** The return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated. If you're not already dealing with a va_list consider using snprintf().h](h)}(h**Parameters**h]j)}(hjV h]h Parameters}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hju h]h char *buf}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjo ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj h]h size_t size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl ubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hj h]hconst char *fmt_str}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hj h]h va_list args}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM hjl ubeh}(h]h ]h"]h$]h&]uh1jhjP ubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubh)}(h]This function generally follows C99 vsnprintf, but has some extensions and a few limitations:h]h]This function generally follows C99 vsnprintf, but has some extensions and a few limitations:}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubh block_quote)}(h@- ````n```` is unsupported - ````p*```` is handled by pointer() h]h bullet_list)}(hhh](h list_item)}(h````n```` is unsupportedh]h)}(hjh](j)}(h ````n````h]h``n``}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is unsupported}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h#````p*```` is handled by pointer() h]h)}(h"````p*```` is handled by pointer()h](j)}(h ````p*````h]h``p*``}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is handled by pointer()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjP ubh)}(hZSee pointer() or Documentation/core-api/printk-formats.rst for more extensive description.h]hZSee pointer() or Documentation/core-api/printk-formats.rst for more extensive description.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubh)}(hF**Please update the documentation in both places when making changes**h]j)}(hjh]hBPlease update the documentation in both places when making changes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubh)}(hXkThe return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing ‘0’, as per ISO C99. If you want to have the exact number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hjhhhNhNubj)}(h**size**h]hsize}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$, the resulting string is truncated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubh)}(hGIf you're not already dealing with a va_list consider using snprintf().h]hIIf you’re not already dealing with a va_list consider using snprintf().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvscnprintf (C function) c.vscnprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hFint vscnprintf (char *buf, size_t size, const char *fmt, va_list args)h]j)}(hEint vscnprintf(char *buf, size_t size, const char *fmt, va_list args)h](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmhhhjhM ubjg)}(h vscnprintfh]jm)}(h vscnprintfh]h vscnprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhjhM ubj)}(h7(char *buf, size_t size, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.vscnprintfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hcharh]hchar}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hfmth]hfmt}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vscnprintfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhM ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjfhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX=**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt`` The format string to use ``va_list args`` Arguments for the format string **Description** The return value is the number of characters which have been written into the **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0. If you're not already dealing with a va_list consider using scnprintf(). See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj1h]h char *buf}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj+ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM hj(ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hjjh]h size_t size}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjdubj)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM hj(ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj(ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjh]h va_list args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hThe return value is the number of characters which have been written into the **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0.h](hNThe return value is the number of characters which have been written into the }(hj-hhhNhNubj)}(h**buf**h]hbuf}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh) not including the trailing ‘0’. If }(hj-hhhNhNubj)}(h**size**h]hsize}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh is == 0 the function returns 0.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hHIf you're not already dealing with a va_list consider using scnprintf().h]hJIf you’re not already dealing with a va_list consider using scnprintf().}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsnprintf (C function) c.snprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h;int snprintf (char *buf, size_t size, const char *fmt, ...)h]j)}(h:int snprintf(char *buf, size_t size, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsnprintfh]jm)}(hsnprintfh]hsnprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h.(char *buf, size_t size, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsb c.snprintfasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(h...h]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX'**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to **size**, the resulting string is truncated. See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj/h]h char *buf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj)ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM hj&ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hjhh]h size_t size}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjbubj)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM hj&ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hThe return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to }(hj+hhhNhNubj)}(h**size**h]hsize}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh$, the resulting string is truncated.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hscnprintf (C function) c.scnprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hubj)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hj}h]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjwubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) not including the trailing ‘0’. If }(hjhhhNhNubj)}(h**size**h]hsize}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is == 0 the function returns 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvsprintf (C function) c.vsprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h7int vsprintf (char *buf, const char *fmt, va_list args)h]j)}(h6int vsprintf(char *buf, const char *fmt, va_list args)h](j )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhM ubjg)}(hvsprintfh]jm)}(hvsprintfh]hvsprintf}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhM ubj)}(h*(char *buf, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE j}sb c.vsprintfasbuh1hhj2ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubjm)}(hargsh]hargs}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhM hjOhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``const char *fmt`` The format string to use ``va_list args`` Arguments for the format string **Description** The function returns the number of characters written into **buf**. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows. If you're not already dealing with a va_list consider using sprintf(). See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hj h]hconst char *fmt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjDh]h va_list args}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj>ubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe function returns the number of characters written into **buf**. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.h](h;The function returns the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hFIf you're not already dealing with a va_list consider using sprintf().h]hHIf you’re not already dealing with a va_list consider using sprintf().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsprintf (C function) c.sprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h-int sprintf (char *buf, const char *fmt, ...)h]j)}(h,int sprintf(char *buf, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsprintfh]jm)}(hsprintfh]hsprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h!(char *buf, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hbufh]hbuf}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The function returns the number of characters written into **buf**. Use snprintf() or scnprintf() in order to avoid buffer overflows. See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj:h]h char *buf}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj4ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjsh]hconst char *fmt}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjmubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe function returns the number of characters written into **buf**. Use snprintf() or scnprintf() in order to avoid buffer overflows.h](h;The function returns the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC. Use snprintf() or scnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvbin_printf (C function) c.vbin_printfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hNint vbin_printf (u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h]j)}(hMint vbin_printf(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhj[hM ubjg)}(h vbin_printfh]jm)}(h vbin_printfh]h vbin_printf}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhj[hM ubj)}(h>(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j)}(h u32 *bin_bufh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jpsb c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbin_bufh]hbin_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hfmt_strh]hfmt_str}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM hjBhhubj)}(hhh]h)}(h>Parse a format string and place args' binary value in a bufferh]h@Parse a format string and place args’ binary value in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX5**Parameters** ``u32 *bin_buf`` The buffer to place args' binary value ``size_t size`` The size of the buffer(by words(32bits), not characters) ``const char *fmt_str`` The format string to use ``va_list args`` Arguments for the format string **Description** The format follows C99 vsnprintf, except ``n`` is ignored, and its argument is skipped. The return value is the number of words(32bits) which would be generated for the given input. **NOTE** If the return value is greater than **size**, the resulting bin_buf is NOT valid for bstr_printf().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM$ hjubj)}(hhh](j)}(h8``u32 *bin_buf`` The buffer to place args' binary value h](j)}(h``u32 *bin_buf``h]j)}(hj h]h u32 *bin_buf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM! hjubj)}(hhh]h)}(h&The buffer to place args' binary valueh]h(The buffer to place args’ binary value}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM! hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM! hjubj)}(hI``size_t size`` The size of the buffer(by words(32bits), not characters) h](j)}(h``size_t size``h]j)}(hjYh]h size_t size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM" hjSubj)}(hhh]h)}(h8The size of the buffer(by words(32bits), not characters)h]h8The size of the buffer(by words(32bits), not characters)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM" hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM" hjubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hjh]hconst char *fmt_str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM# hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM# hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM# hjubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjh]h va_list args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM$ hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$ hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM& hjubh)}(hWThe format follows C99 vsnprintf, except ``n`` is ignored, and its argument is skipped.h](h)The format follows C99 vsnprintf, except }(hj hhhNhNubj)}(h``n``h]hn}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) is ignored, and its argument is skipped.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM% hjubh)}(h]The return value is the number of words(32bits) which would be generated for the given input.h]h]The return value is the number of words(32bits) which would be generated for the given input.}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM( hjubh)}(h**NOTE**h]j)}(hjN h]hNOTE}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM+ hjubh)}(hcIf the return value is greater than **size**, the resulting bin_buf is NOT valid for bstr_printf().h](h$If the return value is greater than }(hjd hhhNhNubj)}(h**size**h]hsize}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd ubh7, the resulting bin_buf is NOT valid for bstr_printf().}(hjd hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM, hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbstr_printf (C function) c.bstr_printfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hQint bstr_printf (char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h]j)}(hPint bstr_printf(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(h bstr_printfh]jm)}(h bstr_printfh]h bstr_printf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubj)}(hA(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbufh]hbuf}(hj !hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj'!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)!modnameN classnameNjI jL )}jO ]jR )}jE j sb c.bstr_printfasbuh1hhj !ubj)}(h h]h }(hjG!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj !ubjm)}(hsizeh]hsize}(hjU!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj !ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hjn!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj!ubj)}(h h]h }(hj{!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj!ubj )}(hcharh]hchar}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj!ubjm)}(hfmt_strh]hfmt_str}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst u32 *bin_bufh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hu32h]hu32}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jC! c.bstr_printfasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hbin_bufh]hbin_buf}(hj""hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM hj hhubj)}(hhh]h)}(h>Format a string from binary arguments and place it in a bufferh]h>Format a string from binary arguments and place it in a buffer}(hjL"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjI"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjd"jjd"jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt_str`` The format string to use ``const u32 *bin_buf`` Binary arguments for the format string **Description** This function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from **bin_buf** which is a binary buffer that generated by vbin_printf. The format follows C99 vsnprintf, but has some extensions: see vsnprintf comment for details. The return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](h)}(h**Parameters**h]j)}(hjn"h]h Parameters}(hjp"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj"h]h char *buf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj"ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj"ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj"h]h size_t size}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj"ubj)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj"ubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hj"h]hconst char *fmt_str}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj"ubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj"ubj)}(h>``const u32 *bin_buf`` Binary arguments for the format string h](j)}(h``const u32 *bin_buf``h]j)}(hj8#h]hconst u32 *bin_buf}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6#ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj2#ubj)}(hhh]h)}(h&Binary arguments for the format stringh]h&Binary arguments for the format string}(hjQ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM#hM hjN#ubah}(h]h ]h"]h$]h&]uh1jhj2#ubeh}(h]h ]h"]h$]h&]uh1jhjM#hM hj"ubeh}(h]h ]h"]h$]h&]uh1jhjh"ubh)}(h**Description**h]j)}(hjs#h]h Description}(hju#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq#ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"ubh)}(hThis function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from **bin_buf** which is a binary buffer that generated by vbin_printf.h](hThis function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from }(hj#hhhNhNubj)}(h **bin_buf**h]hbin_buf}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh8 which is a binary buffer that generated by vbin_printf.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"ubj)}(hhh]j)}(h^The format follows C99 vsnprintf, but has some extensions: see vsnprintf comment for details. h](j)}(h:The format follows C99 vsnprintf, but has some extensions:h]h:The format follows C99 vsnprintf, but has some extensions:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj#ubj)}(hhh]h)}(h"see vsnprintf comment for details.h]h"see vsnprintf comment for details.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhjh"ubh)}(hXkThe return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing ‘0’, as per ISO C99. If you want to have the exact number of characters written into }(hj#hhhNhNubj)}(h**buf**h]hbuf}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hj#hhhNhNubj)}(h**size**h]hsize}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh$, the resulting string is truncated.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvsscanf (C function) c.vsscanfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h*h]h Parameters}(hj@*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj8*ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hj]*h]h const char *s}(hj_*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjW*ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hjv*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjs*ubah}(h]h ]h"]h$]h&]uh1jhjW*ubeh}(h]h ]h"]h$]h&]uh1jhjr*hKhjT*ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj*h]hunsigned int base}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjT*ubj)}(hO``unsigned long *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned long *res``h]j)}(hj*h]hunsigned long *res}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjT*ubeh}(h]h ]h"]h$]h&]uh1jhj8*ubh)}(h**Description**h]j)}(hj +h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj +ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj8*ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.}(hj"+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj8*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtol (C function) c.kstrtolhNtauh1hhhhhhNhNubh)}(hhh](j)}(h9int kstrtol (const char *s, unsigned int base, long *res)h]j)}(h8int kstrtol(const char *s, unsigned int base, long *res)h](j )}(hinth]hint}(hjQ+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjM+hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK,ubj)}(h h]h }(hj`+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM+hhhj_+hK,ubjg)}(hkstrtolh]jm)}(hkstrtolh]hkstrtol}(hjr+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjM+hhhj_+hK,ubj)}(h-(const char *s, unsigned int base, long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hjE)h]hs}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hbaseh]hbase}(hj",hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h long *resh](j )}(hlongh]hlong}(hj;,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7,ubj)}(h h]h }(hjI,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7,ubj)}(hjh]h*}(hjW,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7,ubjm)}(hresh]hres}(hjd,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjM+hhhj_+hK,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI+hhhj_+hK,ubah}(h]jD+ah ](jjeh"]h$]h&]jj)jhuh1hhj_+hK,hjF+hhubj)}(hhh]h)}(hconvert a string to a longh]hconvert a string to a long}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK,hj,hhubah}(h]h ]h"]h$]h&]uh1jhjF+hhhj_+hK,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhhhNhNubj)}(hXQ**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK0hj,ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj,h]h const char *s}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK/hj,ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK-hj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hK/hj,ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj -h]hunsigned int base}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK4hj-ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj"-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK0hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hK4hj,ubj)}(hF``long *res`` Where to write the result of the conversion on success. h](j)}(h ``long *res``h]j)}(hjC-h]h long *res}(hjE-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK5hj=-ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj\-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX-hK5hjY-ubah}(h]h ]h"]h$]h&]uh1jhj=-ubeh}(h]h ]h"]h$]h&]uh1jhjX-hK5hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hj~-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|-ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK7hj,ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK6hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtoull (C function) c.kstrtoullhNtauh1hhhhhhNhNubh)}(hhh](j)}(hIint kstrtoull (const char *s, unsigned int base, unsigned long long *res)h]j)}(hHint kstrtoull(const char *s, unsigned int base, unsigned long long *res)h](j )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKuubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hKuubjg)}(h kstrtoullh]jm)}(h kstrtoullh]h kstrtoull}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hKuubj)}(h;(const char *s, unsigned int base, unsigned long long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj .hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj )}(hcharh]hchar}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj).hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj7.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hjE)h]hs}(hjD.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj\.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX.ubj)}(h h]h }(hjj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX.ubj )}(hinth]hint}(hjx.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX.ubjm)}(hbaseh]hbase}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long long *resh](j )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hresh]hres}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hKuubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hKuhj-hhubj)}(hhh]h)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hj8/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKuhj5/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP/jjP/jjjuh1hhhhhhNhNubj)}(hXg**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``unsigned long long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hjZ/h]h Parameters}(hj\/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKyhjT/ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hjy/h]h const char *s}(hj{/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKxhjs/ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKvhj/ubah}(h]h ]h"]h$]h&]uh1jhjs/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKxhjp/ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj/h]hunsigned int base}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK}hj/ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKyhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hK}hjp/ubj)}(hT``unsigned long long *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned long long *res``h]j)}(hj/h]hunsigned long long *res}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK~hj/ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hK~hj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hK~hjp/ubeh}(h]h ]h"]h$]h&]uh1jhjT/ubh)}(h**Description**h]j)}(hj(0h]h Description}(hj*0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&0ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjT/ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.}(hj>0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjT/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtoll (C function) c.kstrtollhNtauh1hhhhhhNhNubh)}(hhh](j)}(h?int kstrtoll (const char *s, unsigned int base, long long *res)h]j)}(h>int kstrtoll(const char *s, unsigned int base, long long *res)h](j )}(hinth]hint}(hjm0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji0hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj|0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji0hhhj{0hKubjg)}(hkstrtollh]jm)}(hkstrtollh]hkstrtoll}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhji0hhhj{0hKubj)}(h2(const char *s, unsigned int base, long long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hjE)h]hs}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hinth]hint}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj01hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hbaseh]hbase}(hj>1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hlong long *resh](j )}(hlongh]hlong}(hjW1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS1ubj)}(h h]h }(hje1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS1ubj )}(hlongh]hlong}(hjs1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS1ubjm)}(hresh]hres}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhji0hhhj{0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhje0hhhj{0hKubah}(h]j`0ah ](jjeh"]h$]h&]jj)jhuh1hhj{0hKhjb0hhubj)}(hhh]h)}(hconvert a string to a long longh]hconvert a string to a long long}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhjb0hhhj{0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhhhNhNubj)}(hXW**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``long long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj2h]h const char *s}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj2ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj1ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hjA2h]hunsigned int base}(hjC2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj;2ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hjZ2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjW2ubah}(h]h ]h"]h$]h&]uh1jhj;2ubeh}(h]h ]h"]h$]h&]uh1jhjV2hKhj1ubj)}(hK``long long *res`` Where to write the result of the conversion on success. h](j)}(h``long long *res``h]j)}(hj{2h]hlong long *res}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhju2ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhju2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtouint (C function) c.kstrtouinthNtauh1hhhhhhNhNubh)}(hhh](j)}(hDint kstrtouint (const char *s, unsigned int base, unsigned int *res)h]j)}(hCint kstrtouint(const char *s, unsigned int base, unsigned int *res)h](j )}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj 3hKubjg)}(h kstrtouinth]jm)}(h kstrtouinth]h kstrtouint}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj 3hKubj)}(h5(const char *s, unsigned int base, unsigned int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj83hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj43ubj)}(h h]h }(hjE3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj43ubj )}(hcharh]hchar}(hjS3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj43ubj)}(h h]h }(hja3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj43ubj)}(hjh]h*}(hjo3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj43ubjm)}(hjE)h]hs}(hj|3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj43ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hbaseh]hbase}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubj)}(hunsigned int *resh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hresh]hres}(hj*4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj 3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj 3hKubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj 3hKhj2hhubj)}(hhh]h)}(h#convert a string to an unsigned inth]h#convert a string to an unsigned int}(hjT4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjQ4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj 3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjl4jjl4jjjuh1hhhhhhNhNubj)}(hX`**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``unsigned int *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hjv4h]h Parameters}(hjx4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt4ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hj4h]h const char *s}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj4h]hunsigned int base}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubj)}(hN``unsigned int *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned int *res``h]j)}(hj 5h]hunsigned int *res}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj5ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj"5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj4ubeh}(h]h ]h"]h$]h&]uh1jhjp4ubh)}(h**Description**h]j)}(hjD5h]h Description}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB5ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.}(hjZ5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtoint (C function) c.kstrtointhNtauh1hhhhhhNhNubh)}(hhh](j)}(h:int kstrtoint (const char *s, unsigned int base, int *res)h]j)}(h9int kstrtoint(const char *s, unsigned int base, int *res)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hKubjg)}(h kstrtointh]jm)}(h kstrtointh]h kstrtoint}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hKubj)}(h,(const char *s, unsigned int base, int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj )}(hcharh]hchar}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hjE)h]hs}(hj 6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj"6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj06hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hj>6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjL6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hbaseh]hbase}(hjZ6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint *resh](j )}(hinth]hint}(hjs6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo6ubjm)}(hresh]hres}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKubah}(h]j|5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hKhj~5hhubj)}(hhh]h)}(hconvert a string to an inth]hconvert a string to an int}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhj~5hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhhhNhNubj)}(hXP**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``int *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6ubj)}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj7h]h const char *s}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj7ubj)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hjA7h]hunsigned int base}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj;7ubj)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjW7ubah}(h]h ]h"]h$]h&]uh1jhj;7ubeh}(h]h ]h"]h$]h&]uh1jhjV7hKhj6ubj)}(hE``int *res`` Where to write the result of the conversion on success. h](j)}(h ``int *res``h]j)}(hj{7h]hint *res}(hj}7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhju7ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhju7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtobool (C function) c.kstrtoboolhNtauh1hhhhhhNhNubh)}(hhh](j)}(h)int kstrtobool (const char *s, bool *res)h]j)}(h(int kstrtobool(const char *s, bool *res)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMSubj)}(h h]h }(hj 8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj 8hMSubjg)}(h kstrtoboolh]jm)}(h kstrtoboolh]h kstrtobool}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj 8hMSubj)}(h(const char *s, bool *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj88hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubj)}(h h]h }(hjE8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj48ubj )}(hcharh]hchar}(hjS8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj48ubj)}(h h]h }(hja8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj48ubj)}(hjh]h*}(hjo8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubjm)}(hjE)h]hs}(hj|8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj48ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj08ubj)}(h bool *resh](j )}(hboolh]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hresh]hres}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj08ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj 8hMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj 8hMSubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj 8hMShj7hhubj)}(hhh]h)}(h.convert common user inputs into boolean valuesh]h.convert common user inputs into boolean values}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMShj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj 8hMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char *s`` input string ``bool *res`` result **Description** This routine returns 0 iff the first character is one of 'YyTt1NnFf0', or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.h](h)}(h**Parameters**h]j)}(hj 9h]h Parameters}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMWhj9ubj)}(hhh](j)}(h``const char *s`` input string h](j)}(h``const char *s``h]j)}(hj(9h]h const char *s}(hj*9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&9ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMThj"9ubj)}(hhh]h)}(h input stringh]h input string}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=9hMThj>9ubah}(h]h ]h"]h$]h&]uh1jhj"9ubeh}(h]h ]h"]h$]h&]uh1jhj=9hMThj9ubj)}(h``bool *res`` result h](j)}(h ``bool *res``h]j)}(hja9h]h bool *res}(hjc9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_9ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMUhj[9ubj)}(hhh]h)}(hresulth]hresult}(hjz9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv9hMUhjw9ubah}(h]h ]h"]h$]h&]uh1jhj[9ubeh}(h]h ]h"]h$]h&]uh1jhjv9hMUhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMWhj9ubh)}(hThis routine returns 0 iff the first character is one of 'YyTt1NnFf0', or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.h]hThis routine returns 0 iff the first character is one of ‘YyTt1NnFf0’, or [oO][NnFf] for “on” and “off”. Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMVhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstring_get_size (C function)c.string_get_sizehNtauh1hhhhhhNhNubh)}(hhh](j)}(hdint string_get_size (u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h]j)}(hcint string_get_size(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj9hKubjg)}(hstring_get_sizeh]jm)}(hstring_get_sizeh]hstring_get_size}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj9hKubj)}(hP(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hj!:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#:modnameN classnameNjI jL )}jO ]jR )}jE j:sbc.string_get_sizeasbuh1hhj:ubj)}(h h]h }(hjA:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hsizeh]hsize}(hjO:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h u64 blk_sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjk:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjm:modnameN classnameNjI jL )}jO ]j=:c.string_get_sizeasbuh1hhjd:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd:ubjm)}(hblk_sizeh]hblk_size}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h"const enum string_size_units unitsh](j)}(hjh]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(henumh]henum}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hstring_size_unitsh]hstring_size_units}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]j=:c.string_get_sizeasbuh1hhj:ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hunitsh]hunits}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h char *bufh](j )}(hcharh]hchar}(hj/;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+;ubj)}(h h]h }(hj=;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+;ubj)}(hjh]h*}(hjK;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+;ubjm)}(hbufh]hbuf}(hjX;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hint lenh](j )}(hinth]hint}(hjq;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjm;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjm;ubjm)}(hlenh]hlen}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hKhj9hhubj)}(hhh]h)}(h#get the size in the specified unitsh]h#get the size in the specified units}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``u64 size`` The size to be converted in blocks ``u64 blk_size`` Size of the block (use 1 for size in bytes) ``const enum string_size_units units`` Units to use (powers of 1000 or 1024), whether to include space separator ``char *buf`` buffer to format to ``int len`` length of buffer **Description** This function returns a string formatted to 3 significant figures giving the size in the required units. **buf** should have room for at least 9 bytes and will always be zero terminated. Return value: number of characters of output that would have been written (which may be greater than len, if output was truncated).h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj;ubj)}(hhh](j)}(h0``u64 size`` The size to be converted in blocks h](j)}(h ``u64 size``h]j)}(hj;h]hu64 size}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj;ubj)}(hhh]h)}(h"The size to be converted in blocksh]h"The size to be converted in blocks}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj <hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj <hKhj;ubj)}(h=``u64 blk_size`` Size of the block (use 1 for size in bytes) h](j)}(h``u64 blk_size``h]j)}(hj1<h]h u64 blk_size}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj+<ubj)}(hhh]h)}(h+Size of the block (use 1 for size in bytes)h]h+Size of the block (use 1 for size in bytes)}(hjJ<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF<hKhjG<ubah}(h]h ]h"]h$]h&]uh1jhj+<ubeh}(h]h ]h"]h$]h&]uh1jhjF<hKhj;ubj)}(hq``const enum string_size_units units`` Units to use (powers of 1000 or 1024), whether to include space separator h](j)}(h&``const enum string_size_units units``h]j)}(hjj<h]h"const enum string_size_units units}(hjl<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjd<ubj)}(hhh]h)}(hIUnits to use (powers of 1000 or 1024), whether to include space separatorh]hIUnits to use (powers of 1000 or 1024), whether to include space separator}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhjd<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj;ubj)}(h"``char *buf`` buffer to format to h](j)}(h ``char *buf``h]j)}(hj<h]h char *buf}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj<ubj)}(hhh]h)}(hbuffer to format toh]hbuffer to format to}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj;ubj)}(h``int len`` length of buffer h](j)}(h ``int len``h]j)}(hj<h]hint len}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj<ubj)}(hhh]h)}(hlength of bufferh]hlength of buffer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK hj;ubh)}(hThis function returns a string formatted to 3 significant figures giving the size in the required units. **buf** should have room for at least 9 bytes and will always be zero terminated.h](hjThis function returns a string formatted to 3 significant figures giving the size in the required units. }(hj-=hhhNhNubj)}(h**buf**h]hbuf}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-=ubhJ should have room for at least 9 bytes and will always be zero terminated.}(hj-=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj;ubh)}(hReturn value: number of characters of output that would have been written (which may be greater than len, if output was truncated).h]hReturn value: number of characters of output that would have been written (which may be greater than len, if output was truncated).}(hjN=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK#hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!parse_int_array_user (C function)c.parse_int_array_userhNtauh1hhhhhhNhNubh)}(hhh](j)}(hMint parse_int_array_user (const char __user *from, size_t count, int **array)h]j)}(hLint parse_int_array_user(const char __user *from, size_t count, int **array)h](j )}(hinth]hint}(hj}=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjy=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy=hhhj=hKubjg)}(hparse_int_array_userh]jm)}(hparse_int_array_userh]hparse_int_array_user}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjy=hhhj=hKubj)}(h4(const char __user *from, size_t count, int **array)h](j)}(hconst char __user *fromh](j)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hcharh]hchar}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh__user}(hj=hhhNhNubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hfromh]hfrom}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hj,>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.>modnameN classnameNjI jL )}jO ]jR )}jE j=sbc.parse_int_array_userasbuh1hhj%>ubj)}(h h]h }(hjL>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%>ubjm)}(hcounth]hcount}(hjZ>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h int **arrayh](j )}(hinth]hint}(hjs>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo>ubjm)}(harrayh]harray}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjy=hhhj=hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhju=hhhj=hKubah}(h]jp=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hKhjr=hhubj)}(hhh]h)}(h(Split string into a sequence of integersh]h(Split string into a sequence of integers}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>hhubah}(h]h ]h"]h$]h&]uh1jhjr=hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char __user *from`` The user space buffer to read from ``size_t count`` The maximum number of bytes to read ``int **array`` Returned pointer to sequence of integers **Description** On success **array** is allocated and initialized with a sequence of integers extracted from the **from** plus an additional element that begins the sequence and specifies the integers count. Caller takes responsibility for freeing **array** when it is no longer needed.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubj)}(hhh](j)}(h?``const char __user *from`` The user space buffer to read from h](j)}(h``const char __user *from``h]j)}(hj?h]hconst char __user *from}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj?ubj)}(hhh]h)}(h"The user space buffer to read fromh]h"The user space buffer to read from}(hj-?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)?hKhj*?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj)?hKhj ?ubj)}(h5``size_t count`` The maximum number of bytes to read h](j)}(h``size_t count``h]j)}(hjM?h]h size_t count}(hjO?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjG?ubj)}(hhh]h)}(h#The maximum number of bytes to readh]h#The maximum number of bytes to read}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb?hKhjc?ubah}(h]h ]h"]h$]h&]uh1jhjG?ubeh}(h]h ]h"]h$]h&]uh1jhjb?hKhj ?ubj)}(h9``int **array`` Returned pointer to sequence of integers h](j)}(h``int **array``h]j)}(hj?h]h int **array}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj?ubj)}(hhh]h)}(h(Returned pointer to sequence of integersh]h(Returned pointer to sequence of integers}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj ?ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubh)}(hOn success **array** is allocated and initialized with a sequence of integers extracted from the **from** plus an additional element that begins the sequence and specifies the integers count.h](h On success }(hj?hhhNhNubj)}(h **array**h]harray}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhM is allocated and initialized with a sequence of integers extracted from the }(hj?hhhNhNubj)}(h**from**h]hfrom}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhV plus an additional element that begins the sequence and specifies the integers count.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubh)}(hNCaller takes responsibility for freeing **array** when it is no longer needed.h](h(Caller takes responsibility for freeing }(hj @hhhNhNubj)}(h **array**h]harray}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj @ubh when it is no longer needed.}(hj @hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstring_unescape (C function)c.string_unescapehNtauh1hhhhhhNhNubh)}(hhh](j)}(hKint string_unescape (char *src, char *dst, size_t size, unsigned int flags)h]j)}(hJint string_unescape(char *src, char *dst, size_t size, unsigned int flags)h](j )}(hinth]hint}(hjK@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjZ@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG@hhhjY@hMubjg)}(hstring_unescapeh]jm)}(hstring_unescapeh]hstring_unescape}(hjl@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjG@hhhjY@hMubj)}(h7(char *src, char *dst, size_t size, unsigned int flags)h](j)}(h char *srch](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hsrch]hsrc}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h char *dsth](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hdsth]hdst}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jn@sbc.string_unescapeasbuh1hhjAubj)}(h h]h }(hj/AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hsizeh]hsize}(hj=AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjVAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRAubj)}(h h]h }(hjdAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRAubj )}(hinth]hint}(hjrAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRAubjm)}(hflagsh]hflags}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjG@hhhjY@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjC@hhhjY@hMubah}(h]j>@ah ](jjeh"]h$]h&]jj)jhuh1hhjY@hMhj@@hhubj)}(hhh]h)}(h&unquote characters in the given stringh]h&unquote characters in the given string}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@@hhhjY@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *src`` source buffer (escaped) ``char *dst`` destination buffer (unescaped) ``size_t size`` size of the destination buffer (0 to unlimit) ``unsigned int flags`` combination of the flags. **Description** The function unquotes characters in the given string. Because the size of the output will be the same as or less than the size of the input, the transformation may be performed in place. Caller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are:: UNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous together **Return** The amount of the characters processed to the destination buffer excluding trailing '\0' is returned.h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM!hjAubj)}(hhh](j)}(h&``char *src`` source buffer (escaped) h](j)}(h ``char *src``h]j)}(hjAh]h char *src}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjAubj)}(hhh]h)}(hsource buffer (escaped)h]hsource buffer (escaped)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubj)}(h-``char *dst`` destination buffer (unescaped) h](j)}(h ``char *dst``h]j)}(hj2Bh]h char *dst}(hj4BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj,Bubj)}(hhh]h)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGBhMhjHBubah}(h]h ]h"]h$]h&]uh1jhj,Bubeh}(h]h ]h"]h$]h&]uh1jhjGBhMhjAubj)}(h>``size_t size`` size of the destination buffer (0 to unlimit) h](j)}(h``size_t size``h]j)}(hjkBh]h size_t size}(hjmBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hjeBubj)}(hhh]h)}(h-size of the destination buffer (0 to unlimit)h]h-size of the destination buffer (0 to unlimit)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1jhjeBubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjAubj)}(h1``unsigned int flags`` combination of the flags. h](j)}(h``unsigned int flags``h]j)}(hjBh]hunsigned int flags}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM!hjBubj)}(hhh]h)}(hcombination of the flags.h]hcombination of the flags.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM!hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM!hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM#hjAubh)}(h5The function unquotes characters in the given string.h]h5The function unquotes characters in the given string.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM#hjAubh)}(hBecause the size of the output will be the same as or less than the size of the input, the transformation may be performed in place.h]hBecause the size of the output will be the same as or less than the size of the input, the transformation may be performed in place.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM%hjAubh)}(hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are::h]hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM(hjAubh literal_block)}(hXUNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous togetherh]hXUNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous together}hj$Csbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM,hjAubh)}(h **Return**h]j)}(hj5Ch]hReturn}(hj7ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Cubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM>hjAubh)}(heThe amount of the characters processed to the destination buffer excluding trailing '\0' is returned.h]hiThe amount of the characters processed to the destination buffer excluding trailing ‘0’ is returned.}(hjKChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM?hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstring_escape_mem (C function)c.string_escape_memhNtauh1hhhhhhNhNubh)}(hhh](j)}(hpint string_escape_mem (const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h]j)}(hoint string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](j )}(hinth]hint}(hjzChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvChhhjChMubjg)}(hstring_escape_memh]jm)}(hstring_escape_memh]hstring_escape_mem}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvChhhjChMubj)}(hZ(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](j)}(hconst char *srch](j)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hcharh]hchar}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hsrch]hsrc}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t iszh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.string_escape_memasbuh1hhjDubj)}(h h]h }(hj7DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hiszh]hisz}(hjEDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h char *dsth](j )}(hcharh]hchar}(hj^DhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZDubj)}(h h]h }(hjlDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZDubj)}(hjh]h*}(hjzDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZDubjm)}(hdsth]hdst}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t oszh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]j3Dc.string_escape_memasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hoszh]hosz}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hflagsh]hflags}(hj EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hconst char *onlyh](j)}(hjh]hconst}(hj9EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubj)}(h h]h }(hjFEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Eubj )}(hcharh]hchar}(hjTEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5Eubj)}(h h]h }(hjbEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Eubj)}(hjh]h*}(hjpEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubjm)}(honlyh]honly}(hj}EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjvChhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrChhhjChMubah}(h]jmCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjoChhubj)}(hhh]h)}(h+quote characters in the given memory bufferh]h+quote characters in the given memory buffer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjoChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhhhNhNubj)}(hX **Parameters** ``const char *src`` source buffer (unescaped) ``size_t isz`` source buffer size ``char *dst`` destination buffer (escaped) ``size_t osz`` destination buffer size ``unsigned int flags`` combination of the flags ``const char *only`` NULL-terminated string containing characters used to limit the selected escape class. If characters are included in **only** that would not normally be escaped by the classes selected in **flags**, they will be copied to **dst** unescaped. **Description** The process of escaping byte buffer includes several parts. They are applied in the following sequence. 1. The character is not matched to the one from **only** string and thus must go as-is to the output. 2. The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output. 3. The character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output. 4. The character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored. Caller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are:: %ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classes ``ESCAPE_APPEND`` would help to pass additional characters to the escaped, when one of ``ESCAPE_NP``, ``ESCAPE_NA``, or ``ESCAPE_NAP`` is provided. One notable caveat, the ``ESCAPE_NAP``, ``ESCAPE_NP`` and ``ESCAPE_NA`` have the higher priority than the rest of the flags (``ESCAPE_NAP`` is the highest). It doesn't make much sense to use either of them without ``ESCAPE_OCTAL`` or ``ESCAPE_HEX``, because they cover most of the other character classes. ``ESCAPE_NAP`` can utilize ``ESCAPE_SPACE`` or ``ESCAPE_SPECIAL`` in addition to the above. **Return** The total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a '\0' terminator if and only if ret < osz.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj)}(hhh](j)}(h.``const char *src`` source buffer (unescaped) h](j)}(h``const char *src``h]j)}(hjEh]hconst char *src}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj)}(hhh]h)}(hsource buffer (unescaped)h]hsource buffer (unescaped)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h"``size_t isz`` source buffer size h](j)}(h``size_t isz``h]j)}(hj!Fh]h size_t isz}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj)}(hhh]h)}(hsource buffer sizeh]hsource buffer size}(hj:FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6FhMhj7Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj6FhMhjEubj)}(h+``char *dst`` destination buffer (escaped) h](j)}(h ``char *dst``h]j)}(hjZFh]h char *dst}(hj\FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjTFubj)}(hhh]h)}(hdestination buffer (escaped)h]hdestination buffer (escaped)}(hjsFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoFhMhjpFubah}(h]h ]h"]h$]h&]uh1jhjTFubeh}(h]h ]h"]h$]h&]uh1jhjoFhMhjEubj)}(h'``size_t osz`` destination buffer size h](j)}(h``size_t osz``h]j)}(hjFh]h size_t osz}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj)}(hhh]h)}(hdestination buffer sizeh]hdestination buffer size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(h0``unsigned int flags`` combination of the flags h](j)}(h``unsigned int flags``h]j)}(hjFh]hunsigned int flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj)}(hhh]h)}(hcombination of the flagsh]hcombination of the flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(hX``const char *only`` NULL-terminated string containing characters used to limit the selected escape class. If characters are included in **only** that would not normally be escaped by the classes selected in **flags**, they will be copied to **dst** unescaped. h](j)}(h``const char *only``h]j)}(hjGh]hconst char *only}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj)}(hhh]h)}(hNULL-terminated string containing characters used to limit the selected escape class. If characters are included in **only** that would not normally be escaped by the classes selected in **flags**, they will be copied to **dst** unescaped.h](htNULL-terminated string containing characters used to limit the selected escape class. If characters are included in }(hjGhhhNhNubj)}(h**only**h]honly}(hj&GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh? that would not normally be escaped by the classes selected in }(hjGhhhNhNubj)}(h **flags**h]hflags}(hj8GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, they will be copied to }(hjGhhhNhNubj)}(h**dst**h]hdst}(hjJGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh unescaped.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjwGh]h Description}(hjyGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubh)}(hgThe process of escaping byte buffer includes several parts. They are applied in the following sequence.h]hgThe process of escaping byte buffer includes several parts. They are applied in the following sequence.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj)}(hXh1. The character is not matched to the one from **only** string and thus must go as-is to the output. 2. The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output. 3. The character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output. 4. The character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored. h]henumerated_list)}(hhh](j)}(hbThe character is not matched to the one from **only** string and thus must go as-is to the output.h]h)}(hbThe character is not matched to the one from **only** string and thus must go as-is to the output.h](h-The character is not matched to the one from }(hjGhhhNhNubj)}(h**only**h]honly}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh- string and thus must go as-is to the output.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.h]h)}(h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.h]h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.h]h)}(hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.h]hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(hThe character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored. h]h)}(hThe character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored.h](h=The character is checked if it falls into the class given by }(hjHhhhNhNubj)}(h **flags**h]hflags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh. }(hjHhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hj2HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhg are going last since they cover any character. Note that they actually can’t go together, otherwise }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjDHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh will be ignored.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jGhjGubah}(h]h ]h"]h$]h&]uh1jhjGhMhjEubh)}(hCaller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are::h]hCaller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are:}(hjtHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj#C)}(hXx%ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classesh]hXx%ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classes}hjHsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubh)}(h``ESCAPE_APPEND`` would help to pass additional characters to the escaped, when one of ``ESCAPE_NP``, ``ESCAPE_NA``, or ``ESCAPE_NAP`` is provided.h](j)}(h``ESCAPE_APPEND``h]h ESCAPE_APPEND}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhF would help to pass additional characters to the escaped, when one of }(hjHhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, or }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh is provided.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM0hjEubh)}(hXOne notable caveat, the ``ESCAPE_NAP``, ``ESCAPE_NP`` and ``ESCAPE_NA`` have the higher priority than the rest of the flags (``ESCAPE_NAP`` is the highest). It doesn't make much sense to use either of them without ``ESCAPE_OCTAL`` or ``ESCAPE_HEX``, because they cover most of the other character classes. ``ESCAPE_NAP`` can utilize ``ESCAPE_SPACE`` or ``ESCAPE_SPECIAL`` in addition to the above.h](hOne notable caveat, the }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh6 have the higher priority than the rest of the flags (}(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj#IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhM is the highest). It doesn’t make much sense to use either of them without }(hjHhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjGIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh:, because they cover most of the other character classes. }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjYIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh can utilize }(hjHhhhNhNubj)}(h``ESCAPE_SPACE``h]h ESCAPE_SPACE}(hjkIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_SPECIAL``h]hESCAPE_SPECIAL}(hj}IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh in addition to the above.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM3hjEubh)}(h **Return**h]j)}(hjIh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM:hjEubh)}(hThe total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a '\0' terminator if and only if ret < osz.h]hThe total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a ‘0’ terminator if and only if ret < osz.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM;hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkasprintf_strarray (C function)c.kasprintf_strarrayhNtauh1hhhhhhNhNubh)}(hhh](j)}(hDchar ** kasprintf_strarray (gfp_t gfp, const char *prefix, size_t n)h]j)}(hBchar **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n)h](j )}(hcharh]hchar}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhMubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubjg)}(hkasprintf_strarrayh]jm)}(hkasprintf_strarrayh]hkasprintf_strarray}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhMubj)}(h)(gfp_t gfp, const char *prefix, size_t n)h](j)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj7JhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4Jubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9JmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.kasprintf_strarrayasbuh1hhj0Jubj)}(h h]h }(hjWJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Jubjm)}(hgfph]hgfp}(hjeJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Jubj)}(hconst char *prefixh](j)}(hjh]hconst}(hj~JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzJubj )}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzJubjm)}(hprefixh]hprefix}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Jubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jSJc.kasprintf_strarrayasbuh1hhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hjyh]hn}(hj KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Jubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhjIhhubj)}(hhh]h)}(h-allocate and fill array of sequential stringsh]h-allocate and fill array of sequential strings}(hj3KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj0Khhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKKjjKKjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``gfp_t gfp`` flags for the slab allocator ``const char *prefix`` prefix to be used ``size_t n`` amount of lines to be allocated and filled **Description** Allocates and fills **n** strings using pattern "``s-````zu``", where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use. Returns array of strings or NULL when memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjUKh]h Parameters}(hjWKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubj)}(hhh](j)}(h+``gfp_t gfp`` flags for the slab allocator h](j)}(h ``gfp_t gfp``h]j)}(hjtKh]h gfp_t gfp}(hjvKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjnKubj)}(hhh]h)}(hflags for the slab allocatorh]hflags for the slab allocator}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjnKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubj)}(h)``const char *prefix`` prefix to be used h](j)}(h``const char *prefix``h]j)}(hjKh]hconst char *prefix}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKubj)}(hhh]h)}(hprefix to be usedh]hprefix to be used}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubj)}(h8``size_t n`` amount of lines to be allocated and filled h](j)}(h ``size_t n``h]j)}(hjKh]hsize_t n}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKubj)}(hhh]h)}(h*amount of lines to be allocated and filledh]h*amount of lines to be allocated and filled}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubeh}(h]h ]h"]h$]h&]uh1jhjOKubh)}(h**Description**h]j)}(hj!Lh]h Description}(hj#LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubh)}(hAllocates and fills **n** strings using pattern "``s-````zu``", where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.h](hAllocates and fills }(hj7LhhhNhNubj)}(h**n**h]hn}(hj?LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Lubh strings using pattern “}(hj7LhhhNhNubj)}(h ``s-````zu``h]hs-````zu}(hjQLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Lubhp”, where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.}(hj7LhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubh)}(h@Returns array of strings or NULL when memory can't be allocated.h]hBReturns array of strings or NULL when memory can’t be allocated.}(hjjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree_strarray (C function)c.kfree_strarrayhNtauh1hhhhhhNhNubh)}(hhh](j)}(h,void kfree_strarray (char **array, size_t n)h]j)}(h+void kfree_strarray(char **array, size_t n)h](j )}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhMubjg)}(hkfree_strarrayh]jm)}(hkfree_strarrayh]hkfree_strarray}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhjLhMubj)}(h(char **array, size_t n)h](j)}(h char **arrayh](j )}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(harrayh]harray}(hj MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj(MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%Mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*MmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.kfree_strarrayasbuh1hhj!Mubj)}(h h]h }(hjHMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!Mubjm)}(hjyh]hn}(hjVMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjLhhubj)}(hhh]h)}(hYfree a number of dynamically allocated strings contained in an array and the array itselfh]hYfree a number of dynamically allocated strings contained in an array and the array itself}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj|Mhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhhhNhNubj)}(hXF**Parameters** ``char **array`` Dynamically allocated array of strings to free. ``size_t n`` Number of strings (starting from the beginning of the array) to free. **Description** Passing a non-NULL **array** and **n** == 0 as well as NULL **array** are valid use-cases. If **array** is NULL, the function does nothing.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubj)}(hhh](j)}(hA``char **array`` Dynamically allocated array of strings to free. h](j)}(h``char **array``h]j)}(hjMh]h char **array}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubj)}(hhh]h)}(h/Dynamically allocated array of strings to free.h]h/Dynamically allocated array of strings to free.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(hS``size_t n`` Number of strings (starting from the beginning of the array) to free. h](j)}(h ``size_t n``h]j)}(hjMh]hsize_t n}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubj)}(hhh]h)}(hENumber of strings (starting from the beginning of the array) to free.h]hENumber of strings (starting from the beginning of the array) to free.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hj4Nh]h Description}(hj6NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubh)}(hPassing a non-NULL **array** and **n** == 0 as well as NULL **array** are valid use-cases. If **array** is NULL, the function does nothing.h](hPassing a non-NULL }(hjJNhhhNhNubj)}(h **array**h]harray}(hjRNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh and }(hjJNhhhNhNubj)}(h**n**h]hn}(hjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh == 0 as well as NULL }(hjJNhhhNhNubj)}(h **array**h]harray}(hjvNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh are valid use-cases. If }(hjJNhhhNhNubj)}(h **array**h]harray}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh$ is NULL, the function does nothing.}(hjJNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hskip_spaces (C function) c.skip_spaceshNtauh1hhhhhhNhNubh)}(hhh](j)}(h$char * skip_spaces (const char *str)h]j)}(h"char *skip_spaces(const char *str)h](j )}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMHubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhjNhMHubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMHubjg)}(h skip_spacesh]jm)}(h skip_spacesh]h skip_spaces}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhjNhMHubj)}(h(const char *str)h]j)}(hconst char *strh](j)}(hjh]hconst}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hcharh]hchar}(hj&OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hj4OhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjBOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hstrh]hstr}(hjOOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMHubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMHhjNhhubj)}(hhh]h)}(h(Removes leading whitespace from **str**.h](h Removes leading whitespace from }(hjyOhhhNhNubj)}(h**str**h]hstr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyOubh.}(hjyOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMHhjvOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhhhNhNubj)}(h**Parameters** ``const char *str`` The string to be stripped. **Description** Returns a pointer to the first non-whitespace character in **str**.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMLhjOubj)}(hhh]j)}(h/``const char *str`` The string to be stripped. h](j)}(h``const char *str``h]j)}(hjOh]hconst char *str}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIhjOubj)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMIhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMIhjOubah}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjPh]h Description}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMKhjOubh)}(hCReturns a pointer to the first non-whitespace character in **str**.h](h;Returns a pointer to the first non-whitespace character in }(hjPhhhNhNubj)}(h**str**h]hstr}(hj%PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMJhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrim (C function)c.strimhNtauh1hhhhhhNhNubh)}(hhh](j)}(hchar * strim (char *s)h]j)}(hchar *strim(char *s)h](j )}(hcharh]hchar}(hj^PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMVubj)}(h h]h }(hjmPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZPhhhjlPhMVubj)}(hjh]h*}(hj{PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZPhhhjlPhMVubjg)}(hstrimh]jm)}(hstrimh]hstrim}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZPhhhjlPhMVubj)}(h (char *s)h]j)}(hchar *sh](j )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hjE)h]hs}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjZPhhhjlPhMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVPhhhjlPhMVubah}(h]jQPah ](jjeh"]h$]h&]jj)jhuh1hhjlPhMVhjSPhhubj)}(hhh]h)}(h3Removes leading and trailing whitespace from **s**.h](h-Removes leading and trailing whitespace from }(hjPhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMVhjPhhubah}(h]h ]h"]h$]h&]uh1jhjSPhhhjlPhMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$Qjj$Qjjjuh1hhhhhhNhNubj)}(h**Parameters** ``char *s`` The string to be stripped. **Description** Note that the first trailing whitespace is replaced with a ``NUL-terminator`` in the given string **s**. Returns a pointer to the first non-whitespace character in **s**.h](h)}(h**Parameters**h]j)}(hj.Qh]h Parameters}(hj0QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMZhj(Qubj)}(hhh]j)}(h'``char *s`` The string to be stripped. h](j)}(h ``char *s``h]j)}(hjMQh]hchar *s}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWhjGQubj)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjfQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbQhMWhjcQubah}(h]h ]h"]h$]h&]uh1jhjGQubeh}(h]h ]h"]h$]h&]uh1jhjbQhMWhjDQubah}(h]h ]h"]h$]h&]uh1jhj(Qubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMYhj(Qubh)}(hNote that the first trailing whitespace is replaced with a ``NUL-terminator`` in the given string **s**. Returns a pointer to the first non-whitespace character in **s**.h](h;Note that the first trailing whitespace is replaced with a }(hjQhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh in the given string }(hjQhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh=. Returns a pointer to the first non-whitespace character in }(hjQhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMXhj(Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysfs_streq (C function) c.sysfs_streqhNtauh1hhhhhhNhNubh)}(hhh](j)}(h1bool sysfs_streq (const char *s1, const char *s2)h]j)}(h0bool sysfs_streq(const char *s1, const char *s2)h](j )}(hj8h]hbool}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMpubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjRhMpubjg)}(h sysfs_streqh]jm)}(h sysfs_streqh]h sysfs_streq}(hj#RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjRhMpubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hj?RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Rubj)}(h h]h }(hjLRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Rubj )}(hcharh]hchar}(hjZRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;Rubj)}(h h]h }(hjhRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Rubj)}(hjh]h*}(hjvRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Rubjm)}(hs1h]hs1}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Rubj)}(hconst char *s2h](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hs2h]hs2}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Rubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjRhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjRhMpubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjRhMphjQhhubj)}(hhh]h)}(h9return true if strings are equal, modulo trailing newlineh]h9return true if strings are equal, modulo trailing newline}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMphjShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjRhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"Sjj"Sjjjuh1hhhhhhNhNubj)}(hXn**Parameters** ``const char *s1`` one string ``const char *s2`` another string **Description** This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.h](h)}(h**Parameters**h]j)}(hj,Sh]h Parameters}(hj.ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Subah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMthj&Subj)}(hhh](j)}(h``const char *s1`` one string h](j)}(h``const char *s1``h]j)}(hjKSh]hconst char *s1}(hjMShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjISubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMqhjESubj)}(hhh]h)}(h one stringh]h one string}(hjdShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ShMqhjaSubah}(h]h ]h"]h$]h&]uh1jhjESubeh}(h]h ]h"]h$]h&]uh1jhj`ShMqhjBSubj)}(h"``const char *s2`` another string h](j)}(h``const char *s2``h]j)}(hjSh]hconst char *s2}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMrhj~Subj)}(hhh]h)}(hanother stringh]hanother string}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMrhjSubah}(h]h ]h"]h$]h&]uh1jhj~Subeh}(h]h ]h"]h$]h&]uh1jhjShMrhjBSubeh}(h]h ]h"]h$]h&]uh1jhj&Subh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMthj&Subh)}(hXThis routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.h]hX This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It’s geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMshj&Subeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmatch_string (C function)c.match_stringhNtauh1hhhhhhNhNubh)}(hhh](j)}(hJint match_string (const char * const *array, size_t n, const char *string)h]j)}(hHint match_string(const char *const *array, size_t n, const char *string)h](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjThMubjg)}(h match_stringh]jm)}(h match_stringh]h match_string}(hj%ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!Tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThMubj)}(h8(const char *const *array, size_t n, const char *string)h](j)}(hconst char *const *arrayh](j)}(hjh]hconst}(hjAThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(h h]h }(hjNThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj )}(hcharh]hchar}(hj\ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=Tubj)}(h h]h }(hjjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj)}(hjh]h*}(hjxThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubjm)}(harrayh]harray}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE j'Tsbc.match_stringasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hjyh]hn}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubj)}(hconst char *stringh](j)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Uubj )}(hcharh]hchar}(hj*UhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Uubj)}(h h]h }(hj8UhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Uubj)}(hjh]h*}(hjFUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubjm)}(hstringh]hstring}(hjSUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjThMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThMhjShhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hj}UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjzUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const char * const *array`` array of strings ``size_t n`` number of strings in the array or -1 for NULL terminated arrays ``const char *string`` string to match with **Description** This routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element. Historically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found. **Return** index of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubj)}(hhh](j)}(h/``const char * const *array`` array of strings h](j)}(h``const char * const *array``h]j)}(hjUh]hconst char * const *array}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubj)}(hhh]h)}(harray of stringsh]harray of strings}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubj)}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j)}(h ``size_t n``h]j)}(hjUh]hsize_t n}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubj)}(hhh]h)}(h?number of strings in the array or -1 for NULL terminated arraysh]h?number of strings in the array or -1 for NULL terminated arrays}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhMhj Vubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj VhMhjUubj)}(h,``const char *string`` string to match with h](j)}(h``const char *string``h]j)}(hj0Vh]hconst char *string}(hj2VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj*Vubj)}(hhh]h)}(hstring to match withh]hstring to match with}(hjIVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEVhMhjFVubah}(h]h ]h"]h$]h&]uh1jhj*Vubeh}(h]h ]h"]h$]h&]uh1jhjEVhMhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjkVh]h Description}(hjmVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.h]hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(hHistorically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found.h](h!Historically the value of -1 for }(hjVhhhNhNubj)}(h**n**h]hn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjVhhhNhNubj)}(h**n**h]hn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhA elements have been compared OR the first NULL element was found.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(hLindex of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h index of a }(hjVhhhNhNubj)}(h **string**h]hstring}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh in the }(hjVhhhNhNubj)}(h **array**h]harray}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh if matches, or }(hjVhhhNhNubj)}(h ``-EINVAL``h]h-EINVAL}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh otherwise.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__sysfs_match_string (C function)c.__sysfs_match_stringhNtauh1hhhhhhNhNubh)}(hhh](j)}(hOint __sysfs_match_string (const char * const *array, size_t n, const char *str)h]j)}(hMint __sysfs_match_string(const char *const *array, size_t n, const char *str)h](j )}(hinth]hint}(hj@WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminated If strlen(**q**) < **size**, following the copy of **q**, trailing NUL bytes will be written to **p** until **size** total bytes have been written. Do not use this function. While FORTIFY_SOURCE tries to avoid over-reads of **q**, it cannot defend against writing unterminated results to **p**. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of **p**'s contents is unambiguous: +--------------------+--------------------+------------+ | **p** needs to be: | padded to **size** | not padded | +====================+====================+============+ | NUL-terminated | strscpy_pad() | strscpy() | +--------------------+--------------------+------------+ | not NUL-terminated | strtomem_pad() | strtomem() | +--------------------+--------------------+------------+ Note strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubj)}(hhh](j)}(h2``char * const p`` pointer to destination of copy h](j)}(h``char * const p``h]j)}(hjch]hchar * const p}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubj)}(hhh]h)}(hpointer to destination of copyh]hpointer to destination of copy}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjcubj)}(hB``const char *q`` pointer to NUL-terminated source string to copy h](j)}(h``const char *q``h]j)}(hjdh]h const char *q}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjdubj)}(hhh]h)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjcubj)}(h1``__kernel_size_t size`` bytes to write at **p** h](j)}(h``__kernel_size_t size``h]j)}(hj?dh]h__kernel_size_t size}(hjAdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=dubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj9dubj)}(hhh]h)}(hbytes to write at **p**h](hbytes to write at }(hjXdhhhNhNubj)}(h**p**h]hp}(hj`dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXdubeh}(h]h ]h"]h$]h&]uh1hhjTdhKhjUdubah}(h]h ]h"]h$]h&]uh1jhj9dubeh}(h]h ]h"]h$]h&]uh1jhjTdhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(htIf strlen(**q**) >= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminatedh](h If strlen(}(hjdhhhNhNubj)}(h**q**h]hq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh) >= }(hjdhhhNhNubj)}(h**size**h]hsize}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh, the copy of }(hjdhhhNhNubj)}(h**q**h]hq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh will stop after }(hjdhhhNhNubj)}(h**size**h]hsize}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh bytes, and }(hjdhhhNhNubj)}(h**p**h]hp}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh will NOT be NUL-terminated}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(hIf strlen(**q**) < **size**, following the copy of **q**, trailing NUL bytes will be written to **p** until **size** total bytes have been written.h](h If strlen(}(hjehhhNhNubj)}(h**q**h]hq}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh) < }(hjehhhNhNubj)}(h**size**h]hsize}(hj!ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh, following the copy of }(hjehhhNhNubj)}(h**q**h]hq}(hj3ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh(, trailing NUL bytes will be written to }(hjehhhNhNubj)}(h**p**h]hp}(hjEehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh until }(hjehhhNhNubj)}(h**size**h]hsize}(hjWehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh total bytes have been written.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(hX$Do not use this function. While FORTIFY_SOURCE tries to avoid over-reads of **q**, it cannot defend against writing unterminated results to **p**. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of **p**'s contents is unambiguous:h](hLDo not use this function. While FORTIFY_SOURCE tries to avoid over-reads of }(hjpehhhNhNubj)}(h**q**h]hq}(hjxehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubh;, it cannot defend against writing unterminated results to }(hjpehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubhs. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of }(hjpehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubh’s contents is unambiguous:}(hjpehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjeubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjeubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jehjeubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]h)}(h**p** needs to be:h](j)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh needs to be:}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjeubah}(h]h ]h"]h$]h&]uh1jehjeubje)}(hhh]h)}(hpadded to **size**h](h padded to }(hjfhhhNhNubj)}(h**size**h]hsize}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhj fhKhjfubah}(h]h ]h"]h$]h&]uh1jehjeubje)}(hhh]h)}(h not paddedh]h not padded}(hj9fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj fhKhj6fubah}(h]h ]h"]h$]h&]uh1jehjeubeh}(h]h ]h"]h$]h&]uh1jehjeubah}(h]h ]h"]h$]h&]uh1jehjeubhtbody)}(hhh](je)}(hhh](je)}(hhh]h)}(hNUL-terminatedh]hNUL-terminated}(hjdfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjafubah}(h]h ]h"]h$]h&]uh1jehj^fubje)}(hhh]h)}(h strscpy_pad()h]h strscpy_pad()}(hj|fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrfhKhjyfubah}(h]h ]h"]h$]h&]uh1jehj^fubje)}(hhh]h)}(h strscpy()h]h strscpy()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrfhKhjfubah}(h]h ]h"]h$]h&]uh1jehj^fubeh}(h]h ]h"]h$]h&]uh1jehj[fubje)}(hhh](je)}(hhh]h)}(hnot NUL-terminatedh]hnot NUL-terminated}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubje)}(hhh]h)}(hstrtomem_pad()h]hstrtomem_pad()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubje)}(hhh]h)}(h strtomem()h]h strtomem()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubeh}(h]h ]h"]h$]h&]uh1jehj[fubeh}(h]h ]h"]h$]h&]uh1jYfhjeubeh}(h]h ]h"]h$]h&]colsKuh1jehjeubah}(h]h ]h"]h$]h&]uh1jehjcubh)}(hNote strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h]hNote strscpy*()’s differing return values for detecting truncation, and strtomem*()’s expectation that the destination is marked with __nonstring when it is a character array.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrnlen (C function) c.strnlenhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hF__kernel_size_t strnlen (const char * const p, __kernel_size_t maxlen)h]j)}(hD__kernel_size_t strnlen(const char *const p, __kernel_size_t maxlen)h](h)}(hhh]jm)}(h__kernel_size_th]h__kernel_size_t}(hjAghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>gubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCgmodnameN classnameNjI jL )}jO ]jR )}jE strnlensb c.strnlenasbuh1hhj:ghhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubj)}(h h]h }(hjcghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ghhhjbghKubjg)}(hstrnlenh]jm)}(hj_gh]hstrnlen}(hjughhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:ghhhjbghKubj)}(h-(const char *const p, __kernel_size_t maxlen)h](j)}(hconst char *const ph](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hjh]hp}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h__kernel_size_t maxlenh](h)}(hhh]jm)}(h__kernel_size_th]h__kernel_size_t}(hj hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj hmodnameN classnameNjI jL )}jO ]j]g c.strnlenasbuh1hhjhubj)}(h h]h }(hj(hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hmaxlenh]hmaxlen}(hj6hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj:ghhhjbghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6ghhhjbghKubah}(h]j1gah ](jjeh"]h$]h&]jj)jhuh1hhjbghKhj3ghhubj)}(hhh]h)}(h=Return bounded count of characters in a NUL-terminated stringh]h=Return bounded count of characters in a NUL-terminated string}(hj`hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj]hhhubah}(h]h ]h"]h$]h&]uh1jhj3ghhhjbghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxhjjxhjjjuh1hhhhj/`hNhNubj)}(hX&**Parameters** ``const char * const p`` pointer to NUL-terminated string to count. ``__kernel_size_t maxlen`` maximum number of characters to count. **Description** Returns number of characters in **p** (NOT including the final NUL), or **maxlen**, if no NUL has been found up to there.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj|hubj)}(hhh](j)}(hD``const char * const p`` pointer to NUL-terminated string to count. h](j)}(h``const char * const p``h]j)}(hjhh]hconst char * const p}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubj)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhKhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhKhjhubj)}(hB``__kernel_size_t maxlen`` maximum number of characters to count. h](j)}(h``__kernel_size_t maxlen``h]j)}(hjhh]h__kernel_size_t maxlen}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubj)}(hhh]h)}(h&maximum number of characters to count.h]h&maximum number of characters to count.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhKhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhKhjhubeh}(h]h ]h"]h$]h&]uh1jhj|hubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj|hubh)}(hyReturns number of characters in **p** (NOT including the final NUL), or **maxlen**, if no NUL has been found up to there.h](h Returns number of characters in }(hj+ihhhNhNubj)}(h**p**h]hp}(hj3ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+iubh# (NOT including the final NUL), or }(hj+ihhhNhNubj)}(h **maxlen**h]hmaxlen}(hjEihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+iubh', if no NUL has been found up to there.}(hj+ihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj|hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrlen (C macro)c.strlenhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrlenh]j)}(hstrlenh]jg)}(hstrlenh]jm)}(hjxih]hstrlen}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~iubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzihhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvihhhjihKubah}(h]jqiah ](jjeh"]h$]h&]jj)jhuh1hhjihKhjsihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjsihhhjihKubeh}(h]h ](jmacroeh"]h$]h&]jjjjijjijjjuh1hhhhj/`hNhNubh)}(h``strlen (p)``h]j)}(hjih]h strlen (p)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj/`hhubj)}(h6Return count of characters in a NUL-terminated string h]h)}(h5Return count of characters in a NUL-terminated stringh]h5Return count of characters in a NUL-terminated string}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubah}(h]h ]h"]h$]h&]uh1jhjihKhj/`hhubj)}(hXu**Parameters** ``p`` pointer to NUL-terminated string to count. **Description** Do not use this function unless the string length is known at compile-time. When **p** is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen(). Returns number of characters in **p** (NOT including the final NUL).h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubj)}(hhh]j)}(h1``p`` pointer to NUL-terminated string to count. h](j)}(h``p``h]j)}(hjjh]hp}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjjubj)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hj!jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjiubah}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjCjh]h Description}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubh)}(hDo not use this function unless the string length is known at compile-time. When **p** is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().h](hQDo not use this function unless the string length is known at compile-time. When }(hjYjhhhNhNubj)}(h**p**h]hp}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYjubh is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().}(hjYjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubh)}(hDReturns number of characters in **p** (NOT including the final NUL).h](h Returns number of characters in }(hjzjhhhNhNubj)}(h**p**h]hp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzjubh (NOT including the final NUL).}(hjzjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrlcat (C function) c.strlcathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hCsize_t strlcat (char * const p, const char * const q, size_t avail)h]j)}(h@size_t strlcat(char *const p, const char *const q, size_t avail)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE strlcatsb c.strlcatasbuh1hhjjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMOubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhMOubjg)}(hstrlcath]jm)}(hjjh]hstrlcat}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMOubj)}(h2(char *const p, const char *const q, size_t avail)h](j)}(h char *const ph](j )}(hcharh]hchar}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj kubj)}(hjh]h*}(hj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(hjh]hconst}(hj6khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(h h]h }(hjCkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj kubjm)}(hjh]hp}(hjQkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst char *const qh](j)}(hjh]hconst}(hjikhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(h h]h }(hjvkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubj )}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjekubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubjm)}(hjch]hq}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjekubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h size_t availh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jj c.strlcatasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(havailh]havail}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMOubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMOhjjhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hj9lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMOhj6lhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQljjQljjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``char * const p`` pointer to ``NUL-terminated`` string to append to ``const char * const q`` pointer to ``NUL-terminated`` string to append from ``size_t avail`` Maximum bytes available in **p** **Description** Appends ``NUL-terminated`` string **q** after the ``NUL-terminated`` string at **p**, but will not write beyond **avail** bytes total, potentially truncating the copy from **q**. **p** will stay ``NUL-terminated`` only if a ``NUL`` already existed within the **avail** bytes of **p**. If so, the resulting number of bytes copied from **q** will be at most "**avail** - strlen(**p**) - 1". Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar. Returns total bytes that _would_ have been contained by **p** regardless of truncation, similar to snprintf(). If return value is >= **avail**, the string has been truncated.h](h)}(h**Parameters**h]j)}(hj[lh]h Parameters}(hj]lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYlubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMShjUlubj)}(hhh](j)}(hE``char * const p`` pointer to ``NUL-terminated`` string to append to h](j)}(h``char * const p``h]j)}(hjzlh]hchar * const p}(hj|lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMQhjtlubj)}(hhh]h)}(h1pointer to ``NUL-terminated`` string to append toh](h pointer to }(hjlhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh string to append to}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMQhjlubah}(h]h ]h"]h$]h&]uh1jhjtlubeh}(h]h ]h"]h$]h&]uh1jhjlhMQhjqlubj)}(hM``const char * const q`` pointer to ``NUL-terminated`` string to append from h](j)}(h``const char * const q``h]j)}(hjlh]hconst char * const q}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMRhjlubj)}(hhh]h)}(h3pointer to ``NUL-terminated`` string to append fromh](h pointer to }(hjlhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh string to append from}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMRhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMRhjqlubj)}(h2``size_t avail`` Maximum bytes available in **p** h](j)}(h``size_t avail``h]j)}(hjmh]h size_t avail}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMShj mubj)}(hhh]h)}(h Maximum bytes available in **p**h](hMaximum bytes available in }(hj)mhhhNhNubj)}(h**p**h]hp}(hj1mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)mubeh}(h]h ]h"]h$]h&]uh1hhj%mhMShj&mubah}(h]h ]h"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]uh1jhj%mhMShjqlubeh}(h]h ]h"]h$]h&]uh1jhjUlubh)}(h**Description**h]j)}(hjYmh]h Description}(hj[mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWmubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMUhjUlubh)}(hXAppends ``NUL-terminated`` string **q** after the ``NUL-terminated`` string at **p**, but will not write beyond **avail** bytes total, potentially truncating the copy from **q**. **p** will stay ``NUL-terminated`` only if a ``NUL`` already existed within the **avail** bytes of **p**. If so, the resulting number of bytes copied from **q** will be at most "**avail** - strlen(**p**) - 1".h](hAppends }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjwmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh string }(hjomhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh after the }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh string at }(hjomhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh, but will not write beyond }(hjomhhhNhNubj)}(h **avail**h]havail}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh3 bytes total, potentially truncating the copy from }(hjomhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh. }(hjomhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh will stay }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh only if a }(hjomhhhNhNubj)}(h``NUL``h]hNUL}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh already existed within the }(hjomhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh bytes of }(hjomhhhNhNubj)}(h**p**h]hp}(hj+nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh3. If so, the resulting number of bytes copied from }(hjomhhhNhNubj)}(h**q**h]hq}(hj=nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh will be at most “}(hjomhhhNhNubj)}(h **avail**h]havail}(hjOnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh - strlen(}(hjomhhhNhNubj)}(h**p**h]hp}(hjanhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh ) - 1”.}(hjomhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMThjUlubh)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.h](hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of }(hjznhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjznubh and }(hjznhhhNhNubj)}(h**q**h]hq}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjznubhm are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.}(hjznhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM[hjUlubh)}(hReturns total bytes that _would_ have been contained by **p** regardless of truncation, similar to snprintf(). If return value is >= **avail**, the string has been truncated.h](h8Returns total bytes that _would_ have been contained by }(hjnhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhH regardless of truncation, similar to snprintf(). If return value is >= }(hjnhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh , the string has been truncated.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM`hjUlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrcat (C function)c.strcathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h-char * strcat (char * const p, const char *q)h]j)}(h*char *strcat(char *const p, const char *q)h](j )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjohMubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjohMubjg)}(hstrcath]jm)}(hstrcath]hstrcat}(hj.ohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjohMubj)}(h(char *const p, const char *q)h](j)}(h char *const ph](j )}(hcharh]hchar}(hjJohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFoubj)}(h h]h }(hjXohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFoubj)}(hjh]h*}(hjfohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFoubj)}(hjh]hconst}(hjsohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFoubjm)}(hjh]hp}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBoubj)}(h const char *qh](j)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hjch]hq}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBoubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjnhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+pjj+pjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``char * const p`` pointer to NUL-terminated string to append to ``const char *q`` pointer to NUL-terminated source string to append from **Description** Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat(). Returns **p**.h](h)}(h**Parameters**h]j)}(hj5ph]h Parameters}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3pubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubj)}(hhh](j)}(hA``char * const p`` pointer to NUL-terminated string to append to h](j)}(h``char * const p``h]j)}(hjTph]hchar * const p}(hjVphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjNpubj)}(hhh]h)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjmphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiphMhjjpubah}(h]h ]h"]h$]h&]uh1jhjNpubeh}(h]h ]h"]h$]h&]uh1jhjiphMhjKpubj)}(hI``const char *q`` pointer to NUL-terminated source string to append from h](j)}(h``const char *q``h]j)}(hjph]h const char *q}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjpubj)}(hhh]h)}(h6pointer to NUL-terminated source string to append fromh]h6pointer to NUL-terminated source string to append from}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjKpubeh}(h]h ]h"]h$]h&]uh1jhj/pubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubh)}(hXDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat().h]hXDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubh)}(hReturns **p**.h](hReturns }(hjphhhNhNubj)}(h**p**h]hp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrncat (C function) c.strncathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hLchar * strncat (char * const p, const char * const q, __kernel_size_t count)h]j)}(hHchar *strncat(char *const p, const char *const q, __kernel_size_t count)h](j )}(hcharh]hchar}(hj.qhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*qhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj)}(h h]h }(hj=qhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*qhhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubjg)}(hstrpbrkh]jm)}(hstrpbrkh]hstrpbrk}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hMubj)}(h (const char *cs, const char *ct)h](j)}(hconst char *csh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hconst char *cth](j)}(hjh]hconst}(hjȌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjČubj)}(h h]h }(hjՌhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjČubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjČubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjČubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjČubjm)}(hcth]hct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjČubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhjhhubj)}(hhh]h)}(h0Find the first occurrence of a set of charactersh]h0Find the first occurrence of a set of characters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhj/`hNhNubj)}(hq**Parameters** ``const char *cs`` The string to be searched ``const char *ct`` The characters to search forh](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjRubj)}(hhh](j)}(h-``const char *cs`` The string to be searched h](j)}(h``const char *cs``h]j)}(hjwh]hconst char *cs}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjqubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h/``const char *ct`` The characters to search forh](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe characters to search forh]hThe characters to search for}(hjɍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjƍubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjōhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrsep (C function)c.strsephNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h(char * strsep (char **s, const char *ct)h]j)}(h&char *strsep(char **s, const char *ct)h](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hstrseph]jm)}(hstrseph]hstrsep}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(char **s, const char *ct)h](j)}(hchar **sh](j )}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst char *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjˎhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjَhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcth]hct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hSplit a string into tokensh]hSplit a string into tokens}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj/`hNhNubj)}(hXt**Parameters** ``char **s`` The string to be searched ``const char *ct`` The characters to search for **Description** strsep() updates **s** to point after the token, ready for the next call. It returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubj)}(hhh](j)}(h'``char **s`` The string to be searched h](j)}(h ``char **s``h]j)}(hjQh]hchar **s}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjKubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(h0``const char *ct`` The characters to search for h](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe characters to search forh]hThe characters to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hjŏh]h Description}(hjǏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÏubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubh)}(hIstrsep() updates **s** to point after the token, ready for the next call.h](hstrsep() updates }(hjۏhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۏubh3 to point after the token, ready for the next call.}(hjۏhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubh)}(hIt returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)h]hIt returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset (C function)c.memsethNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h,void * memset (void *s, int c, size_t count)h]j)}(h*void *memset(void *s, int c, size_t count)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj9hMubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj9hMubjg)}(hmemseth]jm)}(hmemseth]hmemset}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMubj)}(h(void *s, int c, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjĐhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hjҐhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j[sbc.memsetasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj hhubj)}(hhh]h)}(h,Fill a region of memory with the given valueh]h,Fill a region of memory with the given value}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``void *s`` Pointer to the start of the area. ``int c`` The byte to fill the area with ``size_t count`` The size of the area. **Description** Do not use memset() to access IO space, use memset_io() instead.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjaubj)}(hhh](j)}(h.``void *s`` Pointer to the start of the area. h](j)}(h ``void *s``h]j)}(hjh]hvoid *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h)``int c`` The byte to fill the area with h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe byte to fill the area withh]hThe byte to fill the area with}(hjؑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԑhMhjՑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԑhMhj}ubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjaubh)}(h@Do not use memset() to access IO space, use memset_io() instead.h]h@Do not use memset() to access IO space, use memset_io() instead.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset16 (C function) c.memset16hNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * memset16 (uint16_t *s, uint16_t v, size_t count)h]j)}(h5void *memset16(uint16_t *s, uint16_t v, size_t count)h](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjhM#ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhM#ubjg)}(hmemset16h]jm)}(hmemset16h]hmemset16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjhM#ubj)}(h'(uint16_t *s, uint16_t v, size_t count)h](j)}(h uint16_t *sh](h)}(hhh]jm)}(huint16_th]huint16_t}(hjŒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj’ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjǒmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memset16asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint16_t vh](h)}(hhh]jm)}(huint16_th]huint16_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.memset16asbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvh]hv}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]j c.memset16asbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhM#ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjmhhubj)}(hhh]h)}(h"Fill a memory area with a uint16_th]h"Fill a memory area with a uint16_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѓjjѓjjjuh1hhhhj/`hNhNubj)}(hXZ**Parameters** ``uint16_t *s`` Pointer to the start of the area. ``uint16_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hjۓh]h Parameters}(hjݓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٓubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'hjՓubj)}(hhh](j)}(h2``uint16_t *s`` Pointer to the start of the area. h](j)}(h``uint16_t *s``h]j)}(hjh]h uint16_t *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM$hjubj)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h/``uint16_t v`` The value to fill the area with h](j)}(h``uint16_t v``h]j)}(hj3h]h uint16_t v}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM%hj-ubj)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM%hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM%hjubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjlh]h size_t count}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM&hjfubj)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubeh}(h]h ]h"]h$]h&]uh1jhjՓubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM(hjՓubh)}(hDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that }(hjhhhNhNubj)}(h **count**h]hcount}(hjŔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint16_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'hjՓubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset32 (C function) c.memset32hNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * memset32 (uint32_t *s, uint32_t v, size_t count)h]j)}(h5void *memset32(uint32_t *s, uint32_t v, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM9ubjg)}(hmemset32h]jm)}(hmemset32h]hmemset32}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM9ubj)}(h'(uint32_t *s, uint32_t v, size_t count)h](j)}(h uint32_t *sh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE j.sb c.memset32asbuh1hhjDubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h uint32_t vh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jg c.memset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjIh]hv}(hj͕hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jg c.memset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM9hjhhubj)}(hhh]h)}(h"Fill a memory area with a uint32_th]h"Fill a memory area with a uint32_t}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9hj;hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj/`hNhNubj)}(hXZ**Parameters** ``uint32_t *s`` Pointer to the start of the area. ``uint32_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint32_t instead of a byte. Remember that **count** is the number of uint32_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjZubj)}(hhh](j)}(h2``uint32_t *s`` Pointer to the start of the area. h](j)}(h``uint32_t *s``h]j)}(hjh]h uint32_t *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM:hjyubj)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjvubj)}(h/``uint32_t v`` The value to fill the area with h](j)}(h``uint32_t v``h]j)}(hjh]h uint32_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM;hjubj)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjіhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͖hM;hjΖubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͖hM;hjvubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM<hjubj)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM>hjZubh)}(hDiffers from memset() in that it fills with a uint32_t instead of a byte. Remember that **count** is the number of uint32_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint32_t instead of a byte. Remember that }(hjBhhhNhNubj)}(h **count**h]hcount}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh> is the number of uint32_ts to store, not the number of bytes.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]!h ]h"]h$]h&]entries](hmemset64 (C function) c.memset64hNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * memset64 (uint64_t *s, uint64_t v, size_t count)h]j)}(h5void *memset64(uint64_t *s, uint64_t v, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMOubjg)}(hmemset64h]jm)}(hmemset64h]hmemset64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMOubj)}(h'(uint64_t *s, uint64_t v, size_t count)h](j)}(h uint64_t *sh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjЗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj͗ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjҗmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memset64asbuh1hhjɗubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjɗubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɗubjm)}(hjE)h]hs}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɗubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubj)}(h uint64_t vh](h)}(hhh]jm)}(huint64_th]huint64_t}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]j c.memset64asbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjIh]hv}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]j c.memset64asbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhMOubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjxhhubj)}(hhh]h)}(h"Fill a memory area with a uint64_th]h"Fill a memory area with a uint64_t}(hjØhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjۘjjۘjjjuh1hhhhj/`hNhNubj)}(hXZ**Parameters** ``uint64_t *s`` Pointer to the start of the area. ``uint64_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint64_t instead of a byte. Remember that **count** is the number of uint64_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMShjߘubj)}(hhh](j)}(h2``uint64_t *s`` Pointer to the start of the area. h](j)}(h``uint64_t *s``h]j)}(hjh]h uint64_t *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMPhjubj)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubj)}(h/``uint64_t v`` The value to fill the area with h](j)}(h``uint64_t v``h]j)}(hj=h]h uint64_t v}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMQhj7ubj)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMQhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMQhjubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjvh]h size_t count}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMRhjpubj)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubeh}(h]h ]h"]h$]h&]uh1jhjߘubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMThjߘubh)}(hDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that **count** is the number of uint64_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that }(hjǙhhhNhNubj)}(h **count**h]hcount}(hjϙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǙubh> is the number of uint64_ts to store, not the number of bytes.}(hjǙhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMShjߘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemcpy (C function)c.memcpyhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h9void * memcpy (void *dest, const void *src, size_t count)h]j)}(h7void *memcpy(void *dest, const void *src, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMeubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMeubjg)}(hmemcpyh]jm)}(hmemcpyh]hmemcpy}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMeubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hdesth]hdest}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj˚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjؚhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j8sbc.memcpyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMehjhhubj)}(hhh]h)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMehjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``void *dest`` Where to copy to ``const void *src`` Where to copy from ``size_t count`` The size of the area. **Description** You should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihjhubj)}(hhh](j)}(h ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hjh]h void *dest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMfhjubj)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h'``const void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hjƛh]hconst void *src}(hjțhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjěubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMghjubj)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjߛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۛhMghjܛubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۛhMghjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMjhjhubh)}(hbYou should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.h]hbYou should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemmove (C function) c.memmovehNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h:void * memmove (void *dest, const void *src, size_t count)h]j)}(h8void *memmove(void *dest, const void *src, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhjhM{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhM{ubjg)}(hmemmoveh]jm)}(hmemmoveh]hmemmove}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhM{ubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjɜhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjŜubj)}(h h]h }(hjלhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŜubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŜubjm)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŜubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *srch](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memmoveasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhM{ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhM{hjthhubj)}(hhh]h)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjÝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM{hjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj۝jj۝jjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``void *dest`` Where to copy to ``const void *src`` Where to copy from ``size_t count`` The size of the area. **Description** Unlike memcpy(), memmove() copes with overlapping areas.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjߝubj)}(hhh](j)}(h ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hjh]h void *dest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM|hjubj)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubj)}(h'``const void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hj=h]hconst void *src}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM}hj7ubj)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM}hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM}hjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjvh]h size_t count}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM~hjpubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjߝubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjߝubh)}(h8Unlike memcpy(), memmove() copes with overlapping areas.h]h8Unlike memcpy(), memmove() copes with overlapping areas.}(hjǞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjߝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemcmp (C function)c.memcmphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hC__visible int memcmp (const void *cs, const void *ct, size_t count)h]j)}(hB__visible int memcmp(const void *cs, const void *ct, size_t count)h](h __visible}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hmemcmph]jm)}(hmemcmph]hmemcmp}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h.(const void *cs, const void *ct, size_t count)h](j)}(hconst void *csh](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hconst void *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj˟hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjٟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcth]hct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.memcmpasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hCompare two areas of memoryh]hCompare two areas of memory}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void *cs`` One area of memory ``const void *ct`` Another area of memory ``size_t count`` The size of the area.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjvubj)}(hhh](j)}(h&``const void *cs`` One area of memory h](j)}(h``const void *cs``h]j)}(hjh]hconst void *cs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hOne area of memoryh]hOne area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``const void *ct`` Another area of memory h](j)}(h``const void *ct``h]j)}(hjԠh]hconst void *ct}(hj֠hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҠubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjΠubj)}(hhh]h)}(hAnother area of memoryh]hAnother area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjΠubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``size_t count`` The size of the area.h](j)}(h``size_t count``h]j)}(hj h]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbcmp (C function)c.bcmphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h3int bcmp (const void *a, const void *b, size_t len)h]j)}(h2int bcmp(const void *a, const void *b, size_t len)h](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(hbcmph]jm)}(hbcmph]hbcmp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjuhMubj)}(h*(const void *a, const void *b, size_t len)h](j)}(h const void *ah](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj͡hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjۡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hah]ha}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *bh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbh]hb}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bcmpasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]h)}(h=returns 0 if and only if the buffers have identical contents.h]h=returns 0 if and only if the buffers have identical contents.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѢjjѢjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const void *a`` pointer to first buffer. ``const void *b`` pointer to second buffer. ``size_t len`` size of buffers. **Description** The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h](h)}(h**Parameters**h]j)}(hjۢh]h Parameters}(hjݢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٢ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjբubj)}(hhh](j)}(h+``const void *a`` pointer to first buffer. h](j)}(h``const void *a``h]j)}(hjh]h const void *a}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hpointer to first buffer.h]hpointer to first buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``const void *b`` pointer to second buffer. h](j)}(h``const void *b``h]j)}(hj3h]h const void *b}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj-ubj)}(hhh]h)}(hpointer to second buffer.h]hpointer to second buffer.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(h ``size_t len`` size of buffers. h](j)}(h``size_t len``h]j)}(hjlh]h size_t len}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjfubj)}(hhh]h)}(hsize of buffers.h]hsize of buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjբubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjբubh)}(hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h]hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjբubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemscan (C function) c.memscanhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h/void * memscan (void *addr, int c, size_t size)h]j)}(h-void *memscan(void *addr, int c, size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hmemscanh]jm)}(hmemscanh]hmemscan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h (void *addr, int c, size_t size)h](j)}(h void *addrh](j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(haddrh]haddr}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hint ch](j )}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memscanasbuh1hhjubj)}(h h]h }(hjϤhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjݤhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jߣah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``void *addr`` The memory area ``int c`` The byte to search for ``size_t size`` The size of the area. **Description** returns the address of the first occurrence of **c**, or 1 byte past the area if **c** is not foundh](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj#ubj)}(hhh](j)}(h``void *addr`` The memory area h](j)}(h``void *addr``h]j)}(hjHh]h void *addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjBubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(h!``int c`` The byte to search for h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj{ubj)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h&``size_t size`` The size of the area. h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjӥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϥhMhjХubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϥhMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj#ubh)}(hcreturns the address of the first occurrence of **c**, or 1 byte past the area if **c** is not foundh](h/returns the address of the first occurrence of }(hj hhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, or 1 byte past the area if }(hj hhhNhNubj)}(h**c**h]hc}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is not found}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrstr (C function)c.strstrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h.char * strstr (const char *s1, const char *s2)h]j)}(h,char *strstr(const char *s1, const char *s2)h](j )}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhMubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjlhMubjg)}(hstrstrh]jm)}(hstrstrh]hstrstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhMubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjæhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjѦhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjߦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs2h]hs2}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjShhubj)}(hhh]h)}(h7Find the first substring in a ``NUL`` terminated stringh](hFind the first substring in a }(hjshhhNhNubj)}(h``NUL``h]hNUL}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh terminated string}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hm**Parameters** ``const char *s1`` The string to be searched ``const char *s2`` The string to search forh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh](j)}(h-``const char *s1`` The string to be searched h](j)}(h``const char *s1``h]j)}(hjƧh]hconst char *s1}(hjȧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjħubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjߧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۧhMhjܧubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۧhMhjubj)}(h+``const char *s2`` The string to search forh](j)}(h``const char *s2``h]j)}(hjh]hconst char *s2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrnstr (C function) c.strnstrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h;char * strnstr (const char *s1, const char *s2, size_t len)h]j)}(h9char *strnstr(const char *s1, const char *s2, size_t len)h](j )}(hcharh]hchar}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghMubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjghMubjg)}(hstrnstrh]jm)}(hstrnstrh]hstrnstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghMubj)}(h,(const char *s1, const char *s2, size_t len)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj̨hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjڨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs2h]hs2}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.strnstrasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(hhh]h)}(h3Find the first substring in a length-limited stringh]h3Find the first substring in a length-limited string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjЩjjЩjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char *s1`` The string to be searched ``const char *s2`` The string to search for ``size_t len`` the maximum number of characters to searchh](h)}(h**Parameters**h]j)}(hjکh]h Parameters}(hjܩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjةubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjԩubj)}(hhh](j)}(h-``const char *s1`` The string to be searched h](j)}(h``const char *s1``h]j)}(hjh]hconst char *s1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``const char *s2`` The string to search for h](j)}(h``const char *s2``h]j)}(hj2h]hconst char *s2}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubj)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h9``size_t len`` the maximum number of characters to searchh](j)}(h``size_t len``h]j)}(hjkh]h size_t len}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjeubj)}(hhh]h)}(h*the maximum number of characters to searchh]h*the maximum number of characters to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjԩubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemchr (C function)c.memchrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h.void * memchr (const void *s, int c, size_t n)h]j)}(h,void *memchr(const void *s, int c, size_t n)h](j )}(hvoidh]hvoid}(hjŪhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjԪhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjӪhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӪhMubjg)}(hmemchrh]jm)}(hmemchrh]hmemchr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjӪhMubj)}(h (const void *s, int c, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjE)h]hs}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.memchrasbuh1hhjubj)}(h h]h }(hj«hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjЫhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjӪhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjӪhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjӪhMhjhhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjӪhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void *s`` The memory area ``int c`` The byte to search for ``size_t n`` The size of the area. **Description** returns the address of the first occurrence of **c**, or ``NULL`` if **c** is not foundh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM!hjubj)}(hhh](j)}(h"``const void *s`` The memory area h](j)}(h``const void *s``h]j)}(hj:h]h const void *s}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj1ubj)}(h!``int c`` The byte to search for h](j)}(h ``int c``h]j)}(hjsh]hint c}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjmubj)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubj)}(h#``size_t n`` The size of the area. h](j)}(h ``size_t n``h]j)}(hjh]hsize_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM hjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjŬhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hj¬ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM"hjubh)}(hWreturns the address of the first occurrence of **c**, or ``NULL`` if **c** is not foundh](h/returns the address of the first occurrence of }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if }(hjhhhNhNubj)}(h**c**h]hc}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemchr_inv (C function) c.memchr_invhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h:void * memchr_inv (const void *start, int c, size_t bytes)h]j)}(h8void *memchr_inv(const void *start, int c, size_t bytes)h](j )}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM>ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphM>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphM>ubjg)}(h memchr_invh]jm)}(h memchr_invh]h memchr_inv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphM>ubj)}(h((const void *start, int c, size_t bytes)h](j)}(hconst void *starth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjǭhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjխhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t bytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memchr_invasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hbytesh]hbytes}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphM>ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphM>hjWhhubj)}(hhh]h)}(h2Find an unmatching character in an area of memory.h]h2Find an unmatching character in an area of memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const void *start`` The memory area ``int c`` Find a character other than c ``size_t bytes`` The size of the area. **Description** returns the address of the first character other than **c**, or ``NULL`` if the whole buffer contains just **c**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMBhjubj)}(hhh](j)}(h&``const void *start`` The memory area h](j)}(h``const void *start``h]j)}(hjٮh]hconst void *start}(hjۮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׮ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM?hjӮubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjӮubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjЮubj)}(h(``int c`` Find a character other than c h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM@hj ubj)}(hhh]h)}(hFind a character other than ch]hFind a character other than c}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM@hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM@hjЮubj)}(h'``size_t bytes`` The size of the area. h](j)}(h``size_t bytes``h]j)}(hjKh]h size_t bytes}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMAhjEubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMAhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMAhjЮubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMChjubh)}(hqreturns the address of the first character other than **c**, or ``NULL`` if the whole buffer contains just **c**.h](h6returns the address of the first character other than }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# if the whole buffer contains just }(hjhhhNhNubj)}(h**c**h]hc}(hjȯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_array_user (C function)c.memdup_array_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hHvoid * memdup_array_user (const void __user *src, size_t n, size_t size)h]j)}(hFvoid *memdup_array_user(const void __user *src, size_t n, size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(hmemdup_array_userh]jm)}(hmemdup_array_userh]hmemdup_array_user}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h/(const void __user *src, size_t n, size_t size)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh__user}(hjGhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.memdup_array_userasbuh1hhjubj)}(h h]h }(hjݰhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jٰc.memdup_array_userasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hduplicate array from user spaceh]hduplicate array from user space}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const void __user *src`` source address in user space ``size_t n`` number of array members to copy ``size_t size`` size of one array member **Return** an ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjxubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjֱh]hsize_t n}(hjرhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjбubj)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjбubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h)``size_t size`` size of one array member h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj ubj)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjxubh)}(hQan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h]hQan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmemdup_array_user (C function)c.vmemdup_array_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hIvoid * vmemdup_array_user (const void __user *src, size_t n, size_t size)h]j)}(hGvoid *vmemdup_array_user(const void __user *src, size_t n, size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK+ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK+ubjg)}(hvmemdup_array_userh]jm)}(hvmemdup_array_userh]hvmemdup_array_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK+ubj)}(h/(const void __user *src, size_t n, size_t size)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjٲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjղubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjղubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubh__user}(hjղhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjղubjm)}(hsrch]hsrc}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjղubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѲubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.vmemdup_array_userasbuh1hhjDubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hjyh]hn}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѲubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jgc.vmemdup_array_userasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѲubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK+hjhhubj)}(hhh]h)}(hduplicate array from user spaceh]hduplicate array from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const void __user *src`` source address in user space ``size_t n`` number of array members to copy ``size_t size`` size of one array member **Return** an ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK/hjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj+h]hconst void __user *src}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK,hj%ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hK,hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hK,hj"ubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjdh]hsize_t n}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK-hj^ubj)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK-hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhK-hj"ubj)}(h)``size_t size`` size of one array member h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK.hjubj)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK.hj"ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjشh]hReturn}(hjڴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjִubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK0hjubh)}(hWan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h]hWan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrscpy (C macro) c.strscpyhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrscpyh]j)}(hstrscpyh]jg)}(hstrscpyh]jm)}(hjh]hstrscpy}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK\ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hK\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hK\hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hK\ubeh}(h]h ](jmacroeh"]h$]h&]jjjjMjjMjjjuh1hhhhj/`hNhNubh)}(h``strscpy (dst, src, ...)``h]j)}(hjSh]hstrscpy (dst, src, ...)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK^hj/`hhubj)}(h$Copy a C-string into a sized buffer h]h)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK\hjiubah}(h]h ]h"]h$]h&]uh1jhj{hK\hj/`hhubj)}(hXq**Parameters** ``dst`` Where to copy the string to ``src`` Where to copy the string from ``...`` Size of destination buffer (optional) **Description** Copy the source string **src**, or as much of it as fits, into the destination **dst** buffer. The behavior is undefined if the string buffers overlap. The destination **dst** buffer is always NUL terminated, unless it's zero-sized. The size argument **...** is only required when **dst** is not an array, or when the copy needs to be smaller than sizeof(**dst**). Preferred to strncpy() since it always returns a valid string, and doesn't unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad(). Returns the number of characters copied in **dst** (not including the trailing ``NUL``) or -E2BIG if **size** is 0 or the copy from **src** was truncated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK`hjubj)}(hhh](j)}(h$``dst`` Where to copy the string to h](j)}(h``dst``h]j)}(hjh]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK]hjubj)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK]hjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޵ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK^hjڵubj)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK^hjubah}(h]h ]h"]h$]h&]uh1jhjڵubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubj)}(h.``...`` Size of destination buffer (optional) h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK_hjubj)}(hhh]h)}(h%Size of destination buffer (optional)h]h%Size of destination buffer (optional)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hK_hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hK_hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKahjubh)}(hCopy the source string **src**, or as much of it as fits, into the destination **dst** buffer. The behavior is undefined if the string buffers overlap. The destination **dst** buffer is always NUL terminated, unless it's zero-sized.h](hCopy the source string }(hjjhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh1, or as much of it as fits, into the destination }(hjjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhR buffer. The behavior is undefined if the string buffers overlap. The destination }(hjjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh; buffer is always NUL terminated, unless it’s zero-sized.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK`hjubh)}(hThe size argument **...** is only required when **dst** is not an array, or when the copy needs to be smaller than sizeof(**dst**).h](hThe size argument }(hjhhhNhNubj)}(h**...**h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is only required when }(hjhhhNhNubj)}(h**dst**h]hdst}(hjɶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC is not an array, or when the copy needs to be smaller than sizeof(}(hjhhhNhNubj)}(h**dst**h]hdst}(hj۶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKehjubh)}(hPreferred to strncpy() since it always returns a valid string, and doesn't unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad().h]hPreferred to strncpy() since it always returns a valid string, and doesn’t unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhhjubh)}(hReturns the number of characters copied in **dst** (not including the trailing ``NUL``) or -E2BIG if **size** is 0 or the copy from **src** was truncated.h](h+Returns the number of characters copied in }(hjhhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (not including the trailing }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) or -E2BIG if }(hjhhhNhNubj)}(h**size**h]hsize}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0 or the copy from }(hjhhhNhNubj)}(h**src**h]hsrc}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was truncated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrscpy_pad (C macro) c.strscpy_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h strscpy_padh]j)}(h strscpy_padh]jg)}(h strscpy_padh]jm)}(hjth]h strscpy_pad}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``strscpy_pad (dst, src, ...)``h]j)}(hjh]hstrscpy_pad (dst, src, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj/`hhubj)}(h$Copy a C-string into a sized buffer h]h)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hjʷhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjƷubah}(h]h ]h"]h$]h&]uh1jhjطhKhj/`hhubj)}(hX**Parameters** ``dst`` Where to copy the string to ``src`` Where to copy the string from ``...`` Size of destination buffer **Description** Copy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always ``NUL`` terminated, unless it's zero-sized. If the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with ``NUL`` bytes. For full explanation of why you may want to consider using the 'strscpy' functions please see the function docstring for strscpy(). **Return** * The number of characters copied (not including the trailing ``NULs``) * -E2BIG if count is 0 or **src** was truncated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubj)}(hhh](j)}(h$``dst`` Where to copy the string to h](j)}(h``dst``h]j)}(hjh]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubj)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hj=h]hsrc}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj7ubj)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjubj)}(h#``...`` Size of destination buffer h](j)}(h``...``h]j)}(hjvh]h...}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjpubj)}(hhh]h)}(hSize of destination bufferh]hSize of destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj߷ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always ``NUL`` terminated, unless it's zero-sized.h](hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always }(hjǸhhhNhNubj)}(h``NUL``h]hNUL}(hjϸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǸubh& terminated, unless it’s zero-sized.}(hjǸhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(hIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with ``NUL`` bytes.h](hsIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(hFor full explanation of why you may want to consider using the 'strscpy' functions please see the function docstring for strscpy().h]hFor full explanation of why you may want to consider using the ‘strscpy’ functions please see the function docstring for strscpy().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubj)}(hhh](j)}(hEThe number of characters copied (not including the trailing ``NULs``)h]h)}(hj5h](hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh)}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj3ubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h.-E2BIG if count is 0 or **src** was truncated.h]h)}(hj_h](h-E2BIG if count is 0 or }(hjahhhNhNubj)}(h**src**h]hsrc}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh was truncated.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj]ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjVhKhj߷ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_is_zero (C function) c.mem_is_zerohNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h*bool mem_is_zero (const void *s, size_t n)h]j)}(h)bool mem_is_zero(const void *s, size_t n)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(h mem_is_zeroh]jm)}(h mem_is_zeroh]h mem_is_zero}(hj͹hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɹubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(const void *s, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jϹsb c.mem_is_zeroasbuh1hhjAubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hjyh]hn}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h&Check if an area of memory is all 0's.h]h(Check if an area of memory is all 0’s.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void *s`` The memory area ``size_t n`` The size of the area **Return** True if the area of memory is all 0's.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjúhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubj)}(hhh](j)}(h"``const void *s`` The memory area h](j)}(h``const void *s``h]j)}(hjh]h const void *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޺ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjںubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjںubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj׺ubj)}(h"``size_t n`` The size of the area h](j)}(h ``size_t n``h]j)}(hjh]hsize_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM"hjubj)}(hhh]h)}(hThe size of the areah]hThe size of the area}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM"hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM"hj׺ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubh)}(h&True if the area of memory is all 0's.h]h(True if the area of memory is all 0’s.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysfs_match_string (C macro)c.sysfs_match_stringhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hsysfs_match_stringh]j)}(hsysfs_match_stringh]jg)}(hsysfs_match_stringh]jm)}(hjh]hsysfs_match_string}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjɻjjɻjjjuh1hhhhj/`hNhNubh)}(h``sysfs_match_string (_a, _s)``h]j)}(hjϻh]hsysfs_match_string (_a, _s)}(hjѻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͻubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMLhj/`hhubj)}(h!matches given string in an array h]h)}(h matches given string in an arrayh]h matches given string in an array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjhMJhj/`hhubj)}(h**Parameters** ``_a`` array of strings ``_s`` string to match with **Description** Helper for __sysfs_match_string(). Calculates the size of **a** automatically.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMNhjubj)}(hhh](j)}(h``_a`` array of strings h](j)}(h``_a``h]j)}(hj#h]h_a}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMKhjubj)}(hhh]h)}(harray of stringsh]harray of strings}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMKhjubj)}(h``_s`` string to match with h](j)}(h``_s``h]j)}(hj\h]h_s}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMLhjVubj)}(hhh]h)}(hstring to match withh]hstring to match with}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMLhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMLhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMNhjubh)}(hNHelper for __sysfs_match_string(). Calculates the size of **a** automatically.h](h:Helper for __sysfs_match_string(). Calculates the size of }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh automatically.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemzero_explicit (C function)c.memzero_explicithNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h-void memzero_explicit (void *s, size_t count)h]j)}(h,void memzero_explicit(void *s, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM_ubjg)}(hmemzero_explicith]jm)}(hmemzero_explicith]hmemzero_explicit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM_ubj)}(h(void *s, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hjE)h]hs}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.memzero_explicitasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM_hjhhubj)}(hhh]h)}(h=Fill a region of memory (e.g. sensitive keying data) with 0s.h]h=Fill a region of memory (e.g. sensitive keying data) with 0s.}(hjǽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM_hjĽhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߽jj߽jjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``void *s`` Pointer to the start of the area. ``size_t count`` The size of the area. **Note** usually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing. memzero_explicit() doesn't need an arch-specific version as it just invokes the one of memset() implicitly.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMchjubj)}(hhh](j)}(h.``void *s`` Pointer to the start of the area. h](j)}(h ``void *s``h]j)}(hjh]hvoid *s}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMahjubj)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjAh]h size_t count}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMbhj;ubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMbhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hj|h]hNote}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMdhjubh)}(husually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing.h]husually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMdhjubh)}(hkmemzero_explicit() doesn't need an arch-specific version as it just invokes the one of memset() implicitly.h]hmmemzero_explicit() doesn’t need an arch-specific version as it just invokes the one of memset() implicitly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkbasename (C function) c.kbasenamehNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h)const char * kbasename (const char *path)h]j)}(h'const char *kbasename(const char *path)h](j)}(hjh]hconst}(hjоhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMsubj)}(h h]h }(hj޾hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̾hhhjݾhMsubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̾hhhjݾhMsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̾hhhjݾhMsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾hhhjݾhMsubjg)}(h kbasenameh]jm)}(h kbasenameh]h kbasename}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj̾hhhjݾhMsubj)}(h(const char *path)h]j)}(hconst char *pathh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hpathh]hpath}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhj̾hhhjݾhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjȾhhhjݾhMsubah}(h]jþah ](jjeh"]h$]h&]jj)jhuh1hhjݾhMshjžhhubj)}(hhh]h)}(h#return the last part of a pathname.h]h#return the last part of a pathname.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMshjhhubah}(h]h ]h"]h$]h&]uh1jhjžhhhjݾhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hI**Parameters** ``const char *path`` path to extract the filename from.h](h)}(h**Parameters**h]j)}(hjſh]h Parameters}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÿubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubj)}(hhh]j)}(h7``const char *path`` path to extract the filename from.h](j)}(h``const char *path``h]j)}(hjh]hconst char *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMyhj޿ubj)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMuhjubah}(h]h ]h"]h$]h&]uh1jhj޿ubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjۿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem_pad (C macro)c.strtomem_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h strtomem_padh]j)}(h strtomem_padh]jg)}(h strtomem_padh]jm)}(hj8h]h strtomem_pad}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjUhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhj/`hNhNubh)}(h!``strtomem_pad (dest, src, pad)``h]j)}(hjth]hstrtomem_pad (dest, src, pad)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX6**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string ``pad`` Padding character to fill any remaining bytes of **dest** after copy **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``pad`` Padding character to fill any remaining bytes of **dest** after copy h](j)}(h``pad``h]j)}(hj:h]hpad}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj4ubj)}(hhh]h)}(hDPadding character to fill any remaining bytes of **dest** after copyh](h1Padding character to fill any remaining bytes of }(hjShhhNhNubj)}(h**dest**h]hdest}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh after copy}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& is not an argument, as the length of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& must be discoverable by the compiler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem (C macro) c.strtomemhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrtomemh]j)}(hstrtomemh]jg)}(hstrtomemh]jm)}(hjh]hstrtomem}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj/jj/jjjuh1hhhhj/`hNhNubh)}(h``strtomem (dest, src)``h]j)}(hj5h]hstrtomem (dest, src)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhj]hMhj/`hhubj)}(hX**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubj)}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hj"hhhNhNubj)}(h**dest**h]hdest}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh& is not an argument, as the length of }(hj"hhhNhNubj)}(h**dest**h]hdest}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh& must be discoverable by the compiler.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr (C macro) c.memtostrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemtostrh]j)}(hmemtostrh]jg)}(hmemtostrh]jm)}(hjoh]hmemtostr}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``memtostr (dest, src)``h]j)}(hjh]hmemtostr (dest, src)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h9Copy a possibly non-NUL-term string to a NUL-term string h]h)}(h8Copy a possibly non-NUL-term string to a NUL-term stringh]h8Copy a possibly non-NUL-term string to a NUL-term string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hj8h]hsrc}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj2ubj)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be known at compile-time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr_pad (C macro)c.memtostr_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memtostr_padh]j)}(h memtostr_padh]jg)}(h memtostr_padh]jm)}(hjh]h memtostr_pad}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hj!h]hmemtostr_pad (dest, src)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h]Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination h]h)}(h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destinationh]h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhjIhMhj/`hhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjuh]hdest}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjoubj)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**src**h]hsrc}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be known at compile-time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_after (C macro)c.memset_afterhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memset_afterh]j)}(h memset_afterh]jg)}(h memset_afterh]jm)}(hj[h]h memset_after}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjxhMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h!``memset_after (obj, v, member)``h]j)}(hjh]hmemset_after (obj, v, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h9Set a value after a struct member to the end of a struct h]h)}(h8Set a value after a struct member to the end of a structh]h8Set a value after a struct member to the end of a struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(h**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` after which struct member to start writing bytes **Description** This is good for clearing padding following the given member.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hj$h]hv}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h<``member`` after which struct member to start writing bytes h](j)}(h ``member``h]j)}(hj]h]hmember}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjWubj)}(hhh]h)}(h0after which struct member to start writing bytesh]h0after which struct member to start writing bytes}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_startat (C macro)c.memset_startathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemset_startath]j)}(hmemset_startath]jg)}(hmemset_startath]jm)}(hjh]hmemset_startat}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhj/`hNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hjh]hmemset_startat (obj, v, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h8Set a value starting at a member to the end of a struct h]h)}(h7Set a value starting at a member to the end of a structh]h7Set a value starting at a member to the end of a struct}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj;hMhj/`hhubj)}(hX-**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` struct member to start writing at **Description** Note that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubj)}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjgh]hobj}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjaubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^ubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj^ubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubh)}(hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h]hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstr_has_prefix (C function)c.str_has_prefixhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h;size_t str_has_prefix (const char *str, const char *prefix)h]j)}(h:size_t str_has_prefix(const char *str, const char *prefix)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE str_has_prefixsbc.str_has_prefixasbuh1hhjUhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhj}hMubjg)}(hstr_has_prefixh]jm)}(hjzh]hstr_has_prefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhj}hMubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprefixh]hprefix}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhj}hMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjNhhubj)}(hhh]h)}(h#Test if a string has a given prefixh]h#Test if a string has a given prefix}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjshhubah}(h]h ]h"]h$]h&]uh1jhjNhhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const char *str`` The string to test ``const char *prefix`` The string to see if **str** starts with **Description** A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) But this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix(). **Return** * strlen(**prefix**) if **str** starts with **prefix** * 0 if **str** does not start with **prefix**h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h'``const char *str`` The string to test h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(hThe string to testh]hThe string to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``const char *prefix`` The string to see if **str** starts with h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hj hhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh starts with}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]j)}(h]A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) h](j)}(h3A common way to test a prefix of a string is to do:h]h3A common way to test a prefix of a string is to do:}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjVubj)}(hhh]h)}(h(strncmp(str, prefix, sizeof(prefix) - 1)h]h(strncmp(str, prefix, sizeof(prefix) - 1)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjSubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().h]hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]h)}(hjh](hstrlen(}(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h+0 if **str** does not start with **prefix**h]h)}(hjh](h0 if }(hjhhhNhNubj)}(h**str**h]hstr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh does not start with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrstarts (C function) c.strstartshNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h4bool strstarts (const char *str, const char *prefix)h]j)}(h3bool strstarts(const char *str, const char *prefix)h](j )}(hj8h]hbool}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjkhM,ubjg)}(h strstartsh]jm)}(h strstartsh]h strstarts}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjkhM,ubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprefixh]hprefix}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjkhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjkhM,ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjkhM,hjShhubj)}(hhh]h)}(h#does **str** start with **prefix**?h](hdoes }(hjehhhNhNubj)}(h**str**h]hstr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh start with }(hjehhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh?}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM,hjbhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjkhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(he**Parameters** ``const char *str`` string to examine ``const char *prefix`` prefix to look for.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM0hjubj)}(hhh](j)}(h&``const char *str`` string to examine h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM-hjubj)}(hhh]h)}(hstring to examineh]hstring to examine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h*``const char *prefix`` prefix to look for.h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM/hjubj)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup (C function) c.kstrduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h)char * kstrdup (const char *s, gfp_t gfp)h]j)}(h'char *kstrdup(const char *s, gfp_t gfp)h](j )}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjkhKKubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhKKubjg)}(hkstrduph]jm)}(hkstrduph]hkstrdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhKKubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.kstrdupasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhKKubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhKKhjRhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhj[hhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjzubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKLhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKMhjubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjzubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj)hhhNhNubj)}(h**s**h]hs}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh or }(hj)hhhNhNubj)}(h``NULL``h]hNULL}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh in case of error}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup_const (C function)c.kstrdup_consthNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h5const char * kstrdup_const (const char *s, gfp_t gfp)h]j)}(h3const char *kstrdup_const(const char *s, gfp_t gfp)h](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhKYubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhjhKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhKYubjg)}(h kstrdup_consth]jm)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhKYubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.kstrdup_constasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hgfph]hgfp}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKYubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhKYhjqhhubj)}(hhh]h)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hXT**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Strings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc(). **Return** source string if it is in .rodata section otherwise fallback to kstrdup.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKZhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK[hj ubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hK[hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjMh]hNote}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().h]hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubh)}(hHsource string if it is in .rodata section otherwise fallback to kstrdup.h]hHsource string if it is in .rodata section otherwise fallback to kstrdup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrndup (C function) c.kstrnduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h6char * kstrndup (const char *s, size_t max, gfp_t gfp)h]j)}(h4char *kstrndup(const char *s, size_t max, gfp_t gfp)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKmubjg)}(hkstrnduph]jm)}(hkstrnduph]hkstrndup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKmubj)}(h&(const char *s, size_t max, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t maxh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.kstrndupasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubjm)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j~ c.kstrndupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKmhjhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hXN**Parameters** ``const char *s`` the string to duplicate ``size_t max`` read at most **max** chars from **s** ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Use kmemdup_nul() instead if the size is known exactly. **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKqhjubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjCh]h const char *s}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKnhj=ubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKnhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKnhj:ubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hj|h]h size_t max}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohjvubj)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh chars from }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKohjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKohj:ubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKphjubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphj:ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h7Use kmemdup_nul() instead if the size is known exactly.h]h7Use kmemdup_nul() instead if the size is known exactly.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjMhhhNhNubj)}(h**s**h]hs}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh or }(hjMhhhNhNubj)}(h``NULL``h]hNULL}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh in case of error}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup (C function) c.kmemduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * kmemdup (const void *src, size_t len, gfp_t gfp)h]j)}(h5void *kmemdup(const void *src, size_t len, gfp_t gfp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK}ubjg)}(hkmemduph]jm)}(hkmemduph]hkmemdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK}ubj)}(h((const void *src, size_t len, gfp_t gfp)h](j)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.kmemdupasbuh1hhjCubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hlenh]hlen}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jf c.kmemdupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK}hjhhubj)}(hhh]h)}(hduplicate region of memoryh]hduplicate region of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const void *src`` memory region to duplicate ``size_t len`` memory region length ``gfp_t gfp`` GFP mask to use **Return** newly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h/``const void *src`` memory region to duplicate h](j)}(h``const void *src``h]j)}(hj+h]hconst void *src}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj%ubj)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubj)}(h$``size_t len`` memory region length h](j)}(h``size_t len``h]j)}(hjdh]h size_t len}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj^ubj)}(hhh]h)}(hmemory region lengthh]hmemory region length}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj"ubj)}(h``gfp_t gfp`` GFP mask to use h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hGFP mask to useh]hGFP mask to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj"ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hsnewly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](hnewly allocated copy of }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH in case of error, result is physically contiguous. Use kfree() to free.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup_nul (C function) c.kmemdup_nulhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h9char * kmemdup_nul (const char *s, size_t len, gfp_t gfp)h]j)}(h7char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)h](j )}(hcharh]hchar}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjOhKubjg)}(h kmemdup_nulh]jm)}(h kmemdup_nulh]h kmemdup_nul}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jqsb c.kmemdup_nulasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]j c.kmemdup_nulasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hgfph]hgfp}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhKhj6hhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const char *s`` The data to stringify ``size_t len`` The size of the data ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h(``const char *s`` The data to stringify h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hThe data to stringifyh]hThe data to stringify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``size_t len`` The size of the data h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hThe size of the datah]hThe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hj=h]h gfp_t gfp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj7ubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjxh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with NUL-termination or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user (C function) c.memdup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * memdup_user (const void __user *src, size_t len)h]j)}(h5void *memdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h memdup_userh]jm)}(h memdup_userh]h memdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh__user}(hj'hhhNhNubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memdup_userasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj6h]hconst void __user *src}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj0ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj-ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjoh]h size_t len}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjiubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h]hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmemdup_user (C function)c.vmemdup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h8void * vmemdup_user (const void __user *src, size_t len)h]j)}(h6void *vmemdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h vmemdup_userh]jm)}(h vmemdup_userh]h vmemdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh__user}(hj5hhhNhNubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.vmemdup_userasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjDh]hconst void __user *src}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj>ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hj}h]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjwubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhKhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h]hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrndup_user (C function)c.strndup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h2char * strndup_user (const char __user *s, long n)h]j)}(h0char *strndup_user(const char __user *s, long n)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubjg)}(h strndup_userh]jm)}(h strndup_userh]h strndup_user}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *sh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh__user}(hjChhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hlong nh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h,duplicate an existing string from user spaceh]h,duplicate an existing string from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char __user *s`` The string to duplicate ``long n`` Maximum number of bytes to copy, including the trailing NUL. **Return** newly allocated copy of **s** or an ERR_PTR() in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjubj)}(hhh](j)}(h1``const char __user *s`` The string to duplicate h](j)}(h``const char __user *s``h]j)}(hj;h]hconst char __user *s}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhj5ubj)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hjth]hlong n}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjnubj)}(hhh]h)}(hnewly allocated copy of **s** or an ERR_PTR() in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! or an ERR_PTR() in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user_nul (C function)c.memdup_user_nulhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h;void * memdup_user_nul (const void __user *src, size_t len)h]j)}(h9void *memdup_user_nul(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM$ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubjg)}(hmemdup_user_nulh]jm)}(hmemdup_user_nulh]hmemdup_user_nul}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh__user}(hjLhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j6sbc.memdup_user_nulasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]h)}(h9duplicate memory region from user space and NUL-terminateh]h9duplicate memory region from user space and NUL-terminate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM(hj6ubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj[h]hconst void __user *src}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM&hjUubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM&hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM&hjRubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM'hjubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hj6ubh)}(han ERR_PTR() on failure.h]han ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubeh}(h]string-manipulationah ]h"]string manipulationah$]h&]uh1hhhhhhhhKubeh}(h]basic-c-library-functionsah ]h"]basic c library functionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBasic Kernel Library Functionsh]hBasic Kernel Library Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK/ubh)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hj hhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhK4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_bit (C function) c.set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h4void set_bit (long nr, volatile unsigned long *addr)h]j)}(h3void set_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhKubjg)}(hset_bith]jm)}(hset_bith]hset_bit}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hvolatileh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhKhjIhhubj)}(hhh]h)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj*hNhNubj)}(hX>**Parameters** ``long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubj)}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hj+hhhNhNubj)}(h**nr**h]hnr}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit (C function) c.clear_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h6void clear_bit (long nr, volatile unsigned long *addr)h]j)}(h5void clear_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhK!ubjg)}(h clear_bith]jm)}(h clear_bith]h clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhK!ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhK!ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhK!hjahhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!hjehhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK"hjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK#hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hchange_bit (C function) c.change_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h7void change_bit (long nr, volatile unsigned long *addr)h]j)}(h6void change_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphK.ubjg)}(h change_bith]jm)}(h change_bith]h change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphK.ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphK.ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphK.hjWhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.hj[hhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj*hNhNubj)}(hX9**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjzubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK0hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjzubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK1hjzubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hj8hhhNhNubj)}(h**nr**h]hnr}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK3hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_set_bit (C function)c.test_and_set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhK>ubjg)}(htest_and_set_bith]jm)}(htest_and_set_bith]htest_and_set_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhK>ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhK>ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjnhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjqhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubj)}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK?hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK@hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h?bool test_and_clear_bit (long nr, volatile unsigned long *addr)h]j)}(h>bool test_and_clear_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhj{hKLubjg)}(htest_and_clear_bith]jm)}(htest_and_clear_bith]htest_and_clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj{hKLubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj{hKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj{hKLubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj{hKLhjchhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLhjfhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj{hKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKNhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h test_and_change_bit (C function)c.test_and_change_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h@bool test_and_change_bit (long nr, volatile unsigned long *addr)h]j)}(h?bool test_and_change_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphKZubjg)}(htest_and_change_bith]jm)}(htest_and_change_bith]htest_and_change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjphKZubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjphKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjphKZubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjphKZhjXhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZhj[hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjphKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjzubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK\hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjzubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK]hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___set_bit (C function) c.___set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h@void ___set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(h?void ___set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhKubjg)}(h ___set_bith]jm)}(h ___set_bith]h ___set_bit}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhKubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhKhjMhhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX,**Parameters** ``unsigned long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h$``unsigned long nr`` the bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubh)}(hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___clear_bit (C function)c.___clear_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hBvoid ___clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hAvoid ___clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhK!ubjg)}(h ___clear_bith]jm)}(h ___clear_bith]h ___clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhK!ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjXhhhNhNubah}(h]%h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhK!ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhK!hj_hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX0**Parameters** ``unsigned long nr`` the bit to clear ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubj)}(hhh](j)}(h&``unsigned long nr`` the bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK"hjubj)}(hhh]h)}(hthe bit to clearh]hthe bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK#hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubh)}(hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___change_bit (C function)c.___change_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hCvoid ___change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hBvoid ___change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhK1ubjg)}(h ___change_bith]jm)}(h ___change_bith]h ___change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhK1ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhK1ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhK1hjqhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX2**Parameters** ``unsigned long nr`` the bit to change ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubj)}(hhh](j)}(h'``unsigned long nr`` the bit to change h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK2hjubj)}(hhh]h)}(hthe bit to changeh]hthe bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK3hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hK3hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubh)}(hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hIbool ___test_and_set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hHbool ___test_and_set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKYubjg)}(h___test_and_set_bith]jm)}(h___test_and_set_bith]h___test_and_set_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKYubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKYhjhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubj)}(hhh](j)}(h ``unsigned long nr`` Bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKZhjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK[hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK[hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hKbool ___test_and_clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hJbool ___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKhubjg)}(h___test_and_clear_bith]jm)}(h___test_and_clear_bith]h___test_and_clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKhubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhhjhhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubj)}(hhh](j)}(h"``unsigned long nr`` Bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKihjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKihj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKihjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj0h]hvolatile unsigned long *addr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhj*ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKjhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hLbool ___test_and_change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hKbool ___test_and_change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKwubjg)}(h___test_and_change_bith]jm)}(h___test_and_change_bith]h___test_and_change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKwubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubj)}(hhh](j)}(h#``unsigned long nr`` Bit to change h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKxhjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjAh]hvolatile unsigned long *addr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhj;ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKyhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKyhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit (C function) c._test_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hEbool _test_bit (unsigned long nr, const volatile unsigned long *addr)h]j)}(hDbool _test_bit(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h _test_bith]jm)}(h _test_bith]h _test_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hDetermine whether a bit is seth]hDetermine whether a bit is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hj4h]hunsigned long nr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj.ubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhj+ubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjmh]h"const volatile unsigned long *addr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjgubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhj*hhhNhNubh)}(hhh](j)}(hMbool _test_bit_acquire (unsigned long nr, const volatile unsigned long *addr)h]j)}(hLbool _test_bit_acquire(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h_test_bit_acquireh]jm)}(h_test_bit_acquireh]h_test_bit_acquire}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h7Determine, with acquire semantics, whether a bit is seth]h7Determine, with acquire semantics, whether a bit is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hj:h]hunsigned long nr}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj4ubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhj1ubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjsh]h"const volatile unsigned long *addr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjmubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhj*hhhNhNubh)}(hhh](j)}(h=void clear_bit_unlock (long nr, volatile unsigned long *addr)h]j)}(hvoid __clear_bit_unlock(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h__clear_bit_unlockh]jm)}(h__clear_bit_unlockh]h__clear_bit_unlock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX7**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK hjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj9h]hvolatile unsigned long *addr}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK!hj3ubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhK!hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhK!hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubh)}(hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h]hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhj*hhhNhNubh)}(hhh](j)}(hBbool test_and_set_bit_lock (long nr, volatile unsigned long *addr)h]j)}(hAbool test_and_set_bit_lock(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK/ubjg)}(htest_and_set_bit_lockh]jm)}(htest_and_set_bit_lockh]htest_and_set_bit_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK/ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK/hjhhubj)}(hhh]h)}(h,Set a bit and return its old value, for lockh]h,Set a bit and return its old value, for lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubj)}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK0hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK0hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK0hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj.h]hvolatile unsigned long *addr}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK1hj(ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChK1hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubh)}(hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h]hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhj*hhhNhNubh)}(hhh](j)}(hSbool xor_unlock_is_negative_byte (unsigned long mask, volatile unsigned long *addr)h]j)}(hRbool xor_unlock_is_negative_byte(unsigned long mask, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK>ubjg)}(hxor_unlock_is_negative_byteh]jm)}(hxor_unlock_is_negative_byteh]hxor_unlock_is_negative_byte}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>ubj)}(h2(unsigned long mask, volatile unsigned long *addr)h](j)}(hunsigned long maskh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjhhubj)}(hhh]h)}(hCXOR a single byte in memory and test if it is negative, for unlock.h]hCXOR a single byte in memory and test if it is negative, for unlock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX-**Parameters** ``unsigned long mask`` Change the bits which are set in this mask. ``volatile unsigned long *addr`` The address of the word containing the byte to change. **Description** Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock. **Return** Whether the top bit of the byte is set.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhjubj)}(hhh](j)}(hC``unsigned long mask`` Change the bits which are set in this mask. h](j)}(h``unsigned long mask``h]j)}(hjh]hunsigned long mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK@hjubj)}(hhh]h)}(h+Change the bits which are set in this mask.h]h+Change the bits which are set in this mask.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(hX``volatile unsigned long *addr`` The address of the word containing the byte to change. h](j)}(h ``volatile unsigned long *addr``h]j)}(hj?h]hvolatile unsigned long *addr}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKAhj9ubj)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKAhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKAhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKChjubh)}(hX6Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.h](h3Changes some of bits 0-6 in the word pointed to by }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKHhjubh)}(h'Whether the top bit of the byte is set.h]h'Whether the top bit of the byte is set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhj hhhhhK4ubh)}(hhh](h)}(hBitmap Operationsh]hBitmap Operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK@ubh)}(hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.h]hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(hXThe possible unused bits in the last, partially used word of a bitmap are 'don't care'. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.h]hXThe possible unused bits in the last, partially used word of a bitmap are ‘don’t care’. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.h]hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named 'name' of just enough unsigned longs to contain all bit positions from 0 to 'bits' - 1.h]hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named ‘name’ of just enough unsigned longs to contain all bit positions from 0 to ‘bits’ - 1.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:69: ./include/linux/bitmap.hhKzhjhhubh)}(hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:h]hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK!hjhhubh)}(hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.h]hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK$hjhhubj#C)}(hX bitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at starth]hX bitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at start}hjRsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK)hjhhubh)}(hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.h]hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhKYhjhhubh)}(hAAlso the following operations in asm/bitops.h apply to bitmaps.::h]h@Also the following operations in asm/bitops.h apply to bitmaps.:}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKchjhhubj#C)}(hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)h]hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKehjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhjhhhNhNubh)}(hhh](j)}(hhvoid __bitmap_shift_right (unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h]j)}(hgvoid __bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKRubjg)}(h__bitmap_shift_righth]jm)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKRubj)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hj) hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> ubj)}(h h]h }(hjO hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj> ubj )}(hunsignedh]hunsigned}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj> ubj)}(h h]h }(hjk hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj> ubj )}(hlongh]hlong}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj> ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj> ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> ubjm)}(hsrch]hsrc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj> ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned shifth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned nbitsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hnbitsh]hnbits}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKRhjhhubj)}(hhh]h)}(h+logical right shift of the bits in a bitmaph]h+logical right shift of the bits in a bitmap}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRhj3 hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjN jjN jjjuh1hhhhjhNhNubj)}(hX}**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned shift`` shift by this many bits ``unsigned nbits`` bitmap size, in bits **Description** Shifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h](h)}(h**Parameters**h]j)}(hjX h]h Parameters}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhjR ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjw h]hunsigned long *dst}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShjq ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKShj ubah}(h]h ]h"]h$]h&]uh1jhjq ubeh}(h]h ]h"]h$]h&]uh1jhj hKShjn ubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hj h]hconst unsigned long *src}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKThj ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKThj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKThjn ubj)}(h+``unsigned shift`` shift by this many bits h](j)}(h``unsigned shift``h]j)}(hj h]hunsigned shift}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKUhj ubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKUhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKUhjn ubj)}(h(``unsigned nbits`` bitmap size, in bits h](j)}(h``unsigned nbits``h]j)}(hj" h]hunsigned nbits}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhj ubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7 hKVhj8 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj7 hKVhjn ubeh}(h]h ]h"]h$]h&]uh1jhjR ubh)}(h**Description**h]j)}(hj] h]h Description}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKXhjR ubh)}(hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h]hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhjR ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhjhhhNhNubh)}(hhh](j)}(hovoid __bitmap_shift_left (unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h]j)}(hnvoid __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hK~ubjg)}(h__bitmap_shift_lefth]jm)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hK~ubj)}(hV(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdsth]hdst}(hj$ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 ubj)}(h h]h }(hjJ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubj )}(hunsignedh]hunsigned}(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9 ubj)}(h h]h }(hjf hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubj )}(hlongh]hlong}(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9 ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 ubjm)}(hsrch]hsrc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9 ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int shifth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj# hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj1 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hnbitsh]hnbits}(hj? hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hK~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hK~ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hK~hj hhubj)}(hhh]h)}(h*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~hjf hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hK~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned int shift`` shift by this many bits ``unsigned int nbits`` bitmap size, in bits **Description** Shifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hj h]hunsigned long *dst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hj h]hconst unsigned long *src}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h/``unsigned int shift`` shift by this many bits h](j)}(h``unsigned int shift``h]j)}(hjh]hunsigned int shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhj ubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hjUh]hunsigned int nbits}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjOubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubh)}(hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h]hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_cut (C function) c.bitmap_cuthNtauh1hhjhhhNhNubh)}(hhh](j)}(hxvoid bitmap_cut (unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h]j)}(hwvoid bitmap_cut(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h bitmap_cuth]jm)}(h bitmap_cuth]h bitmap_cut}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hh(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int firsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfirsth]hfirst}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hcuth]hcut}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hnrh]hnr}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long align_offseth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h align_offseth]h align_offset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjhNhNubj)}(hXF**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area ``unsigned long align_offset`` Alignment offset for zero area. **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj^ubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjh]hunsigned long *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj}ubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjzubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hj.h]hunsigned int nr}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj(ubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjzubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjgh]hunsigned long align_mask}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjaubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjzubj)}(h?``unsigned long align_offset`` Alignment offset for zero area. h](j)}(h``unsigned long align_offset``h]j)}(hjh]hunsigned long align_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hAlignment offset for zero area.h]hAlignment offset for zero area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj^ubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2.h](hThe }(hjhhhNhNubj)}(h**align_mask**h]h align_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus }(hjhhhNhNubj)}(h**align_offset**h]h align_offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is multiple of that power of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_remap (C function)c.bitmap_remaphNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid bitmap_remap (unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h]j)}(hvoid bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(h bitmap_remaph]jm)}(h bitmap_remaph]h bitmap_remap}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(hv(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(hhh]h)}(h8Apply map defined by a pair of bitmaps to another bitmaph]h8Apply map defined by a pair of bitmaps to another bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` remapped result ``const unsigned long *src`` subset to be remapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. If either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh](j)}(h'``unsigned long *dst`` remapped result h](j)}(h``unsigned long *dst``h]j)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hremapped resulth]hremapped result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``const unsigned long *src`` subset to be remapped h](j)}(h``const unsigned long *src``h]j)}(hj&h]hconst unsigned long *src}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj ubj)}(hhh]h)}(hsubset to be remappedh]hsubset to be remapped}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj_h]hconst unsigned long *old}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjYubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjh]hconst unsigned long *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hj"hhhNhNubj)}(h**old**h]hold}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh and }(hj"hhhNhNubj)}(h**new**h]hnew}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hj"hhhNhNubj)}(h**old**h]hold}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh" is mapped to the n-th set bit in }(hj"hhhNhNubj)}(h**new**h]hnew}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hj"hhhNhNubj)}(h**new**h]hnew}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh is less than the weight of }(hj"hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh*, map the position of the n-th set bit in }(hj"hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh( to the position of the m-th set bit in }(hj"hhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh, where m == n % w.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hIf either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**.h](hIf either of the }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmaps are empty, or if }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 point to the same location, then this routine copies }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**dst**h]hdst}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj<hhhNhNubj)}(h**old**h]hold}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh- are mapped to themselves (the identity map).}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hyApply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**.h](h%Apply the above specified mapping to }(hj]hhhNhNubj)}(h**src**h]hsrc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh, placing the result in }(hj]hhhNhNubj)}(h**dst**h]hdst}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh&, clearing any bits previously set in }(hj]hhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXZFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](hFor example, lets say that }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh has bits 4 through 7 set, and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 comes into this routine with bits 1, 5 and 7 set, then }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) should leave with bits 1, 13 and 15 set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhjhhhNhNubh)}(hhh](j)}(h^int bitmap_bitremap (int oldbit, const unsigned long *old, const unsigned long *new, int bits)h]j)}(h]int bitmap_bitremap(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hMubjg)}(hbitmap_bitremaph]jm)}(hbitmap_bitremaph]hbitmap_bitremap}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hMubj)}(hJ(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j)}(h int oldbith](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(holdbith]holdbit}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hint bitsh](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj)}(hhh]h)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXS**Parameters** ``int oldbit`` bit position to be mapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``int bits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to bit position **oldbit**, returning the new bit position. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjubj)}(hhh](j)}(h)``int oldbit`` bit position to be mapped h](j)}(h``int oldbit``h]j)}(hj h]h int oldbit}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjubj)}(hhh]h)}(hbit position to be mappedh]hbit position to be mapped}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj= h]hconst unsigned long *old}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj; ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hj7 ubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR hM hjS ubah}(h]h ]h"]h$]h&]uh1jhj7 ubeh}(h]h ]h"]h$]h&]uh1jhjR hM hjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjv h]hconst unsigned long *new}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjp ubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjp ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h5``int bits`` number of bits in each of these bitmaps h](j)}(h ``int bits``h]j)}(hj h]hint bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hj ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hj!hhhNhNubj)}(h**old**h]hold}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh and }(hj!hhhNhNubj)}(h**new**h]hnew}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hj!hhhNhNubj)}(h**old**h]hold}(hj,!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh" is mapped to the n-th set bit in }(hj!hhhNhNubj)}(h**new**h]hnew}(hj>!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hj!hhhNhNubj)}(h**new**h]hnew}(hjP!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh is less than the weight of }(hj!hhhNhNubj)}(h**old**h]hold}(hjb!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh*, map the position of the n-th set bit in }(hj!hhhNhNubj)}(h**old**h]hold}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh( to the position of the m-th set bit in }(hj!hhhNhNubj)}(h**new**h]hnew}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh, where m == n % w.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj!hhhNhNubj)}(h**old**h]hold}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh- are mapped to themselves (the identity map).}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(h]Apply the above specified mapping to bit position **oldbit**, returning the new bit position.h](h2Apply the above specified mapping to bit position }(hj!hhhNhNubj)}(h **oldbit**h]holdbit}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh!, returning the new bit position.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](hFor example, lets say that }(hj!hhhNhNubj)}(h**old**h]hold}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh has bits 4 through 7 set, and }(hj!hhhNhNubj)}(h**new**h]hnew}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hj!hhhNhNubj)}(h **oldbit**h]holdbit}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh$ is 5, then this routine returns 13.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhjhhhNhNubh)}(hhh](j)}(hRvoid bitmap_from_arr32 (unsigned long *bitmap, const u32 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjF"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB"hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hjU"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB"hhhjT"hMubjg)}(hbitmap_from_arr32h]jm)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hjg"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjB"hhhjT"hMubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hbitmaph]hbitmap}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{"ubj)}(hconst u32 *bufh](j)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hu32h]hu32}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jR )}jE ji"sbc.bitmap_from_arr32asbuh1hhj"ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj-#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hbufh]hbuf}(hj:#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{"ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjS#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO#ubj)}(h h]h }(hja#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO#ubj )}(hinth]hint}(hjo#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO#ubj)}(h h]h }(hj}#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO#ubjm)}(hnbitsh]hnbits}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{"ubeh}(h]h ]h"]h$]h&]jjuh1jhjB"hhhjT"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>"hhhjT"hMubah}(h]j9"ah ](jjeh"]h$]h&]jj)jhuh1hhjT"hMhj;"hhubj)}(hhh]h)}(h0copy the contents of u32 array of bits to bitmaph]h0copy the contents of u32 array of bits to bitmap}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhj;"hhhjT"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u32 *buf`` array of u32 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#ubj)}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj#h]hunsigned long *bitmap}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#ubj)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj $hMhj $ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj $hMhj#ubj)}(hH``const u32 *buf`` array of u32 (in host byte order), the source bitmap h](j)}(h``const u32 *buf``h]j)}(hj/$h]hconst u32 *buf}(hj1$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj)$ubj)}(hhh]h)}(h4array of u32 (in host byte order), the source bitmaph]h4array of u32 (in host byte order), the source bitmap}(hjH$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD$hMhjE$ubah}(h]h ]h"]h$]h&]uh1jhj)$ubeh}(h]h ]h"]h$]h&]uh1jhjD$hMhj#ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hjh$h]hunsigned int nbits}(hjj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjb$ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj$hhhNhNubj)}(h **bitmap**h]hbitmap}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj~$ubah}(h]h ]h"]h$]h&]uh1jhjb$ubeh}(h]h ]h"]h$]h&]uh1jhj}$hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhjhhhNhNubh)}(hhh](j)}(hPvoid bitmap_to_arr32 (u32 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr32(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM&ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj$hM&ubjg)}(hbitmap_to_arr32h]jm)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj$hM&ubj)}(h;(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu32 *bufh](h)}(hhh]jm)}(hu32h]hu32}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj %ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE j$sbc.bitmap_to_arr32asbuh1hhj %ubj)}(h h]h }(hj0%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj %ubj)}(hjh]h*}(hj>%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj %ubjm)}(hbufh]hbuf}(hjK%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj %ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjd%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`%ubj)}(h h]h }(hjq%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`%ubj )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`%ubj )}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`%ubjm)}(hbitmaph]hbitmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubjm)}(hnbitsh]hnbits}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj$hM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hM&ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hM&hj$hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u32 array of bitsh]h2copy the contents of bitmap to a u32 array of bits}(hj?&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM&hj<&hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjW&jjW&jjjuh1hhhhjhNhNubj)}(h**Parameters** ``u32 *buf`` array of u32 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hja&h]h Parameters}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_&ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM*hj[&ubj)}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hj&h]hu32 *buf}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM'hjz&ubj)}(hhh]h)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM'hj&ubah}(h]h ]h"]h$]h&]uh1jhjz&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM'hjw&ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj&h]hconst unsigned long *bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM(hj&ubj)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM(hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM(hjw&ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj&h]hunsigned int nbits}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM*hj&ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj 'hhhNhNubj)}(h **bitmap**h]hbitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 'ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM)hj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hM*hjw&ubeh}(h]h ]h"]h$]h&]uh1jhj[&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hRvoid bitmap_from_arr64 (unsigned long *bitmap, const u64 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjZ'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjV'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM?ubj)}(h h]h }(hji'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV'hhhjh'hM?ubjg)}(hbitmap_from_arr64h]jm)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hj{'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjw'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjV'hhhjh'hM?ubj)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hbitmaph]hbitmap}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst u64 *bufh](j)}(hjh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hu64h]hu64}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE j}'sbc.bitmap_from_arr64asbuh1hhj'ubj)}(h h]h }(hj3(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjA(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hbufh]hbuf}(hjN(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjg(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc(ubj)}(h h]h }(hju(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc(ubj )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc(ubjm)}(hnbitsh]hnbits}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjV'hhhjh'hM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjR'hhhjh'hM?ubah}(h]jM'ah ](jjeh"]h$]h&]jj)jhuh1hhjh'hM?hjO'hhubj)}(hhh]h)}(h0copy the contents of u64 array of bits to bitmaph]h0copy the contents of u64 array of bits to bitmap}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM?hj(hhubah}(h]h ]h"]h$]h&]uh1jhjO'hhhjh'hM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u64 *buf`` array of u64 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMChj(ubj)}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj )h]hunsigned long *bitmap}(hj )hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM@hj)ubj)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj#)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM@hj )ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM@hj)ubj)}(hH``const u64 *buf`` array of u64 (in host byte order), the source bitmap h](j)}(h``const u64 *buf``h]j)}(hjC)h]hconst u64 *buf}(hjE)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMAhj=)ubj)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hj\)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX)hMAhjY)ubah}(h]h ]h"]h$]h&]uh1jhj=)ubeh}(h]h ]h"]h$]h&]uh1jhjX)hMAhj)ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj|)h]hunsigned int nbits}(hj~)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMChjv)ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj)hhhNhNubj)}(h **bitmap**h]hbitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMBhj)ubah}(h]h ]h"]h$]h&]uh1jhjv)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMChj)ubeh}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hPvoid bitmap_to_arr64 (u64 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM]ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj)hM]ubjg)}(hbitmap_to_arr64h]jm)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hM]ubj)}(h;(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu64 *bufh](h)}(hhh]jm)}(hu64h]hu64}(hj$*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&*modnameN classnameNjI jL )}jO ]jR )}jE j*sbc.bitmap_to_arr64asbuh1hhj*ubj)}(h h]h }(hjD*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjR*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hbufh]hbuf}(hj_*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjx*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt*ubj )}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjt*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt*ubj )}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjt*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt*ubjm)}(hbitmaph]hbitmap}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj )}(hinth]hint}(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubjm)}(hnbitsh]hnbits}(hj)+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj)hM]ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hM]hj)hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u64 array of bitsh]h2copy the contents of bitmap to a u64 array of bits}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM]hjP+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk+jjk+jjjuh1hhhhjhNhNubj)}(h**Parameters** ``u64 *buf`` array of u64 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hju+h]h Parameters}(hjw+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs+ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMahjo+ubj)}(hhh](j)}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j)}(h ``u64 *buf``h]j)}(hj+h]hu64 *buf}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM^hj+ubj)}(hhh]h)}(h2array of u64 (in host byte order), the dest bitmaph]h2array of u64 (in host byte order), the dest bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM^hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM^hj+ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj+h]hconst unsigned long *bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM_hj+ubj)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM_hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM_hj+ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj,h]hunsigned int nbits}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMahj,ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj,hhhNhNubj)}(h **bitmap**h]hbitmap}(hj',hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM`hj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMahj+ubeh}(h]h ]h"]h$]h&]uh1jhjo+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhjhhhNhNubh)}(hhh](j)}(hVint bitmap_pos_to_ord (const unsigned long *buf, unsigned int pos, unsigned int nbits)h]j)}(hUint bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j )}(hinth]hint}(hjn,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj,hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hj},hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj,hhhj|,hMubjg)}(hbitmap_pos_to_ordh]jm)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjj,hhhj|,hMubj)}(h@(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j)}(hconst unsigned long *bufh](j)}(hjh]hconst}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj )}(hunsignedh]hunsigned}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj )}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hbufh]hbuf}(hj -hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj$-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj -ubj)}(h h]h }(hj2-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj -ubj )}(hinth]hint}(hj@-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj -ubj)}(h h]h }(hjN-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj -ubjm)}(hposh]hpos}(hj\-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj -ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hju-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubj )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubjm)}(hnbitsh]hnbits}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjj,hhhj|,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf,hhhj|,hMubah}(h]ja,ah ](jjeh"]h$]h&]jj)jhuh1hhj|,hMhjc,hhubj)}(hhh]h)}(h3find ordinal of set bit at given position in bitmaph]h3find ordinal of set bit at given position in bitmap}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjc,hhhj|,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubj)}(hX,**Parameters** ``const unsigned long *buf`` pointer to a bitmap ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) ``unsigned int nbits`` number of valid bit positions in **buf** **Description** Map the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1. If for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**. The bit positions 0 through **bits** are valid positions in **buf**.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubj)}(hhh](j)}(h1``const unsigned long *buf`` pointer to a bitmap h](j)}(h``const unsigned long *buf``h]j)}(hj.h]hconst unsigned long *buf}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-.hMhj..ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj-.hMhj.ubj)}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j)}(h``unsigned int pos``h]j)}(hjQ.h]hunsigned int pos}(hjS.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjK.ubj)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hjj.hhhNhNubj)}(h**buf**h]hbuf}(hjr.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh (0 <= }(hjj.hhhNhNubj)}(h**pos**h]hpos}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh < }(hjj.hhhNhNubj)}(h **nbits**h]hnbits}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh)}(hjj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjf.hMhjg.ubah}(h]h ]h"]h$]h&]uh1jhjK.ubeh}(h]h ]h"]h$]h&]uh1jhjf.hMhj.ubj)}(h@``unsigned int nbits`` number of valid bit positions in **buf** h](j)}(h``unsigned int nbits``h]j)}(hj.h]hunsigned int nbits}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hj.hhhNhNubj)}(h**buf**h]hbuf}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj.ubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hj /h]h Description}(hj /hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubh)}(hMap the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1.h](hMap the bit at position }(hj/hhhNhNubj)}(h**pos**h]hpos}(hj'/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh in }(hj/hhhNhNubj)}(h**buf**h]hbuf}(hj9/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh (of length }(hj/hhhNhNubj)}(h **nbits**h]hnbits}(hjK/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhA) to the ordinal of which set bit it is. If it is not set or if }(hj/hhhNhNubj)}(h**pos**h]hpos}(hj]/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh( is not a valid bit position, map to -1.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubh)}(hXPIf for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**.h](h1If for example, just bits 4 through 7 are set in }(hjv/hhhNhNubj)}(h**buf**h]hbuf}(hj~/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh, then }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh% values will get mapped to -1. When }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh" value 7 gets mapped to (returns) }(hjv/hhhNhNubj)}(h**ord**h]hord}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hjv/hhhNhNubj)}(h**buf**h]hbuf}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh.}(hjv/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubh)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hj/hhhNhNubj)}(h**bits**h]hbits}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh are valid positions in }(hj/hhhNhNubj)}(h**buf**h]hbuf}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_onto (C function) c.bitmap_ontohNtauh1hhjhhhNhNubh)}(hhh](j)}(hpvoid bitmap_onto (unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h]j)}(hovoid bitmap_onto(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j )}(hvoidh]hvoid}(hjD0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@0hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM/ubj)}(h h]h }(hjS0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@0hhhjR0hM/ubjg)}(h bitmap_ontoh]jm)}(h bitmap_ontoh]h bitmap_onto}(hje0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@0hhhjR0hM/ubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}0ubj )}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}0ubjm)}(hdsth]hdst}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj$1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj21hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(horigh]horig}(hj?1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hjX1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT1ubj)}(h h]h }(hje1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj )}(hunsignedh]hunsigned}(hjs1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT1ubjm)}(hrelmaph]hrelmap}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}( h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hbitsh]hbits}(hj 2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubeh}(h]h ]h"]h$]h&]jjuh1jhj@0hhhjR0hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<0hhhjR0hM/ubah}(h]j70ah ](jjeh"]h$]h&]jj)jhuh1hhjR0hM/hj90hhubj)}(hhh]h)}(h(translate one bitmap relative to anotherh]h(translate one bitmap relative to another}(hj32hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM/hj02hhubah}(h]h ]h"]h$]h&]uh1jhj90hhhjR0hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjK2jjK2jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting translated bitmap ``const unsigned long *orig`` original untranslated bitmap ``const unsigned long *relmap`` bitmap relative to which translated ``unsigned int bits`` number of bits in each of these bitmaps **Description** Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.) In other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }. Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**. Example [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. Example [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= .. [#f1] For these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty. If (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty. All bits in **dst** not set by the above rule are cleared.h](h)}(h**Parameters**h]j)}(hjU2h]h Parameters}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS2ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM3hjO2ubj)}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hjt2h]hunsigned long *dst}(hjv2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM0hjn2ubj)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM0hj2ubah}(h]h ]h"]h$]h&]uh1jhjn2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM0hjk2ubj)}(h;``const unsigned long *orig`` original untranslated bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj2h]hconst unsigned long *orig}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM1hj2ubj)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM1hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM1hjk2ubj)}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j)}(h``const unsigned long *relmap``h]j)}(hj2h]hconst unsigned long *relmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM2hj2ubj)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM2hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM2hjk2ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj3h]hunsigned int bits}(hj!3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM3hj3ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj43hM3hj53ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj43hM3hjk2ubeh}(h]h ]h"]h$]h&]uh1jhjO2ubh)}(h**Description**h]j)}(hjZ3h]h Description}(hj\3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX3ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM5hjO2ubh)}(hX<Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.)h](hSet the n-th bit of }(hjp3hhhNhNubj)}(h**dst**h]hdst}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh3 iff there exists some m such that the n-th bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is set, the m-th bit of }(hjp3hhhNhNubj)}(h**orig**h]horig}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is set, and the n-th bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is also the m-th _set_ bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjp3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM4hjO2ubh)}(hIn other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }.h](hIn other words, }(hj3hhhNhNubj)}(h**orig**h]horig}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh is mapped onto (surjectively) }(hj3hhhNhNubj)}(h**dst**h]hdst}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh+, using the map { | the n-th bit of }(hj3hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh is the m-th set bit of }(hj3hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh }.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM:hjO2ubh)}(hX9Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**.h](hAny set bits in }(hj04hhhNhNubj)}(h**orig**h]horig}(hj84hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubhF above bit number W, where W is the weight of (number of set bits in) }(hj04hhhNhNubj)}(h **relmap**h]hrelmap}(hjJ4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh= are mapped nowhere. In particular, if for all bits m set in }(hj04hhhNhNubj)}(h**orig**h]horig}(hj\4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh, m >= W, then }(hj04hhhNhNubj)}(h**dst**h]hdst}(hjn4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the }(hj04hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in }(hj04hhhNhNubj)}(h**dst**h]hdst}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh, for each bit (m) set in }(hj04hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh.}(hj04hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM>hjO2ubj)}(hhh](j)}(hXExample [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. h](j)}(hExample [1] for bitmap_onto():h]hExample [1] for bitmap_onto():}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMahj4ubj)}(hhh](h)}(hLet's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set.h](h Let’s say }(hj4hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh has bits 30-39 set, and }(hj4hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hj4hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh* will have bits 31, 33, 35, 37 and 39 set.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMIhj4ubh)}(hWhen bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**.h](hWhen bit 0 is set in }(hj5hhhNhNubj)}(h**orig**h]horig}(hj#5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh, it means turn on the bit in }(hj5hhhNhNubj)}(h**dst**h]hdst}(hj55hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hj5hhhNhNubj)}(h **relmap**h]hrelmap}(hjG5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hj5hhhNhNubj)}(h**dst**h]hdst}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMMhj4ubh)}(hXWhen bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**.h](hWhen bit 1 is set in }(hjr5hhhNhNubj)}(h**orig**h]horig}(hjz5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh8 (as in the above example), it means turn on the bit in }(hjr5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubhB corresponding to whatever is the second bit that is turned on in }(hjr5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh. The second bit in }(hjr5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hjr5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh.}(hjr5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMRhj4ubh)}(hSimilarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set.h](h2Similarly, we turned on bits 33, 35, 37 and 39 in }(hj5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hj5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh), and the 4th, 6th, 8th and 10th bits of }(hj5hhhNhNubj)}(h**orig**h]horig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMXhj4ubh)}(hX When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**.h](hWhen bit 11 is set in }(hj 6hhhNhNubj)}(h**orig**h]horig}(hj(6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh, it means turn on the bit in }(hj 6hhhNhNubj)}(h**dst**h]hdst}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj 6hhhNhNubj)}(h **relmap**h]hrelmap}(hjL6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh?. In the above example, there were only ten bits turned on in }(hj 6hhhNhNubj)}(h **relmap**h]hrelmap}(hj^6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh% (30..39), so that bit 11 was set in }(hj 6hhhNhNubj)}(h**orig**h]horig}(hjp6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh had no affect on }(hj 6hhhNhNubj)}(h**dst**h]hdst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh.}(hj 6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM]hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMahj4ubj)}(hXExample [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h](j)}(h.Example [2] for bitmap_fold() + bitmap_onto():h]h.Example [2] for bitmap_fold() + bitmap_onto():}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj6ubj)}(hhh](h)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh has these ten bits set:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMdhj6ubj#C)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hj6sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMfhj6ubh)}(hP(for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.)h]hR(for the curious, that’s 40 plus the first ten terms of the Fibonacci sequence.)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhhj6ubh)}(hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result::h](hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty }(hj6hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh result:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMkhj6ubj#C)}(hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);h]hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);}hj7sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMohj6ubh)}(hXThen this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**):h](h-Then this table shows what various values of }(hj,7hhhNhNubj)}(h**dst**h]hdst}(hj47hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh would be, for various }(hj,7hhhNhNubj)}(h**orig**h]horig}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh’s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the }(hj,7hhhNhNubj)}(h**orig**h]horig}(hjX7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh" bitmap modulo ten (the weight of }(hj,7hhhNhNubj)}(h **relmap**h]hrelmap}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh):}(hj,7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMthj6ubj)}(hXF=============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h]je)}(hhh]je)}(hhh](je)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj7ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj7ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj7ubjZf)}(hhh](je)}(hhh](je)}(hhh]h)}(h**orig**h]j)}(hj7h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh]h)}(htmph]htmp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh]h)}(h**dst**h]j)}(hj7h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhj7hM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h0h]h0}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM|hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h0}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#8hM|hj*8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h40h]h40}(hjC8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#8hM|hj@8ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h1h]h1}(hjc8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM}hj`8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubje)}(hhh]h)}(hje8h]h1}(hj{8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq8hM}hjx8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubje)}(hhh]h)}(h41h]h41}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq8hM}hj8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h9h]h9}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h9}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h95h]h95}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h10h]h10}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h0}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h 40 [#f1]_h](h40 }(hj-9hhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hj79hhhNhNubah}(h]id1ah ]h"]h$]h&]autoKrefidf1docnamecore-api/kernel-apiuh1j59hj-9resolvedKubeh}(h]h ]h"]h$]h&]uh1hhj 9hMhj*9ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hjd9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhja9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubje)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hj|9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr9hMhjy9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubje)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h40 41 42 43 45h]h40 41 42 43 45}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 9 18 27h]h 0 9 18 27}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h0 9 8 7h]h0 9 8 7}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h 40 61 74 95h]h 40 61 74 95}(hj1:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj.:ubah}(h]h ]h"]h$]h&]uh1jehj9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 10 20 30h]h 0 10 20 30}(hjQ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjN:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubje)}(hhh]h)}(hj8h]h0}(hji:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_:hMhjf:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubje)}(hhh]h)}(h40h]h40}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_:hMhj|:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 11 22 33h]h 0 11 22 33}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h0 1 2 3h]h0 1 2 3}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h 40 41 42 43h]h 40 41 42 43}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 12 24 36h]h 0 12 24 36}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h0 2 4 6h]h0 2 4 6}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h 40 42 45 53h]h 40 42 45 53}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 78 102 211h]h 78 102 211}(hj=;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:;ubah}(h]h ]h"]h$]h&]uh1jehj7;ubje)}(hhh]h)}(h1 2 8h]h1 2 8}(hjU;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK;hMhjR;ubah}(h]h ]h"]h$]h&]uh1jehj7;ubje)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjl;hhhNhNubj69)}(h[#f1]_h]h1}(hjt;hhhNhNubah}(h]id2ah ]h"]h$]h&]jF9KjG9jH9jI9jJ9uh1j59hjl;jK9Kubeh}(h]h ]h"]h$]h&]uh1hhjK;hMhji;ubah}(h]h ]h"]h$]h&]uh1jehj7;ubeh}(h]h ]h"]h$]h&]uh1jehj7ubeh}(h]h ]h"]h$]h&]uh1jYfhj7ubeh}(h]h ]h"]h$]h&]colsKuh1jehj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMzhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhjO2ubhfootnote)}(hwFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. h](hlabel)}(hhh]h1}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j;hj;hhhNhNubh)}(hvFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty.h](hSFor these marked lines, if we hadn’t first done bitmap_fold() into tmp, then the }(hj;hhhNhNubj)}(h**dst**h]hdst}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh result would have been empty.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj;ubeh}(h]jH9ah ]h"]f1ah$]h&](jA9j~;ejF9KjI9jJ9uh1j;hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubh)}(h`If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty.h](h If either of }(hj;hhhNhNubj)}(h**orig**h]horig}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh or }(hj;hhhNhNubj)}(h **relmap**h]hrelmap}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh is empty (no set bits), then }(hj;hhhNhNubj)}(h**dst**h]hdst}(hj+<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh will be returned empty.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubh)}(hIf (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty.h](h-If (as explained above) the only set bits in }(hjD<hhhNhNubj)}(h**orig**h]horig}(hjL<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh< are in positions m where m >= W, (where W is the weight of }(hjD<hhhNhNubj)}(h **relmap**h]hrelmap}(hj^<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh) then }(hjD<hhhNhNubj)}(h**dst**h]hdst}(hjp<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh# will once again be returned empty.}(hjD<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hj<hhhNhNubj)}(h**dst**h]hdst}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh' not set by the above rule are cleared.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_fold (C function) c.bitmap_foldhNtauh1hhjhhhNhNubh)}(hhh](j)}(hevoid bitmap_fold (unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h]j)}(hdvoid bitmap_fold(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhj<hMubjg)}(h bitmap_foldh]jm)}(h bitmap_foldh]h bitmap_fold}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj<hMubj)}(hT(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hlongh]hlong}(hj#=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj1=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj?=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hdsth]hdst}(hjL=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hje=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja=ubj)}(h h]h }(hjr=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja=ubjm)}(horigh]horig}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned int szh](j )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(hszh]hsz}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj/>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+>ubj)}(h h]h }(hj=>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+>ubj )}(hinth]hint}(hjK>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+>ubj)}(h h]h }(hjY>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+>ubjm)}(hnbitsh]hnbits}(hjg>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhj<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhj<hhubj)}(hhh]h)}(h6fold larger bitmap into smaller, modulo specified sizeh]h6fold larger bitmap into smaller, modulo specified size}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting smaller bitmap ``const unsigned long *orig`` original larger bitmap ``unsigned int sz`` specified size ``unsigned int nbits`` number of bits in each of these bitmaps **Description** For each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubj)}(hhh](j)}(h0``unsigned long *dst`` resulting smaller bitmap h](j)}(h``unsigned long *dst``h]j)}(hj>h]hunsigned long *dst}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubj)}(hhh]h)}(hresulting smaller bitmaph]hresulting smaller bitmap}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubj)}(h5``const unsigned long *orig`` original larger bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj ?h]hconst unsigned long *orig}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ?ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj?ubj)}(hhh]h)}(horiginal larger bitmaph]horiginal larger bitmap}(hj$?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ?hMhj!?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj ?hMhj>ubj)}(h#``unsigned int sz`` specified size h](j)}(h``unsigned int sz``h]j)}(hjD?h]hunsigned int sz}(hjF?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB?ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>?ubj)}(hhh]h)}(hspecified sizeh]hspecified size}(hj]?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY?hMhjZ?ubah}(h]h ]h"]h$]h&]uh1jhj>?ubeh}(h]h ]h"]h$]h&]uh1jhjY?hMhj>ubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj}?h]hunsigned int nbits}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{?ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjw?ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhjw?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubh)}(hFor each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](hFor each bit oldbit in }(hj?hhhNhNubj)}(h**orig**h]horig}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh, set bit oldbit mod }(hj?hhhNhNubj)}(h**sz**h]hsz}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh in }(hj?hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh. Clear all other bits in }(hj?hhhNhNubj)}(h**dst**h]hdst}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhY. See further the comment and Example [2] for bitmap_onto() for why and how to use this.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'bitmap_find_next_zero_area (C function)c.bitmap_find_next_zero_areahNtauh1hhjhhhNhNubh)}(hhh](j)}(hunsigned long bitmap_find_next_zero_area (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h]j)}(hunsigned long bitmap_find_next_zero_area(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j )}(hunsignedh]hunsigned}(hjE@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKubj)}(h h]h }(hjT@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA@hhhjS@hKubj )}(hlongh]hlong}(hjb@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA@hhhjS@hKubj)}(h h]h }(hjp@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA@hhhjS@hKubjg)}(hbitmap_find_next_zero_areah]jm)}(hbitmap_find_next_zero_areah]hbitmap_find_next_zero_area}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjA@hhhjS@hKubj)}(hh(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj )}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hmaph]hmap}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj&AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hsizeh]hsize}(hj4AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjMAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIAubj)}(h h]h }(hj[AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIAubj )}(hlongh]hlong}(hjiAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIAubj)}(h h]h }(hjwAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIAubjm)}(hstarth]hstart}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hnrh]hnr}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hlongh]hlong}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(h align_maskh]h align_mask}(hj'BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjA@hhhjS@hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=@hhhjS@hKubah}(h]j8@ah ](jjeh"]h$]h&]jj)jhuh1hhjS@hKhj:@hhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjQBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjNBhhubah}(h]h ]h"]h$]h&]uh1jhj:@hhhjS@hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjiBjjiBjjjuh1hhhhjhNhNubj)}(hX%**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](h)}(h**Parameters**h]j)}(hjsBh]h Parameters}(hjuBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqBubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjBh]hunsigned long *map}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjBubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjBh]hunsigned long size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjBubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjCh]hunsigned long start}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hj=Ch]hunsigned int nr}(hj?ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Cubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj7Cubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjVChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRChKhjSCubah}(h]h ]h"]h$]h&]uh1jhj7Cubeh}(h]h ]h"]h$]h&]uh1jhjRChKhjBubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjvCh]hunsigned long align_mask}(hjxChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjpCubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1jhjpCubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubeh}(h]h ]h"]h$]h&]uh1jhjmBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](hThe }(hjChhhNhNubj)}(h**align_mask**h]h align_mask}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A }(hjChhhNhNubj)}(h**align_mask**h]h align_mask}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh% of 0 means no alignment is required.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhjhhhNhNubh)}(hhh](j)}(hzbool bitmap_or_equal (const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h]j)}(hybool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j )}(hj8h]hbool}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj(DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhj'DhMubjg)}(hbitmap_or_equalh]jm)}(hbitmap_or_equalh]hbitmap_or_equal}(hj:DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6Dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhj'DhMubj)}(he(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j)}(hconst unsigned long *src1h](j)}(hjh]hconst}(hjVDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRDubj)}(h h]h }(hjcDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj )}(hunsignedh]hunsigned}(hjqDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRDubjm)}(hsrc1h]hsrc1}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hj"EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hsrc2h]hsrc2}(hj/EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hjHEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubj)}(h h]h }(hjUEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj )}(hunsignedh]hunsigned}(hjcEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDEubj)}(h h]h }(hjqEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubjm)}(hsrc3h]hsrc3}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hnbitsh]hnbits}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhj'DhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhj'DhMubah}(h]j Dah ](jjeh"]h$]h&]jj)jhuh1hhj'DhMhjDhhubj)}(hhh]h)}(h7Check whether the or of two bitmaps is equal to a thirdh]h7Check whether the or of two bitmaps is equal to a third}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj'DhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;Fjj;Fjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``const unsigned long *src1`` Pointer to bitmap 1 ``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 ``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** ``unsigned int nbits`` number of bits in each of these bitmaps **Return** True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h)}(h**Parameters**h]j)}(hjEFh]h Parameters}(hjGFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubj)}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hjdFh]hconst unsigned long *src1}(hjfFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj^Fubj)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hj}FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyFhMhjzFubah}(h]h ]h"]h$]h&]uh1jhj^Fubeh}(h]h ]h"]h$]h&]uh1jhjyFhMhj[Fubj)}(hN``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 h](j)}(h``const unsigned long *src2``h]j)}(hjFh]hconst unsigned long *src2}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjFubj)}(hhh]h)}(h/Pointer to bitmap 2 will be or'ed with bitmap 1h]h1Pointer to bitmap 2 will be or’ed with bitmap 1}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj[Fubj)}(hb``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** h](j)}(h``const unsigned long *src3``h]j)}(hjFh]hconst unsigned long *src3}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjFubj)}(hhh]h)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjFhhhNhNubj)}(h ***src1**h]h*src1}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh | }(hjFhhhNhNubj)}(h ***src2**h]h*src2}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj[Fubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj/Gh]hunsigned int nbits}(hj1GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj)Gubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjHGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDGhMhjEGubah}(h]h ]h"]h$]h&]uh1jhj)Gubeh}(h]h ]h"]h$]h&]uh1jhjDGhMhj[Fubeh}(h]h ]h"]h$]h&]uh1jhj?Fubh)}(h **Return**h]j)}(hjjGh]hReturn}(hjlGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjGhhhNhNubj)}(h ***src1**h]h*src1}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh | }(hjGhhhNhNubj)}(h ***src2**h]h*src2}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh) == }(hjGhhhNhNubj)}(h ***src3**h]h*src3}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, false otherwise}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_scatter (C function)c.bitmap_scatterhNtauh1hhjhhhNhNubh)}(hhh](j)}(hqvoid bitmap_scatter (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hpvoid bitmap_scatter(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjGhMubjg)}(hbitmap_scatterh]jm)}(hbitmap_scatterh]hbitmap_scatter}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhMubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj"HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj0HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hj>HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjLHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjZHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hdsth]hdst}(hjgHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj )}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Hubjm)}(hsrch]hsrc}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj"IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hj0IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj>IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjLIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hmaskh]hmask}(hjYIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjrIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnIubj )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnIubjm)}(hnbitsh]hnbits}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjGhhubj)}(hhh]h)}(h,Scatter a bitmap according to the given maskh]h,Scatter a bitmap according to the given mask}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` scattered bitmap ``const unsigned long *src`` gathered bitmap ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Scatters bitmap with sequential bits according to the given **mask**. **Example** If **src** bitmap = 0x005a, with **mask** = 0x1313, **dst** will be 0x0302. Or in binary form **src** **mask** **dst** 0000000001011010 0001001100010011 0000001100000010 (Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12) A more 'visual' description of the operation:: src: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010 A relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj)}(hhh](j)}(h(``unsigned long *dst`` scattered bitmap h](j)}(h``unsigned long *dst``h]j)}(hjJh]hunsigned long *dst}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hj.JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*JhMhj+Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj*JhMhj Jubj)}(h-``const unsigned long *src`` gathered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjNJh]hconst unsigned long *src}(hjPJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjHJubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjgJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcJhMhjdJubah}(h]h ]h"]h$]h&]uh1jhjHJubeh}(h]h ]h"]h$]h&]uh1jhjcJhMhj Jubj)}(hZ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjJh]hconst unsigned long *mask}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj)}(hhh]h)}(h;mask representing bits to assign to in the scattered bitmaph]h;mask representing bits to assign to in the scattered bitmap}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjJh]hunsigned int nbits}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(hEScatters bitmap with sequential bits according to the given **mask**.h](h 0000000001011010 0001001100010011 0000001100000010}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)h]h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM#hjIubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hjIubj#C)}(hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010h]hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010}hjKsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM'hjIubh)}(hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h]hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the ‘reverse’ bitmap_scatter() operation.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM2hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_gather (C function)c.bitmap_gatherhNtauh1hhjhhhNhNubh)}(hhh](j)}(hpvoid bitmap_gather (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hovoid bitmap_gather(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj0LhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,LhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMEubj)}(h h]h }(hj?LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Lhhhj>LhMEubjg)}(h bitmap_gatherh]jm)}(h bitmap_gatherh]h bitmap_gather}(hjQLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,Lhhhj>LhMEubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjmLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiLubj)}(h h]h }(hj{LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiLubj )}(hlongh]hlong}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiLubjm)}(hdsth]hdst}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hsrch]hsrc}(hj+MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjDMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubj)}(h h]h }(hjQMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj )}(hunsignedh]hunsigned}(hj_MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@Mubj)}(h h]h }(hjmMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj )}(hlongh]hlong}(hj{MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubjm)}(hmaskh]hmask}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hnbitsh]hnbits}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubeh}(h]h ]h"]h$]h&]jjuh1jhj,Lhhhj>LhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(Lhhhj>LhMEubah}(h]j#Lah ](jjeh"]h$]h&]jj)jhuh1hhj>LhMEhj%Lhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMEhjNhhubah}(h]h ]h"]h$]h&]uh1jhj%Lhhhj>LhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7Njj7Njjjuh1hhhhjhNhNubj)}(hXV**Parameters** ``unsigned long *dst`` gathered bitmap ``const unsigned long *src`` scattered bitmap ``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Gathers bitmap with sparse bits according to the given **mask**. **Example** If **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a. Or in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010 (Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5) A more 'visual' description of the operation:: mask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010 A relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation. Suppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src. The result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h](h)}(h**Parameters**h]j)}(hjANh]h Parameters}(hjCNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Nubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMIhj;Nubj)}(hhh](j)}(h'``unsigned long *dst`` gathered bitmap h](j)}(h``unsigned long *dst``h]j)}(hj`Nh]hunsigned long *dst}(hjbNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMFhjZNubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjyNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuNhMFhjvNubah}(h]h ]h"]h$]h&]uh1jhjZNubeh}(h]h ]h"]h$]h&]uh1jhjuNhMFhjWNubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjNh]hconst unsigned long *src}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMGhjNubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMGhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMGhjWNubj)}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjNh]hconst unsigned long *mask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMHhjNubj)}(hhh]h)}(h>mask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMHhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMHhjWNubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj Oh]hunsigned int nbits}(hj OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMIhjOubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj$OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj OhMIhj!Oubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj OhMIhjWNubeh}(h]h ]h"]h$]h&]uh1jhj;Nubh)}(h**Description**h]j)}(hjFOh]h Description}(hjHOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMKhj;Nubh)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hj\OhhhNhNubj)}(h**mask**h]hmask}(hjdOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Oubh.}(hj\OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMJhj;Nubh)}(h **Example**h]j)}(hjOh]hExample}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMLhj;Nubh)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hjOhhhNhNubj)}(h**src**h]hsrc}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh bitmap = 0x0302, with }(hjOhhhNhNubj)}(h**mask**h]hmask}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh = 0x1313, }(hjOhhhNhNubj)}(h**dst**h]hdst}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh will be 0x001a.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMMhj;Nubh)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjOhhhNhNubj)}(h**src**h]hsrc}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh }(hjOhhhNhNubj)}(h**mask**h]hmask}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh }(hjOhhhNhNubj)}(h**dst**h]hdst}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh> 0000001100000010 0001001100010011 0000000000011010}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMOhj;Nubh)}(h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)h]h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMShj;Nubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hj.PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhj;Nubj#C)}(hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010h]hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010}hj=Psbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhj;Nubh)}(hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation.h]hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the ‘reverse’ bitmap_gather() operation.}(hjLPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMahj;Nubh)}(hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.h]hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.}(hj[PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMehj;Nubh)}(hXThe result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h]hXThe result can be ‘equivalent’ because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMihj;Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hOvoid bitmap_release_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNvoid bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhMubjg)}(hbitmap_release_regionh]jm)}(hbitmap_release_regionh]hbitmap_release_region}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hbitmaph]hbitmap}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj4QhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0Qubj)}(h h]h }(hjBQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Qubj )}(hinth]hint}(hjPQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0Qubj)}(h h]h }(hj^QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Qubjm)}(hposh]hpos}(hjlQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h int orderh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(horderh]horder}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjPhhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjhNhNubj)}(hXg**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to release ``int order`` region size (log base 2 of number of bits) to release **Description** This is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj Rh]hunsigned long *bitmap}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjRubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj%RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!RhMhj"Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj!RhMhjRubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hjERh]hunsigned int pos}(hjGRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCRubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Rubj)}(hhh]h)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hj^RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZRhMhj[Rubah}(h]h ]h"]h$]h&]uh1jhj?Rubeh}(h]h ]h"]h$]h&]uh1jhjZRhMhjRubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hj~Rh]h int order}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjxRubj)}(hhh]h)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjxRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjRubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQubh)}(hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h]hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hOint bitmap_allocate_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNint bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhj ShMubjg)}(hbitmap_allocate_regionh]jm)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhj ShMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj;ShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7Subj)}(h h]h }(hjIShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Subj )}(hlongh]hlong}(hjWShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7Subj)}(h h]h }(hjeShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Subj)}(hjh]h*}(hjsShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Subjm)}(hbitmaph]hbitmap}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hposh]hpos}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subj)}(h int orderh](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(horderh]horder}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhj ShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhj ShMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhj ShMhjRhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate bitmap region}(hj0ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj-Thhubah}(h]h ]h"]h$]h&]uh1jhjRhhhj ShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHTjjHTjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to allocate ``int order`` region size (log base 2 of number of bits) to allocate **Description** Allocate (set bits in) a specified region of a bitmap. **Return** 0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h)}(h**Parameters**h]j)}(hjRTh]h Parameters}(hjTThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjqTh]hunsigned long *bitmap}(hjsThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjkTubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjkTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hjTh]hunsigned int pos}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj)}(hhh]h)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjTh]h int order}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj)}(hhh]h)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubeh}(h]h ]h"]h$]h&]uh1jhjLTubh)}(h**Description**h]j)}(hjUh]h Description}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubh)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hj4UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubh)}(h **Return**h]j)}(hjEUh]hReturn}(hjGUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubh)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hj[UhhhNhNubj)}(h ``-EBUSY``h]h-EBUSY}(hjcUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Uubh< if specified region wasn’t free (not all bits were zero).}(hj[UhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hQint bitmap_find_free_region (unsigned long *bitmap, unsigned int bits, int order)h]j)}(hPint bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)h](j )}(hinth]hint}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhMubjg)}(hbitmap_find_free_regionh]jm)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hbitmaph]hbitmap}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj7VhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Vubj)}(h h]h }(hjEVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Vubj )}(hinth]hint}(hjSVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Vubj)}(h h]h }(hjaVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Vubjm)}(hbitsh]hbits}(hjoVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(h int orderh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(horderh]horder}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjUhhubj)}(hhh]h)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem region}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjhNhNubj)}(hX1**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int bits`` number of bits in the bitmap ``int order`` region size (log base 2 of number of bits) to find **Description** Find a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster. **Return** the bit offset in bitmap of the allocated region, or -errno on failure.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjWh]hunsigned long *bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj Wubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj(WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$WhMhj%Wubah}(h]h ]h"]h$]h&]uh1jhj Wubeh}(h]h ]h"]h$]h&]uh1jhj$WhMhjWubj)}(h3``unsigned int bits`` number of bits in the bitmap h](j)}(h``unsigned int bits``h]j)}(hjHWh]hunsigned int bits}(hjJWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjBWubj)}(hhh]h)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hjaWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]WhMhj^Wubah}(h]h ]h"]h$]h&]uh1jhjBWubeh}(h]h ]h"]h$]h&]uh1jhj]WhMhjWubj)}(hA``int order`` region size (log base 2 of number of bits) to find h](j)}(h ``int order``h]j)}(hjWh]h int order}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj{Wubj)}(hhh]h)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhj{Wubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubh)}(hFind a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster.h](h'Find a region of free (zero) bits in a }(hjWhhhNhNubj)}(h **bitmap**h]hbitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh of }(hjWhhhNhNubj)}(h**bits**h]hbits}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hjWhhhNhNubj)}(h **order**h]horder}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubh)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubh)}(hGthe bit offset in bitmap of the allocated region, or -errno on failure.h]hGthe bit offset in bitmap of the allocated region, or -errno on failure.}(hj/XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hBITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]jg)}(hBITMAP_FROM_U64h]jm)}(hjXXh]hBITMAP_FROM_U64}(hjbXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^Xubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZXhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVXhhhjuXhMubah}(h]jQXah ](jjeh"]h$]h&]jj)jhuh1hhjuXhMhjSXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjSXhhhjuXhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjXjjXjjjuh1hhhhjhNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hjXh]hBITMAP_FROM_U64 (n)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjhhubj)}(h7Represent u64 value in the format suitable for bitmap. h]h)}(h6Represent u64 value in the format suitable for bitmap.h]h6Represent u64 value in the format suitable for bitmap.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXhMhjhhubj)}(hX**Parameters** ``n`` u64 value **Description** Linux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one. There are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32. On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling. On 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually. With all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubj)}(hhh]j)}(h``n`` u64 value h](j)}(h``n``h]j)}(hjXh]hn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubj)}(hhh]h)}(h u64 valueh]h u64 value}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h**Description**h]j)}(hj#Yh]h Description}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Yubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.h]hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.}(hj9YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.h]hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.}(hjHYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(h}On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling.h]hOn 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don’t require any special handling.}(hjWYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.h]hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.}(hjfYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h]hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.}(hjuYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhjhhhNhNubh)}(hhh](j)}(h3void bitmap_from_u64 (unsigned long *dst, u64 mask)h]j)}(h2void bitmap_from_u64(unsigned long *dst, u64 mask)h](j )}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjYhMubjg)}(hbitmap_from_u64h]jm)}(hbitmap_from_u64h]hbitmap_from_u64}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjYhMubj)}(h(unsigned long *dst, u64 mask)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hj ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hdsth]hdst}(hj&ZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hjBZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?Zubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDZmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.bitmap_from_u64asbuh1hhj;Zubj)}(h h]h }(hjbZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Zubjm)}(hmaskh]hmask}(hjpZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhjYhhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjhNhNubj)}(hXE**Parameters** ``unsigned long *dst`` destination bitmap ``u64 mask`` source bitmap **Description** In 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjZh]hunsigned long *dst}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(h``u64 mask`` source bitmap h](j)}(h ``u64 mask``h]j)}(hj[h]hu64 mask}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj-[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)[hMhj*[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj)[hMhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjO[h]h Description}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubh)}(hIn 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h(In 32-bit Big Endian kernel, when using }(hje[hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjm[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje[ubh7 to read u64 mask, we will get the wrong word. That is }(hje[hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje[ubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hje[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_read (C function) c.bitmap_readhNtauh1hhjhhhNhNubh)}(hhh](j)}(h^unsigned long bitmap_read (const unsigned long *map, unsigned long start, unsigned long nbits)h]j)}(h]unsigned long bitmap_read(const unsigned long *map, unsigned long start, unsigned long nbits)h](j )}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhj[hMubj )}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhhj[hMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhj[hMubjg)}(h bitmap_readh]jm)}(h bitmap_readh]h bitmap_read}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhj[hMubj)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j)}(hconst unsigned long *maph](j)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj \ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj \ubj )}(hunsignedh]hunsigned}(hj,\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj \ubj)}(h h]h }(hj:\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj \ubj )}(hlongh]hlong}(hjH\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj \ubj)}(h h]h }(hjV\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj \ubj)}(hjh]h*}(hjd\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj \ubjm)}(hmaph]hmap}(hjq\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj \ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj \ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hstarth]hstart}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj \ubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hnbitsh]hnbits}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj \ubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhj[hhubj)}(hhh]h)}(h-read a value of n-bits from the memory regionh]h-read a value of n-bits from the memory region}(hj=]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj:]hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU]jjU]jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``const unsigned long *map`` address to the bitmap memory region ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG **Return** value of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h)}(h**Parameters**h]j)}(hj_]h]h Parameters}(hja]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]ubj)}(hhh](j)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hj~]h]hconst unsigned long *map}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjx]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhju]ubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hj]h]hunsigned long start}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhju]ubj)}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j)}(h``unsigned long nbits``h]j)}(hj]h]hunsigned long nbits}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj)}(hhh]h)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhju]ubeh}(h]h ]h"]h$]h&]uh1jhjY]ubh)}(h **Return**h]j)}(hj+^h]hReturn}(hj-^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]ubh)}(hvalue of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h value of }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hjI^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh bits located at the }(hjA^hhhNhNubj)}(h **start**h]hstart}(hj[^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh bit offset within the }(hjA^hhhNhNubj)}(h**map**h]hmap}(hjm^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh memory region. For }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh = 0 and }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh/ > BITS_PER_LONG the return value is undefined.}(hjA^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_write (C function)c.bitmap_writehNtauh1hhjhhhNhNubh)}(hhh](j)}(hevoid bitmap_write (unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h]j)}(hdvoid bitmap_write(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j )}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMubjg)}(h bitmap_writeh]jm)}(h bitmap_writeh]h bitmap_write}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hlongh]hlong}(hj#_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj1_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hj?_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hmaph]hmap}(hjL_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hje_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja_ubj)}(h h]h }(hjs_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja_ubjm)}(hvalueh]hvalue}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubjm)}(hstarth]hstart}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj )}(hlongh]hlong}(hj#`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hj1`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hnbitsh]hnbits}(hj?`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj^hMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhj^hhubj)}(hhh]h)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hji`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjf`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhjhNhNubj)}(hXG**Parameters** ``unsigned long *map`` address to the bitmap memory region ``unsigned long value`` value to write, clamped to nbits ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. **Description** bitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored: for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); For **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh](j)}(h;``unsigned long *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hj`h]hunsigned long *map}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubj)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hj`h]hunsigned long value}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh]h)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjah]hunsigned long start}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjaubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj5ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ahMhj2aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj1ahMhj`ubj)}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j)}(h``unsigned long nbits``h]j)}(hjUah]hunsigned long nbits}(hjWahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjOaubj)}(hhh]h)}(h4size of value in bits, nonzero, up to BITS_PER_LONG.h]h4size of value in bits, nonzero, up to BITS_PER_LONG.}(hjnahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjahMhjkaubah}(h]h ]h"]h$]h&]uh1jhjOaubeh}(h]h ]h"]h$]h&]uh1jhjjahMhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubh)}(hvbitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored:h](h,bitmap_write() behaves as-if implemented as }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh+ calls of __assign_bit(), i.e. bits beyond }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh are ignored:}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(h]for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h]j)}(hhh]j)}(hUfor (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h](j)}(h!for (bit = 0; bit < nbits; bit++)h]h!for (bit = 0; bit < nbits; bit++)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjaubj)}(hhh]h)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubh)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjbhhhNhNubj)}(h **nbits**h]hnbits}(hj%bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh == 0 and }(hjbhhhNhNubj)}(h **nbits**h]hnbits}(hj7bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh) > BITS_PER_LONG no writes are performed.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhj hhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hjbbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_bhhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_option (C function) c.get_optionhNtauh1hhj_bhhhNhNubh)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhK$ubjg)}(h get_optionh]jm)}(h get_optionh]h get_option}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hstrh]hstr}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h int *pinth](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hj#chhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hj1chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hpinth]hpint}(hj>chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhK$ubah}(h]j|bah ](jjeh"]h$]h&]jj)jhuh1hhjbhK$hj~bhhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hjhchhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hjechhubah}(h]h ]h"]h$]h&]uh1jhj~bhhhjbhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj_bhNhNubj)}(hXo**Parameters** ``char **str`` option string ``int *pint`` (optional output) integer value parsed from **str** **Description** Read an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range Leading hyphen without integer is no integer case, but we consume it for the sake of simplification.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjcubj)}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hjch]h char **str}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hjcubj)}(hhh]h)}(h option stringh]h option string}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchK%hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchK%hjcubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjch]h int *pint}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjcubj)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjchhhNhNubj)}(h**str**h]hstr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1hhjchK&hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchK&hjcubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hj+dh]h Description}(hj-dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)dubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjcubj)}(hXRead an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range Leading hyphen without integer is no integer case, but we consume it for the sake of simplification.h](h)}(hRRead an int from an option string; if available accept a subsequent comma as well.h]hRRead an int from an option string; if available accept a subsequent comma as well.}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK'hjAdubh)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hjTdhhhNhNubj)}(h**pint**h]hpint}(hj\dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTdubhU is NULL the function can be used as a validator of the current option in the string.}(hjTdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK*hjAdubh)}(hReturn values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a rangeh]hReturn values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range}(hjudhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK-hjAdubh)}(hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.h]hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK3hjAdubeh}(h]h ]h"]h$]h&]uh1jhjSdhK'hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_bhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_options (C function) c.get_optionshNtauh1hhj_bhhhNhNubh)}(hhh](j)}(h:char * get_options (const char *str, int nints, int *ints)h]j)}(h8char *get_options(const char *str, int nints, int *ints)h](j )}(hcharh]hchar}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjdhKSubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKSubjg)}(h get_optionsh]jm)}(h get_optionsh]h get_options}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjdhKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj)}(h h]h }(hj,ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj:ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hstrh]hstr}(hjGehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h int nintsh](j )}(hinth]hint}(hj`ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\eubj)}(h h]h }(hjnehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\eubjm)}(hnintsh]hnints}(hj|ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h int *intsh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hintsh]hints}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhKSubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhKShjdhhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhj_bhNhNubj)}(hX**Parameters** ``const char *str`` String to be parsed ``int nints`` size of integer array ``int *ints`` integer array (must have room for at least one element) **Description** This function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(h**Parameters**h]j)}(hj fh]h Parameters}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjfubj)}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hj)fh]hconst char *str}(hj+fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'fubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKThj#fubj)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjBfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>fhKThj?fubah}(h]h ]h"]h$]h&]uh1jhj#fubeh}(h]h ]h"]h$]h&]uh1jhj>fhKThj fubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hjbfh]h int nints}(hjdfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`fubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKUhj\fubj)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hj{fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwfhKUhjxfubah}(h]h ]h"]h$]h&]uh1jhj\fubeh}(h]h ]h"]h$]h&]uh1jhjwfhKUhj fubj)}(hF``int *ints`` integer array (must have room for at least one element) h](j)}(h ``int *ints``h]j)}(hjfh]h int *ints}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKVhjfubj)}(hhh]h)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKVhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKVhj fubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKXhjfubj)}(hXThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.h]hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjfubh)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjfhhhNhNubj)}(h **nints**h]hnints}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh- is 0, the function just validates the given }(hjfhhhNhNubj)}(h**str**h]hstr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhA and returns the amount of parseable integers as described below.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK]hjfubh)}(h{The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**.h](hsThe first element is filled by the number of collected integers in the range. The rest is what was parsed from the }(hj2ghhhNhNubj)}(h**str**h]hstr}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubh.}(hj2ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKahjfubh)}(hReturn value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](hkReturn value is the character in the string which caused the parse to end (typically a null terminator, if }(hjSghhhNhNubj)}(h**str**h]hstr}(hj[ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSgubh is completely parseable).}(hjSghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKdhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKWhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_bhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemparse (C function) c.memparsehNtauh1hhj_bhhhNhNubh)}(hhh](j)}(hnhK@ubjg)}(hIS_ERRh]jm)}(hIS_ERRh]hIS_ERR}(hjQnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-nhhhj>nhK@ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjinhhhNhNubj)}(h h]h }(hjqnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjinubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjinubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjinubjm)}(hptrh]hptr}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjinubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjenubah}(h]h ]h"]h$]h&]jjuh1jhj-nhhhj>nhK@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)nhhhj>nhK@ubah}(h]j$nah ](jjeh"]h$]h&]jj)jhuh1hhj>nhK@hj&nhhubj)}(hhh]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK@hjnhhubah}(h]h ]h"]h$]h&]uh1jhj&nhhhj>nhK@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjihNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Return** true if **ptr** is an error pointer, false otherwise.h](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKDhj oubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hj.oh]h__force const void *ptr}(hj0ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,oubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKAhj(oubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjGohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCohKAhjDoubah}(h]h ]h"]h$]h&]uh1jhj(oubeh}(h]h ]h"]h$]h&]uh1jhjCohKAhj%oubah}(h]h ]h"]h$]h&]uh1jhj oubh)}(h **Return**h]j)}(hjioh]hReturn}(hjkohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKChj oubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hjohhhNhNubj)}(h**ptr**h]hptr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh& is an error pointer, false otherwise.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKBhj oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjihhhNhNubh)}(hhh](j)}(h-bool IS_ERR_OR_NULL (__force const void *ptr)h]j)}(h,bool IS_ERR_OR_NULL(__force const void *ptr)h](j )}(hj8h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKMubj)}(Gh h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohKMubjg)}(hIS_ERR_OR_NULLh]jm)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohKMubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjohhhNhNubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hvoidh]hvoid}(hj)phhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hj7phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjEphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hptrh]hptr}(hjRphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjohKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohKMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohKMhjohhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hj|phhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKMhjyphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjihNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Description** Like IS_ERR(), but also returns true for a null pointer.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKQhjpubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjph]h__force const void *ptr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKNhjpubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphKNhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKNhjpubah}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKPhjpubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKOhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hERR_CAST (C function) c.ERR_CASThNtauh1hhjihhhNhNubh)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hj=qhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9qhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXubj)}(h h]h }(hjLqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9qhhhjKqhKXubj)}(hjh]h*}(hjZqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9qhhhjKqhKXubjg)}(hERR_CASTh]jm)}(hERR_CASTh]hERR_CAST}(hjkqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9qhhhjKqhKXubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjqhhhNhNubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hptrh]hptr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj9qhhhjKqhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5qhhhjKqhKXubah}(h]j0qah ](jjeh"]h$]h&]jj)jhuh1hhjKqhKXhj2qhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjrhhubah}(h]h ]h"]h$]h&]uh1jhj2qhhhjKqhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjihNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to cast. **Description** Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h](h)}(h**Parameters**h]j)}(hj)rh]h Parameters}(hj+rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'rubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK\hj#rubj)}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hjHrh]h__force const void *ptr}(hjJrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjBrubj)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hjarhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]rhKYhj^rubah}(h]h ]h"]h$]h&]uh1jhjBrubeh}(h]h ]h"]h$]h&]uh1jhj]rhKYhj?rubah}(h]h ]h"]h$]h&]uh1jhj#rubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK[hj#rubh)}(hyExplicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h]h}Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that’s what’s going on.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKZhj#rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hPTR_ERR_OR_ZERO (C function)c.PTR_ERR_OR_ZEROhNtauh1hhjihhhNhNubh)}(hhh](j)}(h-int PTR_ERR_OR_ZERO (__force const void *ptr)h]j)}(h,int PTR_ERR_OR_ZERO(__force const void *ptr)h](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKeubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjrhKeubjg)}(hPTR_ERR_OR_ZEROh]jm)}(hPTR_ERR_OR_ZEROh]hPTR_ERR_OR_ZERO}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhKeubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjshhhNhNubj)}(h h]h }(hj shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hj$shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hvoidh]hvoid}(hj2shhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hj@shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjNshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hptrh]hptr}(hj[shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKeubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKehjrhhubj)}(hhh]h)}(h4Extract the error code from a pointer if it has one.h]h4Extract the error code from a pointer if it has one.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKehjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``__force const void *ptr`` A potential error pointer. **Description** Convenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces: .. code-block:: c if (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0; **Return** The error code within **ptr** if it is an error pointer; 0 otherwise.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKihjsubj)}(hhh]j)}(h7``__force const void *ptr`` A potential error pointer. h](j)}(h``__force const void *ptr``h]j)}(hjsh]h__force const void *ptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKfhjsubj)}(hhh]h)}(hA potential error pointer.h]hA potential error pointer.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKfhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKfhjsubah}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhhjsubh)}(hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces:h](hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, }(hjthhhNhNubj)}(h ``return PTR_ERR_OR_ZERO(ptr);``h]hreturn PTR_ERR_OR_ZERO(ptr);}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh replaces:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKghjsubj#C)}(hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;h]hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;}hj8tsbah}(h]h ]h"]h$]h&]jjforcelanguagejhighlight_args}uh1j"ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKkhjsubh)}(h **Return**h]j)}(hjMth]hReturn}(hjOthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKrhjsubh)}(hEThe error code within **ptr** if it is an error pointer; 0 otherwise.h](hThe error code within }(hjcthhhNhNubj)}(h**ptr**h]hptr}(hjkthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjctubh( if it is an error pointer; 0 otherwise.}(hjcthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKshjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubeh}(h]error-pointersah ]h"]error pointersah$]h&]uh1hhj hhhhhK^ubh)}(hhh](h)}(hSortingh]hSorting}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKdubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsort_r (C function)c.sort_rhNtauh1hhjthhhNhNubh)}(hhh](j)}(hsvoid sort_r (void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h]j)}(hrvoid sort_r(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthMubjg)}(hsort_rh]jm)}(hsort_rh]hsort_r}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthMubj)}(hg(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j)}(h void *baseh](j )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hbaseh]hbase}(hj#uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h size_t numh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj?uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhj{ubj)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM>hj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hM>hj{ubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hj5|h]hconst void *priv}(hj7|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3|ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM?hj/|ubj)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hjN|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ|hM?hjK|ubah}(h]h ]h"]h$]h&]uh1jhj/|ubeh}(h]h ]h"]h$]h&]uh1jhjJ|hM?hj{ubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjp|h]h Description}(hjr|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn|ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMAhjzubh)}(hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h]hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM@hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_sort (C function) c.list_sorthNtauh1hhjthhhNhNubh)}(hhh](j)}(hHvoid list_sort (void *priv, struct list_head *head, list_cmp_func_t cmp)h]j)}(hGvoid list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKcubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hKcubjg)}(h list_sorth]jm)}(h list_sorth]h list_sort}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hKcubj)}(h9(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j)}(h void *privh](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hprivh]hpriv}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct list_head *headh](j)}(hstructh]hstruct}(hj4}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0}ubj)}(h h]h }(hjB}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0}ubh)}(hhh]jm)}(h list_headh]h list_head}(hjS}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjU}modnameN classnameNjI jL )}jO ]jR )}jE j|sb c.list_sortasbuh1hhj0}ubj)}(h h]h }(hjs}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0}ubjm)}(hheadh]hhead}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hlist_cmp_func_t cmph](h)}(hhh]jm)}(hlist_cmp_func_th]hlist_cmp_func_t}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jo} c.list_sortasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hcmph]hcmp}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hKcubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hKchj|hhubj)}(hhh]h)}(h sort a listh]h sort a list}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKchj}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjthNhNubj)}(hX**Parameters** ``void *priv`` private data, opaque to list_sort(), passed to **cmp** ``struct list_head *head`` the list to sort ``list_cmp_func_t cmp`` the elements comparison function **Description** The comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases. The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0. This is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). A good way to write a multi-word comparison is:: if (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low; This mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements. Thus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1. The merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle. Each time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1). This merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k. After this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending. The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information: - The state of bit k-1 (when k == 0, consider bit -1 always set), and - Whether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2) We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size. When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h](h)}(h**Parameters**h]j)}(hj"~h]h Parameters}(hj$~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ~ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKghj~ubj)}(hhh](j)}(hF``void *priv`` private data, opaque to list_sort(), passed to **cmp** h](j)}(h``void *priv``h]j)}(hjA~h]h void *priv}(hjC~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKdhj;~ubj)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hjZ~hhhNhNubj)}(h**cmp**h]hcmp}(hjb~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ~ubeh}(h]h ]h"]h$]h&]uh1hhjV~hKdhjW~ubah}(h]h ]h"]h$]h&]uh1jhj;~ubeh}(h]h ]h"]h$]h&]uh1jhjV~hKdhj8~ubj)}(h,``struct list_head *head`` the list to sort h](j)}(h``struct list_head *head``h]j)}(hj~h]hstruct list_head *head}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKehj~ubj)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKehj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKehj8~ubj)}(h9``list_cmp_func_t cmp`` the elements comparison function h](j)}(h``list_cmp_func_t cmp``h]j)}(hj~h]hlist_cmp_func_t cmp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKfhj~ubj)}(hhh]h)}(h the elements comparison functionh]h the elements comparison function}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKfhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKfhj8~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhhj~ubh)}(hXThe comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases.h](hThe comparison function }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must return > 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort after }(hjhhhNhNubj)}(h**b**h]hb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhq their original order should be preserved. It is always called with the element that came first in the input in }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL, and list_sort is a stable sort, so it is not necessary to distinguish the }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh < }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKghj~ubh)}(hX&The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0.h](hThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }(hj hhhNhNubj)}(h**b**h]hb}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh') must return the opposite sign of cmp(}(hj hhhNhNubj)}(h**b**h]hb}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**a**h]ha}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh). - Transitivity: if cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**b**h]hb}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0 and cmp(}(hj hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0, then cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKnhj~ubh)}(hXThis is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).h](h&This is compatible with two styles of }(hjЀhhhNhNubj)}(h**cmp**h]hcmp}(hj؀hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЀubh function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).}(hjЀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKuhj~ubh)}(h0A good way to write a multi-word comparison is::h]h/A good way to write a multi-word comparison is:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK{hj~ubj#C)}(hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;h]hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK}hj~ubh)}(hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.h]hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.h]hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hThe merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle.h]hThe merging is controlled by “count”, the number of elements in the pending lists. This is beautifully simple code, but rather subtle.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hEach time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).h]hEach time we increment “count”, we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k.h]hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it’s safe to merge away two lists of size 2^k.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.h]hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(h|The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information:h]hThe number of pending lists of size 2^k is determined by the state of bit k of “count” plus two extra pieces of information:}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubj)}(hhh](j)}(hCThe state of bit k-1 (when k == 0, consider bit -1 always set), andh]h)}(hj}h]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj{ubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(hOWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). h]h)}(hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).h]hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhj~ubh)}(hX-There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)h]hX5There are six states we distinguish. “x” represents some arbitrary bits, and “y” represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.h]hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h]hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).}(hjЁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhj hhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKmubh)}(h INTRODUCTIONh]h INTRODUCTION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK hjhhubj)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user. h]h)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.h]hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjubah}(h]h ]h"]h$]h&]uh1jhj hKhjhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubj#C)}(hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)h]hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)}hj6sbah}(h]h ]h"]h$]h&]jjjFtjGtnonejHt}uh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubh)}(hUSAGEh]hUSAGE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjhhubj)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance. The actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data. Once you're done using a configuration it must be given back via textsearch_destroy. h](h)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.h]hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK8hjVubh)}(hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.h]hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKAhjVubh)}(hTOnce you're done using a configuration it must be given back via textsearch_destroy.h]hVOnce you’re done using a configuration it must be given back via textsearch_destroy.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKIhjVubeh}(h]h ]h"]h$]h&]uh1jhjhhK8hjhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjhhubj#C)}(hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);h]hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h textsearch_register (C function)c.textsearch_registerhNtauh1hhjhhhNhNubh)}(hhh](j)}(h,int textsearch_register (struct ts_ops *ops)h]j)}(h+int textsearch_register(struct ts_ops *ops)h](j )}(hinth]hint}(hjĂhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjӂhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj҂hKubjg)}(htextsearch_registerh]jm)}(htextsearch_registerh]htextsearch_register}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj҂hKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_registerasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hopsh]hops}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj҂hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj҂hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj҂hKhjhhubj)}(hhh]h)}(hregister a textsearch moduleh]hregister a textsearch module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj҂hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented. Returns 0 or -EEXISTS if another module has already registered with same name.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjŃh]hstruct ts_ops *ops}(hjǃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÃubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjރhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڃhKhjۃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڃhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.h](hpThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have }(hjhhhNhNubj)}(h``name``h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhw set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hNReturns 0 or -EEXISTS if another module has already registered with same name.h]hNReturns 0 or -EEXISTS if another module has already registered with same name.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjhhhNhNubh)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthKubjg)}(htextsearch_unregisterh]jm)}(htextsearch_unregisterh]htextsearch_unregister}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjÄmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthKhj[hhubj)}(hhh]h)}(hunregister a textsearch moduleh]hunregister a textsearch module}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj#hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(hXu**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration. Returns 0 on success or -ENOENT if no matching textsearch registration was found.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjgh]hstruct ts_ops *ops}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjaubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubh)}(hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration.h](hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The }(hjhhhNhNubh)}(h :c:type:`ops`h]j)}(hj…h]hops}(hjąhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI jL )}jO ]sb reftargetopsuh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh? parameter must be the same as the one during the registration.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjBubh)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjhhhNhNubh)}(hhh](j)}(h|unsigned int textsearch_find_continuous (struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h]j)}(h{unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj,hKubj )}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj,hKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj,hKubjg)}(htextsearch_find_continuoush]jm)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,hKubj)}(hT(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j]sbc.textsearch_find_continuousasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjÆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hconfh]hconf}(hjІhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct ts_state *stateh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.textsearch_find_continuousasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hconst void *datah](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjćhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj҇hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hKhjhhubj)}(hhh]h)}(h*search a pattern in continuous/linear datah]h*search a pattern in continuous/linear data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjYh]hstruct ts_config *conf}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjSubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjh]hstruct ts_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubj)}(h'``const void *data`` data to search in h](j)}(h``const void *data``h]j)}(hjˈh]hconst void *data}(hj͈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɈubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjňubj)}(hhh]h)}(hdata to search inh]hdata to search in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjňubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubj)}(h$``unsigned int len`` length of data h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hlength of datah]hlength of data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubh)}(h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.h]h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubh)}(hcReturns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h;Returns the position of first occurrence of the pattern or }(hjdhhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh if no occurrence was found.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_prepare (C function)c.textsearch_preparehNtauh1hhjhhhNhNubh)}(hhh](j)}(hzstruct ts_config * textsearch_prepare (const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h]j)}(hxstruct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjĉhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƉmodnameN classnameNjI jL )}jO ]jR )}jE textsearch_preparesbc.textsearch_prepareasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_prepareh]jm)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hT(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hconst char *algoh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(halgoh]halgo}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *patternh](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjيhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjՊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՊubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjՊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՊubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjՊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jc.textsearch_prepareasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hgfp_maskh]hgfp_mask}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hPrepare a searchh]hPrepare a search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjЋjjЋjjjuh1hhhhjhNhNubj)}(hXZ**Parameters** ``const char *algo`` name of search algorithm ``const void *pattern`` pattern data ``unsigned int len`` length of pattern ``gfp_t gfp_mask`` allocation mask ``int flags`` search flags **Description** Looks up the search algorithm module and creates a new textsearch configuration for the specified pattern. **Note** The format of the pattern may not be compatible between the various search algorithms. Returns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h](h)}(h**Parameters**h]j)}(hjڋh]h Parameters}(hj܋hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؋ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjԋubj)}(hhh](j)}(h.``const char *algo`` name of search algorithm h](j)}(h``const char *algo``h]j)}(hjh]hconst char *algo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hname of search algorithmh]hname of search algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``const void *pattern`` pattern data h](j)}(h``const void *pattern``h]j)}(hj2h]hconst void *pattern}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj,ubj)}(hhh]h)}(h pattern datah]h pattern data}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hjkh]hunsigned int len}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjeubj)}(hhh]h)}(hlength of patternh]hlength of pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h#``gfp_t gfp_mask`` allocation mask h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``int flags`` search flags h](j)}(h ``int flags``h]j)}(hj݌h]h int flags}(hjߌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjیubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj׌ubj)}(hhh]h)}(h search flagsh]h search flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj׌ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjԋubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjԋubh)}(hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.h]hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjԋubh)}(h**Note**h]j)}(hj?h]hNote}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjԋubj)}(hhh]j)}(hWThe format of the pattern may not be compatible between the various search algorithms. h](j)}(h7The format of the pattern may not be compatible betweenh]h7The format of the pattern may not be compatible between}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjXubj)}(hhh]h)}(hthe various search algorithms.h]hthe various search algorithms.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjUubah}(h]h ]h"]h$]h&]uh1jhjԋubh)}(hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h]hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjԋubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjhhhNhNubh)}(hhh](j)}(h0void textsearch_destroy (struct ts_config *conf)h]j)}(h/void textsearch_destroy(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3ubj)}(h h]h }(hj̍hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjˍhM3ubjg)}(htextsearch_destroyh]jm)}(htextsearch_destroyh]htextsearch_destroy}(hjލhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڍubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjˍhM3ubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_destroyasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjˍhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjˍhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjˍhM3hjhhubj)}(hhh]h)}(hdestroy a search configurationh]hdestroy a search configuration}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3hjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjˍhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration **Description** Releases all references of the configuration and frees up the memory.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM7hjubj)}(hhh]j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM4hjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hj׎hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӎhM4hjԎubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӎhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM6hjubh)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_next (C function)c.textsearch_nexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK^ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhK^ubj )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhjLhK^ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhK^ubjg)}(htextsearch_nexth]jm)}(htextsearch_nexth]htextsearch_next}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhK^ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j}sbc.textsearch_nextasbuh1hhjubj)}(h h]h }(hjՏhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct ts_state *stateh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_stateh]hts_state}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jяc.textsearch_nextasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhK^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhK^ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhK^hj3hhubj)}(hhh]h)}(h continue searching for a patternh]h continue searching for a pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK^hjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhK^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXy**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Continues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state. Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKbhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjːh]hstruct ts_config *conf}(hj͐hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɐubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hjŐubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjŐubeh}(h]h ]h"]h$]h&]uh1jhjhK_hjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjh]hstruct ts_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK`hjubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKbhjubh)}(hContinues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state.h]hContinues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKahjubh)}(h^Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h]h^Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKehjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_find (C function)c.textsearch_findhNtauh1hhjhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_find (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_find(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubjg)}(htextsearch_findh]jm)}(htextsearch_findh]htextsearch_find}(hjБhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̑ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKuubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jґsbc.textsearch_findasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct ts_state *stateh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hts_stateh]hts_state}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]j&c.textsearch_findasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKuhjhhubj)}(hhh]h)}(hstart searching for a patternh]hstart searching for a pattern}(hjߒhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuhjܒhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Returns the position of first occurrence of the pattern or UINT_MAX if no match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj h]hstruct ts_config *conf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKvhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKvhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjYh]hstruct ts_state *state}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKwhjSubj)}(hhh]h)}(h search stateh]h search state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKwhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjubh)}(hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.h]hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjhhhNhNubh)}(hhh](j)}(h6void * textsearch_get_pattern (struct ts_config *conf)h]j)}(h4void *textsearch_get_pattern(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjٓhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjՓhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՓhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՓhhhjhKubjg)}(htextsearch_get_patternh]jm)}(htextsearch_get_patternh]htextsearch_get_pattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjՓhhhjhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.textsearch_get_patternasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjՓhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjѓhhhjhKubah}(h]j̓ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjΓhhubj)}(hhh]h)}(hreturn head of the patternh]hreturn head of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjΓhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjȔh]h Parameters}(hjʔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƔubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj”ubj)}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjޔubah}(h]h ]h"]h$]h&]uh1jhj”ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjhhhNhNubh)}(hhh](j)}(h@unsigned int textsearch_get_pattern_len (struct ts_config *conf)h]j)}(h?unsigned int textsearch_get_pattern_len(struct ts_config *conf)h](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubj )}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhjOhKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubjg)}(htextsearch_get_pattern_lenh]jm)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_get_pattern_lenasbuh1hhjubj)}(h h]h }(hjؕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhKhj6hhubj)}(hhh]h)}(hreturn length of the patternh]hreturn length of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhjhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj9ubj)}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hj^h]hstruct ts_config *conf}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjXubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhj hhhhhKmubeh}(h]basic-kernel-library-functionsah ]h"]basic kernel library functionsah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(hCRC and Math Functions in Linuxh]hCRC and Math Functions in Linux}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKzubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjÖhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_add_overflow (C macro)c.check_add_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_add_overflowh]j)}(hcheck_add_overflowh]jg)}(hcheck_add_overflowh]jm)}(hjh]hcheck_add_overflow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK9ubah}(h]jݖah ](jjeh"]h$]h&]jj)jhuh1hhjhK9hjߖhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjߖhhhjhK9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_add_overflow (a, b, d)``h]j)}(hj h]hcheck_add_overflow (a, b, d)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK;hjhhubj)}(h*Calculate addition with overflow checking h]h)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9hj6ubah}(h]h ]h"]h$]h&]uh1jhjHhK9hjhhubj)}(h**Parameters** ``a`` first addend ``b`` second addend ``d`` pointer to store sum **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK=hjOubj)}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjth]ha}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK:hjnubj)}(hhh]h)}(h first addendh]h first addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK:hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK:hjkubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK;hjubj)}(hhh]h)}(h second addendh]h second addend}(hjƗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj—hK;hj×ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj—hK;hjkubj)}(h``d`` pointer to store sum h](j)}(h``d``h]j)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjOubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK=hjOubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubhY holds the results of the attempted addition, regardless of whether wrap-around occurred.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK?hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_add (C macro)c.wrapping_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_addh]j)}(h wrapping_addh]jg)}(h wrapping_addh]jm)}(hj}h]h wrapping_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhKGubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhKGhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhKGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``wrapping_add (type, a, b)``h]j)}(hjh]hwrapping_add (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKIhjhhubj)}(h*Intentionally perform a wrapping addition h]h)}(h)Intentionally perform a wrapping additionh]h)Intentionally perform a wrapping addition}(hjӘhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKGhjϘubah}(h]h ]h"]h$]h&]uh1jhjhKGhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first addend ``b`` second addend **Description** Return the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hj h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKHhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKHhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKHhjubj)}(h``a`` first addend h](j)}(h``a``h]j)}(hjFh]ha}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKIhj@ubj)}(hhh]h)}(h first addendh]h first addend}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKIhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKIhjubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKJhjyubj)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKLhjubh)}(hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h]hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.}(hjЙhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_assign_add (C macro)c.wrapping_assign_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(hwrapping_assign_addh]j)}(hwrapping_assign_addh]jg)}(hwrapping_assign_addh]jm)}(hjh]hwrapping_assign_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKWhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKWubeh}(h]h ](jmacroeh"]h$]h&]jjjj/jj/jjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_add (var, offset)``h]j)}(hj5h]h!wrapping_assign_add (var, offset)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKYhjhhubj)}(h6Intentionally perform a wrapping increment assignment h]h)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWhjKubah}(h]h ]h"]h$]h&]uh1jhj]hKWhjhhubj)}(hX **Parameters** ``var`` variable to be incremented ``offset`` amount to add **Description** Increments **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers. Returns the new value of **var**.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK[hjdubj)}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hjh]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKXhjubj)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjubj)}(h``offset`` amount to add h](j)}(h ``offset``h]j)}(hjšh]hoffset}(hjĚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKYhjubj)}(hhh]h)}(h amount to addh]h amount to add}(hjۚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjךhKYhjؚubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjךhKYhjubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK[hjdubh)}(hIncrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Increments }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKZhjdubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjXhhhNhNubj)}(h**var**h]hvar}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK]hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_sub_overflow (C macro)c.check_sub_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_sub_overflowh]j)}(hcheck_sub_overflowh]jg)}(hcheck_sub_overflowh]jm)}(hjh]hcheck_sub_overflow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKgubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKghjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKgubeh}(h]h ](jmacroeh"]h$]h&]jjjjɛjjɛjjjuh1hhhhjhNhNubh)}(h ``check_sub_overflow (a, b, d)``h]j)}(hjϛh]hcheck_sub_overflow (a, b, d)}(hjћhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͛ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihjhhubj)}(h-Calculate subtraction with overflow checking h]h)}(h,Calculate subtraction with overflow checkingh]h,Calculate subtraction with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKghjubah}(h]h ]h"]h$]h&]uh1jhjhKghjhhubj)}(hX2**Parameters** ``a`` minuend; value to subtract from ``b`` subtrahend; value to subtract from **a** ``d`` pointer to store difference **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKkhjubj)}(hhh](j)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hj#h]ha}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj\h]hb}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihjVubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjuhhhNhNubj)}(h**a**h]ha}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1hhjqhKihjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKihjubj)}(h"``d`` pointer to store difference h](j)}(h``d``h]j)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKjhjubj)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjޜh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܜubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKlhjubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKkhjubh)}(hb***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ holds the results of the attempted subtraction, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_sub (C macro)c.wrapping_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_subh]j)}(h wrapping_subh]jg)}(h wrapping_subh]jm)}(hj:h]h wrapping_sub}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjWhKuubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjWhKuhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhKuubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjvh]hwrapping_sub (type, a, b)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKwhjhhubj)}(h-Intentionally perform a wrapping subtraction h]h)}(h,Intentionally perform a wrapping subtractionh]h,Intentionally perform a wrapping subtraction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKuhjubah}(h]h ]h"]h$]h&]uh1jhjhKuhjhhubj)}(hX**Parameters** ``type`` type for result of calculation ``a`` minuend; value to subtract from ``b`` subtrahend; value to subtract from **a** **Description** Return the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKyhjubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjʝh]htype}(hj̝hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȝubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKvhjĝubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߝhKvhjubah}(h]h ]h"]h$]h&]uh1jhjĝubeh}(h]h ]h"]h$]h&]uh1jhjߝhKvhjubj)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKwhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj<h]hb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKxhj6ubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjUhhhNhNubj)}(h**a**h]ha}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1hhjQhKxhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKzhjubh)}(hrReturn the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.h]hrReturn the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_assign_sub (C macro)c.wrapping_assign_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(hwrapping_assign_subh]j)}(hwrapping_assign_subh]jg)}(hwrapping_assign_subh]jm)}(hjĞh]hwrapping_assign_sub}(hjΞhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʞubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjƞhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjžhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_sub (var, offset)``h]j)}(hjh]h!wrapping_assign_sub (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Intentionally perform a wrapping decrement assign h]h)}(h1Intentionally perform a wrapping decrement assignh]h1Intentionally perform a wrapping decrement assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj(hKhjhhubj)}(hX**Parameters** ``var`` variable to be decremented ``offset`` amount to subtract **Description** Decrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers. Returns the new value of **var**.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubj)}(hhh](j)}(h#``var`` variable to be decremented h](j)}(h``var``h]j)}(hjTh]hvar}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjNubj)}(hhh]h)}(hvariable to be decrementedh]hvariable to be decremented}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjKubj)}(h``offset`` amount to subtract h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hjȟh]h Description}(hjʟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƟubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubh)}(hDecrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Decrements }(hjޟhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh by }(hjޟhhhNhNubj)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh2 with wrap-around. Returns the resulting value of }(hjޟhhhNhNubj)}(h**var**h]hvar}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh+. Will not trip any wrap-around sanitizers.}(hjޟhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj#hhhNhNubj)}(h**var**h]hvar}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_mul_overflow (C macro)c.check_mul_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_mul_overflowh]j)}(hcheck_mul_overflowh]jg)}(hcheck_mul_overflowh]jm)}(hj^h]hcheck_mul_overflow}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj{hKubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj{hKhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjh]hcheck_mul_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Calculate multiplication with overflow checking h]h)}(h/Calculate multiplication with overflow checkingh]h/Calculate multiplication with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj hKhjhhubj)}(hX**Parameters** ``a`` first factor ``b`` second factor ``d`` pointer to store product **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjϠh]h Parameters}(hjѠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͠ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjɠubj)}(hhh](j)}(h``a`` first factor h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hj'h]hb}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj!ubj)}(hhh]h)}(h second factorh]h second factor}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjubj)}(h``d`` pointer to store product h](j)}(h``d``h]j)}(hj`h]hd}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjZubj)}(hhh]h)}(hpointer to store producth]hpointer to store product}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(h]h ]h"]h$]h&]uh1jhjɠubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjɠubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjɠubh)}(he***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjġhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ holds the results of the attempted multiplication, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjɠubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_mul (C macro)c.wrapping_mulhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_mulh]j)}(h wrapping_mulh]jg)}(h wrapping_mulh]jm)}(hjh]h wrapping_mul}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubh)}(h``wrapping_mul (type, a, b)``h]j)}(hj3h]hwrapping_mul (type, a, b)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Intentionally perform a wrapping multiplication h]h)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjIubah}(h]h ]h"]h$]h&]uh1jhj[hKhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first factor ``b`` second factor **Description** Return the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~ubj)}(h``a`` first factor h](j)}(h``a``h]j)}(hjh]ha}(hj¢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h first factorh]h first factor}(hj٢hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjբhKhj֢ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjբhKhj~ubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubh)}(huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h]huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_shl_overflow (C macro)c.check_shl_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_shl_overflowh]j)}(hcheck_shl_overflowh]jg)}(hcheck_shl_overflowh]jm)}(hjsh]hcheck_shl_overflow}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_shl_overflow (a, s, d)``h]j)}(hjh]hcheck_shl_overflow (a, s, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Calculate a left-shifted value and check overflow h]h)}(h1Calculate a left-shifted value and check overflowh]h1Calculate a left-shifted value and check overflow}(hjɣhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjţubah}(h]h ]h"]h$]h&]uh1jhjףhKhjhhubj)}(hX**Parameters** ``a`` Value to be shifted ``s`` How many bits left to shift ``d`` Pointer to where to store the result **Description** Computes ***d** = (**a** << **s**) Returns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions: - '**a** << **s**' causes bits to be lost when stored in ***d**. - '**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0. - '**a**' is negative. - '**a** << **s**' sets the sign bit, if any, in '***d**'. '***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubj)}(hhh](j)}(h``a`` Value to be shifted h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hValue to be shiftedh]hValue to be shifted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h"``s`` How many bits left to shift h](j)}(h``s``h]j)}(hj<h]hs}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj6ubj)}(hhh]h)}(hHow many bits left to shifth]hHow many bits left to shift}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjuh]hd}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjoubj)}(hhh]h)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjޣubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubh)}(h"Computes ***d** = (**a** << **s**)h](h Computes }(hjƤhhhNhNubj)}(h***d**h]h*d}(hjΤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh = (}(hjƤhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh << }(hjƤhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh)}(hjƤhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hj hhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh&’ cannot hold the result or when ‘}(hj hhhNhNubj)}(h**a**h]ha}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh << }(hj hhhNhNubj)}(h**s**h]hs}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh-’ doesn’t make sense. Example conditions:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]h)}(hjUh](h‘}(hjWhhhNhNubj)}(h**a**h]ha}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh << }(hjWhhhNhNubj)}(h**s**h]hs}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh*’ causes bits to be lost when stored in }(hjWhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjSubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h]h)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h](h‘}(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjѥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is guaranteed to be 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(h'**a**' is negative.h]h)}(hjh](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is negative.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(h9'**a** << **s**' sets the sign bit, if any, in '***d**'. h]h)}(h8'**a** << **s**' sets the sign bit, if any, in '***d**'.h](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%’ sets the sign bit, if any, in ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjޣubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hjohhhNhNubj)}(h***d**h]h*d}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hoverflows_type (C macro)c.overflows_typehNtauh1hhjhhhNhNubh)}(hhh](j)}(hoverflows_typeh]j)}(hoverflows_typeh]jg)}(hoverflows_typeh]jm)}(hjh]hoverflows_type}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjǦhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjǦhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjǦhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``overflows_type (n, T)``h]j)}(hjh]hoverflows_type (n, T)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(hIhelper for checking the overflows between value, variables, or data type h]h)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h6``n`` source constant value or variable to be checked h](j)}(h``n``h]j)}(hj:h]hn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj4ubj)}(hhh]h)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhj1ubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjsh]hT}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjmubj)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hCompares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression.h](h Compares the }(hjҧhhhNhNubj)}(h**x**h]hx}(hjڧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubhO expression for whether or not it can safely fit in the storage of the type in }(hjҧhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh. }(hjҧhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh and }(hjҧhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh can have different types. If }(hjҧhhhNhNubj)}(h**x**h]hx}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubhK is a constant expression, this will also resolve to a constant expression.}(hjҧhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcastable_to_type (C macro)c.castable_to_typehNtauh1hhjhhhNhNubh)}(hhh](j)}(hcastable_to_typeh]j)}(hcastable_to_typeh]jg)}(hcastable_to_typeh]jm)}(hj|h]hcastable_to_type}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``castable_to_type (n, T)``h]j)}(hjh]hcastable_to_type (n, T)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(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}(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)}(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.hhKhjubj)}(hhh](j)}(h!``n`` variable or constant value h](j)}(h``n``h]j)}(hj h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hvariable or constant valueh]hvariable or constant value}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKhjubj)}(h``T`` variable or data type h](j)}(h``T``h]j)}(hjEh]hT}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj?ubj)}(hhh]h)}(hvariable or data typeh]hvariable or data type}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjubeh}(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:127: ./include/linux/overflow.hhKhjubh)}(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().}(hjhhhNhNubah}(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](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}(hjȩhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjũubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjʩmodnameN classnameNjI jL )}jO ]jR )}jE size_mulsb c.size_mulasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsize_mulh]jm)}(hjh]hsize_mul}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfactor1h]hfactor1}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t factor2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubjm)}(hfactor2h]hfactor2}(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;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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjЪjjЪjjjuh1hhhhjhNhNubj)}(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)}(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 ``size_t factor1`` first factor h](j)}(h``size_t factor1``h]j)}(hjh]hsize_t factor1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``size_t factor2`` second factor h](j)}(h``size_t factor2``h]j)}(hj2h]hsize_t factor2}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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 second factorh]h second factor}(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&]uh1jhjԪubh)}(h **Return**h]j)}(hjmh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjԪubh)}(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 }(hjhhhNhNubj)}(h **factor1**h]hfactor1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h **factor2**h]hfactor2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, 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.}(hjhhhNhNubeh}(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](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}(hj٫hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj֫ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj۫modnameN classnameNjI jL )}jO ]jR )}jE size_addsb c.size_addasbuh1hhjҫhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjҫhhhjhMubjg)}(hsize_addh]jm)}(hjh]hsize_add}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjҫhhhjhMubj)}(h (size_t addend1, size_t addend2)h](j)}(hsize_t addend1h](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_addasbuh1hhj$ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubjm)}(haddend1h]haddend1}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hsize_t addend2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]j c.size_addasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubjm)}(haddend2h]haddend2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(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)}(h5Calculate size_t addition with saturation at SIZE_MAXh]h5Calculate size_t addition with saturation at SIZE_MAX}(hjɬhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjƬhhubah}(h]h ]h"]h$]h&]uh1jhj˫hhhjhMubeh}(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.hhMhjubj)}(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&]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 first addendh]h first addend}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``size_t addend2`` second addend h](j)}(h``size_t addend2``h]j)}(hjCh]hsize_t addend2}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj=ubj)}(hhh]h)}(h second addendh]h second addend}(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 **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(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 }(hjhhhNhNubj)}(h **addend1**h]haddend1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h **addend2**h]haddend2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, 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.}(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](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.hhM(ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM(ubjg)}(hsize_subh]jm)}(hjh]hsize_sub}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM(ubj)}(h#(size_t minuend, size_t subtrahend)h](j)}(hsize_t minuendh](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 ]j c.size_subasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hminuendh]hminuend}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hsize_t subtrahendh](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_subasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(h subtrahendh]h subtrahend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj߭hhhj hM(ubah}(h]jڭah ](jjeh"]h$]h&]jj)jhuh1hhj hM(hjܭhhubj)}(hhh]h)}(h8Calculate size_t subtraction with saturation at SIZE_MAXh]h8Calculate size_t subtraction with saturation at SIZE_MAX}(hjڮhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hj׮hhubah}(h]h ]h"]h$]h&]uh1jhjܭhhhj hM(ubeh}(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)}(hjh]h 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 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.hhM)hjubj)}(hhh]h)}(hvalue to subtract fromh]hvalue to subtract from}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM)hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM)hjubj)}(h9``size_t subtrahend`` value to subtract from **minuend** h](j)}(h``size_t subtrahend``h]j)}(hjTh]hsize_t subtrahend}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hjNubj)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hjmhhhNhNubj)}(h **minuend**h]hminuend}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1hhjihM*hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM*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:127: ./include/linux/overflow.hhM,hjubh)}(hXAcalculate **minuend** - **subtrahend**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjhhhNhNubj)}(h **minuend**h]hminuend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - }(hjhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjͯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harray_size (C macro) c.array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h array_sizeh]j)}(h array_sizeh]jg)}(h array_sizeh]jm)}(hjh]h array_size}(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.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&]jjjj6jj6jjjuh1hhhhjhNhNubh)}(h``array_size (a, b)``h]j)}(hj<h]harray_size (a, b)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM@hjhhubj)}(h'Calculate size of 2-dimensional array. h]h)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM>hjRubah}(h]h ]h"]h$]h&]uh1jhjdhM>hjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two **Description** Calculates size of 2-dimensional array: **a** * **b**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(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.hhMBhjkubj)}(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.hhM?hjubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(h``b`` dimension two 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.hhM@hjðubj)}(hhh]h)}(h dimension twoh]h dimension two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjްhM@hj߰ubah}(h]h ]h"]h$]h&]uh1jhjðubeh}(h]h ]h"]h$]h&]uh1jhjްhM@hjubeh}(h]h ]h"]h$]h&]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.hhMBhjkubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hj4hhhNhNubah}(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.hhMAhjkubh)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMChjkubh)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMDhjkubeh}(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)}(hjh]h array3_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.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ıjjjuh1hhhhjhNhNubh)}(h``array3_size (a, b, c)``h]j)}(hjʱh]harray3_size (a, b, 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:127: ./include/linux/overflow.hhMLhjhhubj)}(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.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjhMJhjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two ``c`` dimension three **Description** Calculates size of 3-dimensional array: **a** * **b** * **c**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMNhjubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjh]ha}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMKhjubj)}(hhh]h)}(h dimension oneh]h dimension one}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMKhjubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjWh]hb}(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.hhMLhjQubj)}(hhh]h)}(h dimension twoh]h dimension two}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMLhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMLhjubj)}(h``c`` dimension three 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:127: ./include/linux/overflow.hhMMhjubj)}(hhh]h)}(hdimension threeh]hdimension three}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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.hhMOhjubh)}(h>Calculates size of 3-dimensional array: **a** * **b** * **c**.h](h(Calculates size of 3-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }hjsbj)}(h**c**h]hc}(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.hhMNhjubh)}(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.hhMPhjubh)}(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.hhMQhjubeh}(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)}(hjgh]hflex_array_size}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMWubah}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjhMWubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjhMWubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h&``flex_array_size (p, member, count)``h]j)}(hjh]h"flex_array_size (p, member, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMYhjhhubj)}(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.hhMWhjubah}(h]h ]h"]h$]h&]uh1jhj˳hMWhjhhubj)}(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)}(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 ``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.hhMYhjubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMYhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMYhjubj)}(h.``member`` Name of the flexible array member. h](j)}(h ``member``h]j)}(hj0h]hmember}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMZhj*ubj)}(hhh]h)}(h"Name of the flexible array member.h]h"Name of the flexible array member.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMZhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMZhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjih]hcount}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM[hjcubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM[hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM[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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM]hjҳubh)}(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}(hj´hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh number of }(hjhhhNhNubj)}(h **member**h]hmember}(hjԴhhhNhNubah}(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.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.hhM_hjҳubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM`hjҳubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_size (C macro) c.struct_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_sizeh]j)}(h struct_sizeh]jg)}(h struct_sizeh]jm)}(hj@h]h struct_size}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhubah}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj]hMhubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj]hMhhj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hMhubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1hhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hj|h]hstruct_size (p, member, count)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMjhjhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhhjubah}(h]h ]h"]h$]h&]uh1jhjhMhhjhhubj)}(hXO**Parameters** ``p`` Pointer to the structure. ``member`` Name of the array member. ``count`` Number of elements in the array. **Description** Calculates size of memory needed for structure of **p** followed by an array of **count** number of **member** elements. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMlhjubj)}(hhh](j)}(h ``p`` Pointer to the structure. 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:127: ./include/linux/overflow.hhMihjʵubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjʵubeh}(h]h ]h"]h$]h&]uh1jhjhMihjǵubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hj h]hmember}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMjhjubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjǵubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjBh]hcount}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMkhj<ubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMkhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMkhjǵubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMmhjubh)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh followed by an 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMlhjubh)}(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.hhMohjubh)}(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.hhMphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_size_t (C macro)c.struct_size_thNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_size_th]j)}(h struct_size_th]jg)}(h struct_size_th]jm)}(hjh]h struct_size_t}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMxubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj6hMxubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMxhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj6hMxubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1hhhhjhNhNubh)}(h'``struct_size_t (type, member, count)``h]j)}(hjUh]h#struct_size_t (type, member, count)}(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.hhMzhjhhubj)}(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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMxhjkubah}(h]h ]h"]h$]h&]uh1jhj}hMxhjhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM|hjubj)}(hhh](j)}(h``type`` structure type name. 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.hhMyhjubj)}(hhh]h)}(hstructure type name.h]hstructure type name.}(hj·hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjubj)}(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.hhMzhjܷubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjܷubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjubj)}(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.hhM{hjubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM}hjubh)}(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 }(hjlhhhNhNubj)}(h**type**h]htype}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh followed by an array of }(hjlhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh number of }(hjlhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hjlhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM|hjubh)}(h **Return**h]j)}(hjŸh]hReturn}(hjǸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjøubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hj۸hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__DEFINE_FLEX (C macro)c.__DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h __DEFINE_FLEXh]j)}(h __DEFINE_FLEXh]jg)}(h __DEFINE_FLEXh]jm)}(hjh]h __DEFINE_FLEX}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj!hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj:jj:jjjuh1hhhhjhNhNubh)}(h9``__DEFINE_FLEX (type, name, member, count, trailer...)``h]j)}(hj@h]h5__DEFINE_FLEX (type, name, member, count, trailer...)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhjhhMhjhhubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjoubj)}(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.hhMhjǹubj)}(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&]uh1jhjǹubeh}(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)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hj?h]hcount}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj9ubj)}(hhh]h)}(hubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj:ubj)}(hhh]h)}(h7Initializer expression (e.g., pass `= { }` at minimum).h](h#Initializer expression (e.g., pass }(hjYhhhNhNubhtitle_reference)}(h`= { }`h]h= { }}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jahjYubh at minimum).}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_RAW_FLEX (C macro)c.DEFINE_RAW_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(hDEFINE_RAW_FLEXh]j)}(hDEFINE_RAW_FLEXh]jg)}(hDEFINE_RAW_FLEXh]jm)}(hjh]hDEFINE_RAW_FLEX}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]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/``DEFINE_RAW_FLEX (type, name, member, count)``h]j)}(hjh]h+DEFINE_RAW_FLEX (type, name, member, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation. h]h)}(hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation.h]hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhjhhubj)}(hX`**Parameters** ``type`` structure type name, including "struct" keyword. ``name`` Name for a variable to define. ``member`` Name of the array member. ``count`` Number of elements in the array; must be compile-time const. **Description** Define a zeroed, on-stack, instance of **type** structure with a trailing flexible array member. Use __struct_size(**name**) to get compile-time size of it afterwards. Use __member_size(**name->member**) to get compile-time size of **name** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hj8h]htype}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hjqh]hname}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjkubj)}(hhh]h)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjýhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjݽubj)}(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 }(hj4hhhNhNubj)}(h**type**h]htype}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhD structure with a trailing flexible array member. Use __struct_size(}(hj4hhhNhNubj)}(h**name**h]hname}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh?) to get compile-time size of it afterwards. Use __member_size(}(hj4hhhNhNubj)}(h**name->member**h]h name->member}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh) to get compile-time size of }(hj4hhhNhNubj)}(h**name**h]hname}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hj4hhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh, }(hj4hhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh2) to get compile-time number of elements in array }(hj4hhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_FLEX (C macro) c.DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h DEFINE_FLEXh]j)}(h DEFINE_FLEXh]jg)}(h DEFINE_FLEXh]jm)}(hj۾h]h DEFINE_FLEX}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjݾhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]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&]jjjjjjjjjuh1hhhhjhNhNubh)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hjh]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hPDefine an on-stack instance of structure with a trailing flexible array member. h]h)}(hODefine an on-stack instance of structure with a trailing flexible array member.h]hODefine an on-stack instance of structure with a trailing flexible array member.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj?hMhjhhubj)}(hX**Parameters** ``TYPE`` structure type name, 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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjFubj)}(hhh](j)}(h:``TYPE`` structure type name, including "struct" keyword. h](j)}(h``TYPE``h]j)}(hjkh]hTYPE}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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&]uh1jhjhMhjbubj)}(h%``MEMBER`` Name of the array member. h](j)}(h ``MEMBER``h]j)}(hjݿh]hMEMBER}(hj߿hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۿubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj׿ubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj׿ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hjh]hCOUNTER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h Name of the __counted_by member.h]h Name of the __counted_by member.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjbubj)}(hG``COUNT`` Number of elements in the array; must be compile-time const. h](j)}(h ``COUNT``h]j)}(hjOh]hCOUNT}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjIubj)}(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.hhMhjFubeh}(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)}(hjGh]hSTACK_FLEX_ARRAY_SIZE}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjdhMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjBhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjBhhhjdhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1hhhhjhNhNubh)}(h'``STACK_FLEX_ARRAY_SIZE (name, array)``h]j)}(hjh]h#STACK_FLEX_ARRAY_SIZE (name, array)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hThelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**. h]h)}(hShelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**.h](hIhelper macro for DEFINE_FLEX() family. Returns the number of elements in }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). ``array`` Name of the array member.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().h]h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hj"h]harray}(hj$hhhNhNubah}(h]h ]h"]h$]h&]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 of the array member.h]hName of the array member.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]arithmetic-overflow-checkingah ]h"]arithmetic overflow checkingah$]h&]uh1hhjhhhhhK}ubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc4 (C function)c.crc4hNtauh1hhjkhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hcrc4h]jm)}(hjh]hcrc4}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h!(uint8_t c, uint64_t x, int bits)h](j)}(h uint8_t ch](h)}(hhh]jm)}(huint8_th]huint8_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc4asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint64_t xh](h)}(hhh]jm)}(huint64_th]huint64_t}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jc.crc4asbuh1hhj*ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubjm)}(hxh]hx}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint bitsh](j )}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(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#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(hX<**Parameters** ``uint8_t c`` starting crc4 ``uint64_t x`` value to checksum ``int bits`` number of bits in **x** to checksum **Description** Returns the crc4 value of **x**, using polynomial 0b10111. The **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(hhh](j)}(h``uint8_t c`` starting crc4 h](j)}(h ``uint8_t c``h]j)}(hjh]h uint8_t c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(hhh]h)}(h starting crc4h]h starting crc4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``uint64_t x`` value to checksum h](j)}(h``uint64_t x``h]j)}(hj6h]h uint64_t x}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj0ubj)}(hhh]h)}(hvalue to checksumh]hvalue to checksum}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjubj)}(h1``int bits`` number of bits in **x** to checksum h](j)}(h ``int bits``h]j)}(hjoh]hint bits}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjiubj)}(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&]uh1jhjiubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubh)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, using polynomial 0b10111.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubh)}(hhThe **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](hThe }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 value is treated as left-aligned, and bits above }(hjhhhNhNubj)}(h**bits**h]hbits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% are ignored in the crc calculations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc7_be (C function) c.crc7_behNtauh1hhjkhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE crc7_besb c.crc7_beasbuh1hhjBhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjjhK5ubjg)}(hcrc7_beh]jm)}(hjgh]hcrc7_be}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjjhK5ubj)}(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 ]je c.crc7_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)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]je c.crc7_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]je c.crc7_beasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjjhK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjjhK5ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjjhK5hj;hhubj)}(hhh]h)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjjhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(hXS**Parameters** ``u8 crc`` previous CRC7 value ``const u8 *buffer`` data pointer ``size_t len`` number of bytes in the buffer **Context** any **Description** Returns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjubj)}(hhh](j)}(h``u8 crc`` previous CRC7 value h](j)}(h ``u8 crc``h]j)}(hjh]hu8 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK6hjubj)}(hhh]h)}(hprevious CRC7 valueh]hprevious CRC7 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hj#h]hconst u8 *buffer}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK7hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK7hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK7hjubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hj\h]h size_t len}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK8hjVubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhK8hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:hjubh)}(hanyh]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK;hjubh)}(hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h]hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhjkhhhNhNubh)}(hhh](j)}(hAvoid crc8_populate_msb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hcrc8_populate_msbh]jm)}(hcrc8_populate_msbh]hcrc8_populate_msb}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]jm)}(hu8h]hu8}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE j&sbc.crc8_populate_msbasbuh1hhj<ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubjm)}(htableh]htable}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubj)}(h[h]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(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 ]j_c.crc8_populate_msbasbuh1hhj<ubj)}(h]h]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j_c.crc8_populate_msbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h9fill crc table for given polynomial in reverse bit order.h]h9fill crc table for given polynomial in reverse bit order.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhjkhNhNubj)}(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)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj<ubj)}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjah]hu8 table[CRC8_TABLE_SIZE]}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj[ubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjXubj)}(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&]uh1jhjhKhjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhjkhhhNhNubh)}(hhh](j)}(hAvoid crc8_populate_lsb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK/ubjg)}(hcrc8_populate_lsbh]jm)}(hcrc8_populate_lsbh]hcrc8_populate_lsb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK/ubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]jm)}(hu8h]hu8}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE jsbc.crc8_populate_lsbasbuh1hhj-ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(htableh]htable}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubj)}(hjh]h[}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jPc.crc8_populate_lsbasbuh1hhj-ubj)}(hjh]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jPc.crc8_populate_lsbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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)}(h9fill crc table for given polynomial in regular bit order.h]h9fill crc table for given polynomial in regular bit order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjkhNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hj+ubj)}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjPh]hu8 table[CRC8_TABLE_SIZE]}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK1hjJubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehK1hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehK1hjGubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8 (C function)c.crc8hNtauh1hhjkhhhNhNubh)}(hhh](j)}(hQu8 crc8 (const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h]j)}(hPu8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc8sbc.crc8asbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKDubjg)}(hcrc8h]jm)}(hjh]hcrc8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKDubj)}(hI(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](j)}(hconst u8 table[CRC8_TABLE_SIZE]h](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hu8h]hu8}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubj)}(hjh]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(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.crc8asbuh1hhj1ubj)}(hjh]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst u8 *pdatah](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpdatah]hpdata}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h size_t nbytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhj?ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubjm)}(hnbytesh]hnbytes}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKDhjhhubj)}(hhh]h)}(h+calculate a crc8 over the given input data.h]h+calculate a crc8 over the given input data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(h**Parameters** ``const u8 table[CRC8_TABLE_SIZE]`` crc table used for calculation. ``const u8 *pdata`` pointer to data buffer. ``size_t nbytes`` number of bytes in data buffer. ``u8 crc`` previous returned crc8 value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhjubj)}(hhh](j)}(hD``const u8 table[CRC8_TABLE_SIZE]`` crc table used for calculation. h](j)}(h#``const u8 table[CRC8_TABLE_SIZE]``h]j)}(hj%h]hconst u8 table[CRC8_TABLE_SIZE]}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKFhjubj)}(hhh]h)}(hcrc table used for calculation.h]hcrc table used for calculation.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKFhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKFhjubj)}(h,``const u8 *pdata`` pointer to data buffer. h](j)}(h``const u8 *pdata``h]j)}(hj^h]hconst u8 *pdata}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKGhjXubj)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKGhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKGhjubj)}(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)}(hjh]hu8 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKJhjubj)}(hhh]h)}(hprevious returned crc8 value.h]hprevious returned crc8 value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc16 (C function)c.crc16hNtauh1hhjkhhhNhNubh)}(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}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jR )}jE crc16sbc.crc16asbuh1hhj&hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhjNhK0ubjg)}(hcrc16h]jm)}(hjKh]hcrc16}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhjNhK0ubj)}(h"(u16 crc, const u8 *p, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jIc.crc16asbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h const u8 *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jIc.crc16asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jIc.crc16asbuh1hhj/ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hlenh]hlen}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhjNhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhjNhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjNhK0hjhhubj)}(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&]uh1jhjhhhjNhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``const u8 *p`` data pointer ``size_t len`` number of bytes in the buffer **Description** Returns the updated CRC value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjh]hu16 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hjubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(h``const u8 *p`` data pointer h](j)}(h``const u8 *p``h]j)}(hjh]h const u8 *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK2hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hj?h]h size_t len}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK3hj9ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThK3hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThK3hjubeh}(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&]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&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_ccitt (C function) c.crc_ccitthNtauh1hhjkhhhNhNubh)}(hhh](j)}(h5u16 crc_ccitt (u16 crc, u8 const *buffer, size_t len)h]j)}(h4u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len)h](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc_ccittsb c.crc_ccittasbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubjg)}(h crc_ccitth]jm)}(hjh]h crc_ccitt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(h'(u16 crc, u8 const *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hcrch]hcrc}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hu8 const *bufferh](h)}(hhh]jm)}(hu8h]hu8}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhjUubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjhhubj)}(hhh]h)}(h9recompute the CRC (CRC-CCITT variant) for the data bufferh]h9recompute the CRC (CRC-CCITT variant) for the data buffer}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhjkhNhNubj)}(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)}(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:145: ./lib/crc/crc-ccitt.chK7hj>ubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjch]hu16 crc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK5hj]ubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhK5hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhK5hjZubj)}(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&]uh1jhjhK6hjZubj)}(h,``size_t len`` number of bytes in the bufferh](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK8hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_itu_t (C function) c.crc_itu_thNtauh1hhjkhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE crc_itu_tsb c.crc_itu_tasbuh1hhj+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+hhhjShK2ubjg)}(h crc_itu_th]jm)}(hjPh]h crc_itu_t}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhjShK2ubj)}(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 ]jN c.crc_itu_tasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jN c.crc_itu_tasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h size_t lenh](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 ]jN c.crc_itu_tasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hlenh]hlen}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj+hhhjShK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhjShK2ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhjShK2hj$hhubj)}(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&]uh1jhj$hhhjShK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``const u8 *buffer`` data pointer ``size_t len`` number of bytes in the buffer **Description** Returns the updated CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjh]hu16 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK4hjubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hj h]hconst u8 *buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK5hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hK5hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hK5hjubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjEh]h size_t len}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hj?ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhK6hj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhK6hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_le (C function) c.crc32_lehNtauh1hhjkhhhNhNubh)}(hhh](j)}(h1u32 crc32_le (u32 crc, const void *p, size_t len)h]j)}(h0u32 crc32_le(u32 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32_lesb c.crc32_leasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK ubjg)}(hcrc32_leh]jm)}(hjh]hcrc32_le}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc32_leasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj )}(hvoidh]hvoid}(hjzhhhNhNubah}(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&]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 N]j c.crc32_leasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjhhubj)}(hhh]h)}(h/Compute least-significant-bit-first IEEE CRC-32h]h/Compute least-significant-bit-first IEEE CRC-32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjkhNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hj0ubj)}(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)}(hjUh]hu32 crc}(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)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhK hjLubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjLubj)}(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 hjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj0ubh)}(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.hhKhj0ubj)}(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 +}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj2ubj)}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjEubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhj/ubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjqh]h&Bit order: Least-significant-bit-first}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(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&]uh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhKhj0ubh)}(hThis does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.h](h This does }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj0ubh)}(hCFor new applications, prefer to use CRC-32C instead. See crc32c().h]hCFor new applications, prefer to use CRC-32C instead. See crc32c().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj0ubh)}(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.hhKhj0ubh)}(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.hhKhj0ubh)}(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.hhKhj0ubh)}(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.hhKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_be (C function) c.crc32_behNtauh1hhjkhhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE crc32_besb c.crc32_beasbuh1hhj@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjhhK(ubjg)}(hcrc32_beh]jm)}(hjeh]hcrc32_be}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjhhK(ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc c.crc32_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 }(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&]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 reftargetj?modnameN classnameNjI jL )}jO ]jc c.crc32_beasbuh1hhj6ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hlenh]hlen}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjhhK(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjhhK(ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjhhK(hj9hhubj)}(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&]uh1jhj9hhhjhhK(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(hX:**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** crc32_be() is the same as crc32_le() except that crc32_be() computes the *most-significant-bit-first* variant of the CRC. I.e., within each byte, the most significant bit is processed first (treated as highest order polynomial coefficient). The same bit order is also used for the CRC value itself: - Polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0 - Bit order: Most-significant-bit-first - Polynomial in integer form: 0x04c11db7 **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hjubj)}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjh]hu32 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK*hjubj)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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}(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'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjGh]h size_t len}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hjAubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hK,hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hK,hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**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 }(hjhhhNhNubj)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh variant of the CRC. I.e., within each byte, the most significant bit is processed first (treated as highest order polynomial coefficient). The same bit order is also used for the CRC value itself:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK-hjubj)}(hhh](j)}(hwPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]j)}(hhh]j)}(hkPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h](j)}(hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +h]hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK2hjubj)}(hhh]h)}(h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h%Bit order: Most-significant-bit-firsth]h)}(hjh]h%Bit order: Most-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0x04c11db7 h]h)}(h&Polynomial in integer form: 0x04c11db7h]h&Polynomial in integer form: 0x04c11db7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhK2hjubh)}(h **Context**h]j)}(hj9h]hContext}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(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}(hjOhhhNhNubah}(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)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK:hjubh)}(hThe new CRC valueh]hThe new CRC value}(hjvhhhNhNubah}(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&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32c (C function)c.crc32chNtauh1hhjkhhhNhNubh)}(hhh](j)}(h/u32 crc32c (u32 crc, const void *p, size_t len)h]j)}(h.u32 crc32c(u32 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32csbc.crc32casbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK>ubjg)}(hcrc32ch]jm)}(hjh]hcrc32c}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc32casbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj )}(hvoidh]hvoid}(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)}(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.crc32casbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjhhubj)}(hhh]h)}(hCompute CRC-32Ch]hCompute CRC-32C}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjkhNhNubj)}(hXD**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** This implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC. - Polynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0 - Bit order: Least-significant-bit-first - Polynomial in integer form: 0x82f63b78 This does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended. **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhjubj)}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hj5h]hu32 crc}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK@hj/ubj)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK?hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK@hj,ubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjoh]h const void *p}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKAhjiubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKAhj,ubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhjubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhj,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:151: ./include/linux/crc32.hhKDhjubh)}(hThis implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC.h]hThis implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKChjubj)}(hhh](j)}(hPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h]j)}(hhh]j)}(hPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h](j)}(hJPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 +h]hJPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 +}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKFhjubj)}(hhh]h)}(h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h]h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKGhj%ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj$hKFhjubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjQh]h&Bit order: Least-significant-bit-first}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKHhjOubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0x82f63b78 h]h)}(h&Polynomial in integer form: 0x82f63b78h]h&Polynomial in integer form: 0x82f63b78}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKIhjgubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj$hKFhjubh)}(hThis does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.h](h This does }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKKhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKNhjubh)}(h Any contexth]h Any context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKOhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKQhjubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_be (C function) c.crc64_behNtauh1hhjkhhhNhNubh)}(hhh](j)}(h1u64 crc64_be (u64 crc, const void *p, size_t len)h]j)}(h0u64 crc64_be(u64 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc64_besb c.crc64_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj9hKubjg)}(hcrc64_beh]jm)}(hj6h]hcrc64_be}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj9hKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]j4 c.crc64_beasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j4 c.crc64_beasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj9hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj9hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hKhj hhubj)}(hhh]h)}(h+Calculate bitwise big-endian ECMA-182 CRC64h]h+Calculate bitwise big-endian ECMA-182 CRC64}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjahhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjkhNhNubj)}(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)}(hjh]hu64 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj)}(hhh]h)}(h{seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally.h]h{seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h%``size_t len`` length of buffer **p**h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hj1hhhNhNubj)}(h**p**h]hp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(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 hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_nvme (C function) c.crc64_nvmehNtauh1hhjkhhhNhNubh)}(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_nvmeasbuh1hhj|hhhZ/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&]uh1jhj|hhhjhKubjg)}(h crc64_nvmeh]jm)}(hjh]h crc64_nvme}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc64_nvmeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]j c.crc64_nvmeasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhKubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjuhhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjkhNhNubj)}(hX**Parameters** ``u64 crc`` seed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally. ``const void *p`` pointer to buffer over which CRC64 is run ``size_t len`` length of buffer **p** **Description** This computes the CRC64 defined in the NVME NVM Command Set Specification, *including the bitwise inversion at the beginning and end*.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj)}(hhh](j)}(h}``u64 crc`` seed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally. h](j)}(h ``u64 crc``h]j)}(hjh]hu64 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj ubj)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjJh]h const void *p}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjDubj)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjubj)}(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.hhKhj}ubj)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubh)}(hThis computes the CRC64 defined in the NVME NVM Command Set Specification, *including the bitwise inversion at the beginning and end*.h](hKThis computes the CRC64 defined in the NVME NVM Command Set Specification, }(hjhhhNhNubj)}(h:*including the bitwise inversion at the beginning and end*h]h8including the bitwise inversion at the beginning and end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjkhhhNhNubeh}(h] crc-functionsah ]h"] crc functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hBase 2 log and power Functionsh]hBase 2 log and power Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_power_of_2 (C function)c.is_power_of_2hNtauh1hhjhhhNhNubh)}(hhh](j)}(h$bool is_power_of_2 (unsigned long n)h]j)}(h#bool is_power_of_2(unsigned long n)h](j )}(hj8h]hbool}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjIhK%ubjg)}(h is_power_of_2h]jm)}(h is_power_of_2h]h is_power_of_2}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjIhK%ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjIhK%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjIhK%ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjIhK%hj1hhubj)}(hhh]h)}(h"check if a value is a power of twoh]h"check if a value is a power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%hjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjIhK%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long n`` the value to check **Description** Determine whether some value is a power of two, where zero is *not* considered a power of two. **Return** true if **n** is a power of 2, otherwise false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK)hjubj)}(hhh]j)}(h'``unsigned long n`` the value to check h](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK&hjubj)}(hhh]h)}(hthe value to checkh]hthe value to check}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hK&hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hK&hjubah}(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:158: ./include/linux/log2.hhK(hjubh)}(h^Determine whether some value is a power of two, where zero is *not* considered a power of two.h](h>Determine whether some value is a power of two, where zero is }(hjkhhhNhNubj)}(h*not*h]hnot}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh considered a power of two.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK'hjubh)}(h **Return**h]j)}(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*hjubh)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is a power of 2, otherwise false.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(h4unsigned long __roundup_pow_of_two (unsigned long n)h]j)}(h3unsigned long __roundup_pow_of_two(unsigned long n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubjg)}(h__roundup_pow_of_twoh]jm)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hjyh]hn}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjhhubj)}(hhh]h)}(h round up to nearest power of twoh]h round up to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK7hjubj)}(hhh]j)}(h%``unsigned long n`` value to round uph](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK9hjubj)}(hhh]h)}(hvalue to round uph]hvalue to round up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(h6unsigned long __rounddown_pow_of_two (unsigned long n)h]j)}(h5unsigned long __rounddown_pow_of_two(unsigned long n)h](j )}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhjHhK=ubj )}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhjHhK=ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhjHhK=ubjg)}(h__rounddown_pow_of_twoh]jm)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhjHhK=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 }(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&]jjuh1jhj6hhhjHhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhK=ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhK=hj/hhubj)}(hhh]h)}(h"round down to nearest power of twoh]h"round down to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(h9**Parameters** ``unsigned long n`` value to round downh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKAhjubj)}(hhh]j)}(h'``unsigned long n`` value to round downh](j)}(h``unsigned long n``h]j)}(hj5h]hunsigned long n}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKChj/ubj)}(hhh]h)}(hvalue to round downh]hvalue to round down}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK>hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKChj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hconst_ilog2 (C macro) c.const_ilog2hNtauh1hhjhhhNhNubh)}(hhh](j)}(h const_ilog2h]j)}(h const_ilog2h]jg)}(h const_ilog2h]jm)}(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&]jjjuh1jjjhjhhhjhKGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``const_ilog2 (n)``h]j)}(hjh]hconst_ilog2 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhjhhubj)}(h9log base 2 of 32-bit or a 64-bit constant unsigned value h]h)}(h8log base 2 of 32-bit or a 64-bit constant unsigned valueh]h8log base 2 of 32-bit or a 64-bit constant unsigned value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGhjubah}(h]h ]h"]h$]h&]uh1jhjhKGhjhhubj)}(h**Parameters** ``n`` parameter **Description** Use this where sparse expects a true constant expression, e.g. for array indices.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKHhjubj)}(hhh]h)}(h parameterh]h parameter}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKHhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKHhjubah}(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:158: ./include/linux/log2.hhKJhjubh)}(hQUse this where sparse expects a true constant expression, e.g. for array indices.h]hQUse this where sparse expects a true constant expression, e.g. for array indices.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hilog2 (C macro)c.ilog2hNtauh1hhjhhhNhNubh)}(hhh](j)}(hilog2h]j)}(hilog2h]jg)}(hilog2h]jm)}(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&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``ilog2 (n)``h]j)}(hjh]h ilog2 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h0log base 2 of 32-bit or a 64-bit unsigned value h]h)}(h/log base 2 of 32-bit or a 64-bit unsigned valueh]h/log base 2 of 32-bit or a 64-bit unsigned value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` parameter **Description** constant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator construction selects the appropriately-sized optimised version depending on sizeof(n)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hj#h]hn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubah}(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)}(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}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hHselects the appropriately-sized optimised version depending on sizeof(n)h]hHselects the appropriately-sized optimised version depending on sizeof(n)*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(hroundup_pow_of_twoh]j)}(hroundup_pow_of_twoh]jg)}(hroundup_pow_of_twoh]jm)}(hjh]hroundup_pow_of_two}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``roundup_pow_of_two (n)``h]j)}(hjh]hroundup_pow_of_two (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h1round the given value up to nearest power of two h]h)}(h0round the given value up to nearest power of twoh]h0round the given value up to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``n`` parameter **Description** round the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hj<h]hn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj6ubj)}(hhh]h)}(h parameterh]h parameter}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]jg)}(hrounddown_pow_of_twoh]jm)}(hjh]hrounddown_pow_of_two}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``rounddown_pow_of_two (n)``h]j)}(hjh]hrounddown_pow_of_two (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h3round the given value down to nearest power of two h]h)}(h2round the given value down to nearest power of twoh]h2round the given value down to nearest power of two}(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&]uh1jhjhKhjhhubj)}(h**Parameters** ``n`` parameter **Description** round the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah](h)}(h**Parameters**h]j)}(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.hhKhj!ubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjFh]hn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj@ubj)}(hhh]h)}(h parameterh]h parameter}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj!ubh)}(hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](horder_base_2 (C macro)c.order_base_2hNtauh1hhjhhhNhNubh)}(hhh](j)}(h order_base_2h]j)}(h order_base_2h]jg)}(h order_base_2h]jm)}(hjh]h order_base_2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``order_base_2 (n)``h]j)}(hjh]horder_base_2 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h8calculate the (rounded up) base 2 order of the argument h]h)}(h7calculate the (rounded up) base 2 order of the argumenth]h7calculate the (rounded up) base 2 order of the argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj$hKhjhhubj)}(h**Parameters** ``n`` parameter **Description** The first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj+ubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjPh]hn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjJubj)}(hhh]h)}(h parameterh]h parameter}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj+ubj)}(hhh]j)}(hThe first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](j)}(h0The first few values calculated by this routine:h]h0The first few values calculated by this routine:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h]hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbits_per (C macro) c.bits_perhNtauh1hhjhhhNhNubh)}(hhh](j)}(hbits_perh]j)}(hbits_perh]jg)}(hbits_perh]jm)}(hjh]hbits_per}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj+jj+jjjuh1hhhhjhNhNubh)}(h``bits_per (n)``h]j)}(hj1h]h bits_per (n)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h7calculate the number of bits required for the argument h]h)}(h6calculate the number of bits required for the argumenth]h6calculate the number of bits required for the argument}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjGubah}(h]h ]h"]h$]h&]uh1jhjYhKhjhhubj)}(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)}(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: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&]uh1jhjhKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj`ubh)}(hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.h]hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj`ubh)}(hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.h]hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"max_pow_of_two_factor (C function)c.max_pow_of_two_factorhNtauh1hhjhhhNhNubh)}(hhh](j)}(h3unsigned int max_pow_of_two_factor (unsigned int n)h]j)}(h2unsigned int max_pow_of_two_factor(unsigned int n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj"hMubj )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj"hMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj"hMubjg)}(hmax_pow_of_two_factorh]jm)}(hmax_pow_of_two_factorh]hmax_pow_of_two_factor}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hMubj)}(h(unsigned int n)h]j)}(hunsigned int nh](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)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMhj hhubj)}(hhh]h)}(h return highest power-of-2 factorh]h return highest power-of-2 factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned int n`` parameter **Description** find highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubj)}(hhh]j)}(h``unsigned int n`` parameter h](j)}(h``unsigned int n``h]j)}(hjh]hunsigned int n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhj ubj)}(hhh]h)}(h parameterh]h parameter}(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)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubh)}(hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h]hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]base-2-log-and-power-functionsah ]h"]base 2 log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInteger log and power Functionsh]hInteger log and power Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog2 (C function) c.intlog2hNtauh1hhj~hhhNhNubh)}(hhh](j)}(h unsigned int intlog2 (u32 value)h]j)}(hunsigned int intlog2(u32 value)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hintlog2h]jm)}(hintlog2h]hintlog2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.intlog2asbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h?computes log2 of a value; the result is shifted left by 24 bitsh]h?computes log2 of a value; the result is shifted left by 24 bits}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj~hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog2(value) = intlog2(value * 2^x) - x * 2^24 Some usecase examples: intlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 **Return** log2(value) * 2^24h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubj)}(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&]uh1jhjxubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubj)}(h1intlog2(value) = intlog2(value * 2^x) - x * 2^24 h]h)}(h0intlog2(value) = intlog2(value * 2^x) - x * 2^24h]h0intlog2(value) = intlog2(value * 2^x) - x * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjxubh)}(hSome usecase examples:h]hSome usecase examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubj)}(hintlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 h](h)}(h'intlog2(8) will give 3 << 24 = 3 * 2^24h]h'intlog2(8) will give 3 << 24 = 3 * 2^24}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj%ubh)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj%ubh)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj%ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhjxubh)}(h **Return**h]j)}(hj^h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubh)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog10 (C function) c.intlog10hNtauh1hhj~hhhNhNubh)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK$ubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK$ubjg)}(hintlog10h]jm)}(hintlog10h]hintlog10}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK$ubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.intlog10asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(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)}(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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$hjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhj~hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog10(value) = intlog10(value * 10^x) - x * 2^24 An usecase example: intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 look at intlog2 for similar examples **Return** log10(value) * 2^24h](h)}(h**Parameters**h]j)}(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:164: ./include/linux/int_log.hhK(hjsubj)}(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&]uh1jhjsubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hjsubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK'hjsubj)}(h4intlog10(value) = intlog10(value * 10^x) - x * 2^24 h]h)}(h3intlog10(value) = intlog10(value * 10^x) - x * 2^24h]h3intlog10(value) = intlog10(value * 10^x) - x * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK)hjubah}(h]h ]h"]h$]h&]uh1jhj hK)hjsubh)}(hAn usecase example:h]hAn usecase example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK+hjsubj)}(hw intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 h](j)}(h,intlog10(1000) will give 3 << 24 = 3 * 2^24 h]h)}(h+intlog10(1000) will give 3 << 24 = 3 * 2^24h]h+intlog10(1000) will give 3 << 24 = 3 * 2^24}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK-hj$ubah}(h]h ]h"]h$]h&]uh1jhj6hK-hj ubh)}(hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24h]hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK/hj ubeh}(h]h ]h"]h$]h&]uh1jhj6hK-hjsubh)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK1hjsubh)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK3hjsubh)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK4hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_pow (C function) c.int_powhNtauh1hhj~hhhNhNubh)}(hhh](j)}(h(u64 int_pow (u64 base, unsigned int exp)h]j)}(h'u64 int_pow(u64 base, unsigned int exp)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE int_powsb c.int_powasbuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK ubjg)}(hint_powh]jm)}(hjh]hint_pow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK ubj)}(h(u64 base, unsigned int exp)h](j)}(hu64 baseh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.int_powasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hbaseh]hbase}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int exph](j )}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj )}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubjm)}(hexph]hexp}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjhhubj)}(hhh]h)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj~hNhNubj)}(h**Parameters** ``u64 base`` base which will be raised to the given power ``unsigned int exp`` power to be raised to **Description** Computes: pow(base, exp), i.e. **base** raised to the **exp** powerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubj)}(hhh](j)}(h:``u64 base`` base which will be raised to the given power h](j)}(h ``u64 base``h]j)}(hjh]hu64 base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubj)}(hhh]h)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h+``unsigned int exp`` power to be raised to h](j)}(h``unsigned int exp``h]j)}(hjh]hunsigned int exp}(hj hhhNhNubah}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubh)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjohhhNhNubj)}(h**base**h]hbase}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh raised to the }(hjohhhNhNubj)}(h**exp**h]hexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh power}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt (C function) c.int_sqrthNtauh1hhj~hhhNhNubh)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hint_sqrth]jm)}(hint_sqrth]hint_sqrt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hj_h]hx}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h computes the integer square rooth]h computes the integer square root}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj~hNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubj)}(hhh]j)}(h;``unsigned long x`` integer of which to calculate the sqrt h](j)}(h``unsigned long x``h]j)}(hjh]hunsigned long x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubj)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubh)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt64 (C function) c.int_sqrt64hNtauh1hhj~hhhNhNubh)}(hhh](j)}(hu32 int_sqrt64 (u64 x)h]j)}(hu32 int_sqrt64(u64 x)h](h)}(hhh]jm)}(hu32h]hu32}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE int_sqrt64sb c.int_sqrt64asbuh1hhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhjahK-ubjg)}(h int_sqrt64h]jm)}(hj^h]h int_sqrt64}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjahK-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)}(hj_h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjahK-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjahK-ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjahK-hj2hhubj)}(hhh]h)}(hGstrongly typed int_sqrt function when minimum 64 bit input is expected.h]hGstrongly typed int_sqrt function when minimum 64 bit input is expected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-hjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjahK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj~hNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK1hjubj)}(hhh]j)}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h ``u64 x``h]j)}(hj(h]hu64 x}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK3hj"ubj)}(hhh]h)}(h,64bit integer of which to calculate the sqrth]h,64bit integer of which to calculate the sqrt}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK/hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDivision Functionsh]hDivision Functions}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_div (C macro)c.do_divhNtauh1hhjqhhhNhNubh)}(hhh](j)}(hdo_divh]j)}(hdo_divh]jg)}(hdo_divh]jm)}(hjh]hdo_div}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubh)}(h``do_div (n, base)``h]j)}(hjh]hdo_div (n, base)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hjqhhubj)}(h>returns 2 values: calculate remainder and update new dividend h]h)}(h=returns 2 values: calculate remainder and update new dividendh]h=returns 2 values: calculate remainder and update new dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjhK hjqhhubj)}(hX**Parameters** ``n`` uint64_t dividend (will be updated) ``base`` uint32_t divisor **Description** Summary: ``uint32_t remainder = n % base;`` ``n = n / base;`` **Return** (uint32_t)remainder **NOTE** macro parameter **n** is evaluated multiple times, beware of side effects!h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubj)}(hhh](j)}(h*``n`` uint64_t dividend (will be updated) h](j)}(h``n``h]j)}(hj%h]hn}(hj'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!hjubj)}(hhh]h)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hK!hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hK!hjubj)}(h``base`` uint32_t divisor h](j)}(h``base``h]j)}(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"hjXubj)}(hhh]h)}(huint32_t divisorh]huint32_t divisor}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshK"hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshK"hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjhhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK#hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK'hjubh)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK(hjubh)}(h**NOTE**h]j)}(hjh]hNOTE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubh)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hjhhhNhNubj)}(h**n**h]hn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 is evaluated multiple times, beware of side effects!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64_rem (C function) c.div_u64_remhNtauh1hhjqhhhNhNubh)}(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}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE div_u64_remsb c.div_u64_remasbuh1hhjZhhh[/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&]uh1jhjZhhhjhKubjg)}(h div_u64_remh]jm)}(hjh]h div_u64_rem}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjhKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j} c.div_u64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 divisorh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j} c.div_u64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 *remainderh](h)}(hhh]jm)}(hu32h]hu32}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]j} c.div_u64_remasbuh1hhj<ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjohhhNhNubah}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjhKubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjShhubj)}(hhh]h)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubj)}(hXA**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u32 divisor`` unsigned 32bit divisor ``u32 *remainder`` pointer to unsigned 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisor **Description** This is commonly provided by 32bit archs to provide an optimized 64bit divide.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hj h]h u32 divisor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKhjubj)}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j)}(h``u32 *remainder``h]j)}(hjYh]hu32 *remainder}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjSubj)}(hhh]h)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.h]hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64_rem (C function) c.div_s64_remhNtauh1hhjqhhhNhNubh)}(hhh](j)}(h;s64 div_s64_rem (s64 dividend, s32 divisor, s32 *remainder)h]j)}(h:s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)h](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div_s64_remsb c.div_s64_remasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj6hK!ubjg)}(h div_s64_remh]jm)}(hj3h]h div_s64_rem}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj6hK!ubj)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]j1 c.div_s64_remasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(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 ]j1 c.div_s64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hs32 *remainderh](h)}(hhh]jm)}(hs32h]hs32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j1 c.div_s64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h remainderh]h remainder}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj6hK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hK!hjhhubj)}(hhh]h)}(h5signed 64bit divide with 32bit divisor with remainderh]h5signed 64bit divide with 32bit divisor with remainder}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!hjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjqhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor ``s32 *remainder`` pointer to signed 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK%hjvubj)}(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)}(hjh]h s32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hjubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubj)}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j)}(h``s32 *remainder``h]j)}(hj h]hs32 *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK$hjubj)}(hhh]h)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hK$hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hK$hjubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjvubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hj^hhhNhNubj)}(h``*remainder``h]h *remainder}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh!, then returns dividend / divisor}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64_rem (C function)c.div64_u64_remhNtauh1hhjqhhhNhNubh)}(hhh](j)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]j)}(hmodnameN classnameNjI jL )}jO ]jc.div64_u64_remasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hdivisorh]hdivisor}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 *remainderh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.div64_u64_remasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK/hjhhubj)}(hhh]h)}(h6unsigned 64bit divide with 64bit divisor and remainderh]h6unsigned 64bit divide with 64bit divisor and remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor ``u64 *remainder`` pointer to unsigned 64bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(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:178: ./include/linux/math64.hhK3hjubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hj(h]h u64 dividend}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK0hj"ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hK0hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hK0hjubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hjah]h u64 divisor}(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.hhK1hj[ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhK1hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhK1hjubj)}(h7``u64 *remainder`` pointer to unsigned 64bit remainder h](j)}(h``u64 *remainder``h]j)}(hjh]hu64 *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK2hjubj)}(hhh]h)}(h#pointer to unsigned 64bit remainderh]h#pointer to unsigned 64bit remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubeh}(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.hhK4hjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64 (C function) c.div64_u64hNtauh1hhjqhhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE div64_u64sb c.div64_u64asbuh1hhj(hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK=ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhjPhK=ubjg)}(h div64_u64h]jm)}(hjMh]h div64_u64}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhjPhK=ubj)}(h(u64 dividend, u64 divisor)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jK c.div64_u64asbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(h u64 divisorh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jK c.div64_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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(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&]uh1jhj!hhhjPhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjqhNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhj;ubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hj`h]h u64 dividend}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK>hjZubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhK>hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhK>hjWubj)}(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?hjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhj;ubh)}(hdividend / divisorh]hdividend / divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_s64 (C function) c.div64_s64hNtauh1hhjqhhhNhNubh)}(hhh](j)}(h)s64 div64_s64 (s64 dividend, s64 divisor)h]j)}(h(s64 div64_s64(s64 dividend, s64 divisor)h](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div64_s64sb c.div64_s64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj=hKIubjg)}(h div64_s64h]jm)}(hj:h]h div64_s64}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj=hKIubj)}(h(s64 dividend, s64 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]j8 c.div64_s64asbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(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 ]j8 c.div64_s64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj=hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj=hKIubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj=hKIhjhhubj)}(hhh]h)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj=hKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjqhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhj(ubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjMh]h s64 dividend}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKJhjGubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKJhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKJhjDubj)}(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&]uh1jhjhKKhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhj(ubh)}(hdividend / divisorh]hdividend / divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64 (C function) c.div_u64hNtauh1hhjqhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE div_u64sb c.div_u64asbuh1hhj hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKtubj)}(h h]h }(hj+ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj* hKtubjg)}(hdiv_u64h]jm)}(hj' h]hdiv_u64}(hj= hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9 ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj* hKtubj)}(h(u64 dividend, u32 divisor)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hj[ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj] modnameN classnameNjI jL )}jO ]j%  c.div_u64asbuh1hhjT ubj)}(h h]h }(hjy hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT ubjm)}(hdividendh]hdividend}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP ubj)}(h u32 divisorh](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_u64asbuh1hhj 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&]noemphjjuh1jhjP ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj* hKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj* hKtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj* hKthjhhubj)}(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&]uh1jhjhhhj* hKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjqhNhNubj)}(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)}(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.hhKxhj ubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hj: h]h u64 dividend}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8 ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKuhj4 ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO hKuhjP ubah}(h]h ]h"]h$]h&]uh1jhj4 ubeh}(h]h ]h"]h$]h&]uh1jhjO hKuhj1 ubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hjs h]h u32 divisor}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKvhjm ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKvhj ubah}(h]h ]h"]h$]h&]uh1jhjm ubeh}(h]h ]h"]h$]h&]uh1jhj hKvhj1 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.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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK|hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64 (C function) c.div_s64hNtauh1hhjqhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN 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 }(hj? hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj> hKubjg)}(hdiv_s64h]jm)}(hj; h]hdiv_s64}(hjQ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj> hKubj)}(h(s64 dividend, s32 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjo hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjq modnameN classnameNjI jL )}jO ]j9  c.div_s64asbuh1hhjh ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubjm)}(hdividendh]hdividend}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubj)}(h s32 divisorh](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 ]j9  c.div_s64asbuh1hhj 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&]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&signed 64bit divide with 32bit divisorh]h&signed 64bit divide with 32bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj> hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj% jj% jjjuh1hhhhjqhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** dividend / divisorh](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'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjN h]h s64 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)}(hsigned 64bit dividendh]hsigned 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%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hj h]h s32 divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 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 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)}(hdividend / divisorh]hdividend / divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjqhhhNhNubh)}(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.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&]jjjj7 jj7 jjjuh1hhhhjqhNhNubh)}(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"hjqhhubj)}(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}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM hjS ubah}(h]h ]h"]h$]h&]uh1jhje hM hjqhhubj)}(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)}(hjr h]h Parameters}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM$hjl 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.hhM!hj ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM!hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM!hj ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hj h]hd}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM"hj ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(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&]uh1jhjl 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$hjl ubh)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM#hjl 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&hjl ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM'hjl ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjqhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]jg)}(hDIV_U64_ROUND_UPh]jm)}(hjkh]hDIV_U64_ROUND_UP}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhM-ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhM-hjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjhM-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubh)}(h``DIV_U64_ROUND_UP (ll, d)``h]j)}(hjh]hDIV_U64_ROUND_UP (ll, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM/hjqhhubj)}(h4unsigned 64bit divide with 32bit divisor rounded up h]h)}(h3unsigned 64bit divide with 32bit divisor rounded uph]h3unsigned 64bit divide with 32bit divisor rounded up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM-hjubah}(h]h ]h"]h$]h&]uh1jhjhM-hjqhhubj)}(h**Parameters** ``ll`` unsigned 64bit dividend ``d`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round up. **Return** dividend / divisor rounded uph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM1hjubj)}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hjh]hll}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM.hjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(h``d`` unsigned 32bit divisor h](j)}(h``d``h]j)}(hj4h]hd}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM/hj.ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM/hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM/hjubeh}(h]h ]h"]h$]h&]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:178: ./include/linux/math64.hhM1hjubh)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM0hjubh)}(h **Return**h]j)}(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.hhM3hjubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjqhhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]jg)}(hDIV64_U64_ROUND_CLOSESTh]jm)}(hjh]hDIV64_U64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM:ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM:hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhjqhNhNubh)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjh]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM<hjqhhubj)}(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.hhM:hj'ubah}(h]h ]h"]h$]h&]uh1jhj9hM:hjqhhubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM>hj@ubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjeh]hdividend}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;hj_ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM;hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM;hj\ubj)}(h#``divisor`` unsigned 64bit divisor h](j)}(h ``divisor``h]j)}(hjh]hdivisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM<hjubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<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)}(hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj@ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM@hj@ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMAhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjqhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]jg)}(hDIV_U64_ROUND_CLOSESTh]jm)}(hj?h]hDIV_U64_ROUND_CLOSEST}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj\hMGubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMGhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj\hMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjujjujjjuh1hhhhjqhNhNubh)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMIhjqhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMGhjubah}(h]h ]h"]h$]h&]uh1jhjhMGhjqhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMKhjubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjh]hdividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMHhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h#``divisor`` unsigned 32bit divisor h](j)}(h ``divisor``h]j)}(hjh]hdivisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMIhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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:178: ./include/linux/math64.hhMKhjubh)}(hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMJhjubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhjubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjqhhhNhNubh)}(hhh](j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]jg)}(hDIV_S64_ROUND_CLOSESTh]jm)}(hjh]hDIV_S64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMTubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubh)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjh]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMVhjqhhubj)}(hBsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hAsigned 64bit divide with 32bit divisor rounded to nearest integerh]hAsigned 64bit divide with 32bit divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMThjubah}(h]h ]h"]h$]h&]uh1jhj hMThjqhhubj)}(h**Parameters** ``dividend`` signed 64bit dividend ``divisor`` signed 32bit divisor **Description** Divide signed 64bit dividend by signed 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMXhjubj)}(hhh](j)}(h#``dividend`` signed 64bit dividend h](j)}(h ``dividend``h]j)}(hj9h]hdividend}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMUhj3ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMUhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMUhj0ubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hjrh]hdivisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMVhjlubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMVhj0ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMXhjubh)}(hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.h]hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMWhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMZhjubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_u64 (C function) c.roundup_u64hNtauh1hhjqhhhNhNubh)}(hhh](j)}(hu64 roundup_u64 (u64 x, u32 y)h]j)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE roundup_u64sb c.roundup_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj=hMhubjg)}(h roundup_u64h]jm)}(hj:h]h roundup_u64}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj=hMhubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]j8 c.roundup_u64asbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hj_h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hu32 yh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j8 c.roundup_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hyh]hy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj=hMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj=hMhubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhhjhhubj)}(hhh]h)}(h;Round up a 64bit value to the next specified 32bit multipleh]h;Round up a 64bit value to the next specified 32bit multiple}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj=hMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjqhNhNubj)}(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.hhMlhj'ubj)}(hhh](j)}(h``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hjLh]hu64 x}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMihjFubj)}(hhh]h)}(hthe value to uph]hthe value to up}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMihjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMihjCubj)}(h(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hjh]hu32 y}(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.hhMjhjubj)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjCubeh}(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.hhMlhj'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 }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to the next multiple of }(hjhhhNhNubj)}(h**y**h]hy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . For 32bit }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? values, see roundup and the faster round_up() for powers of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMkhj'ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMnhj'ubh)}(hrounded up value.h]hrounded up value.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMohj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hgcd (C function)c.gcdhNtauh1hhjqhhhNhNubh)}(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}(hjbhhhNhNubah}(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 }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphK.ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhjphK.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphK.ubjg)}(hgcdh]jm)}(hgcdh]hgcd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]ha}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long bh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjGh]hb}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphK.ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphK.hjWhhubj)}(hhh]h)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hjihhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjqhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](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:181: ./lib/math/gcd.chK2hjubj)}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hjh]hunsigned long a}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hjubj)}(hhh]h)}(h first valueh]h first value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hjh]hunsigned long b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK1hjubj)}(hhh]h)}(h second valueh]h second value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjqhhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hj2hhhNhNubah}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghKubjg)}(hgenerate_random_uuidh]jm)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(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&]uh1jhjubjm)}(huuidh]huuid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hjh]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_literal_number)}(h16h]h16}(hjhhhNhNubah}(h]h ]mah"]h$]h&]uh1jhjubj)}(hjh]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghKhjNhhubj)}(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&]uh1jhjNhhhjghKubeh}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hjdh]hunsigned char uuid[16]}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj?ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKMubjg)}(h uuid_is_validh]jm)}(h uuid_is_validh]h uuid_is_valid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKMubj)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(huuidh]huuid}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKMhjhhubj)}(hhh]h)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhjubj)}(hhh]j)}(h*``const char *uuid`` UUID string to check h](j)}(h``const char *uuid``h]j)}(hjh]hconst char *uuid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNhjubj)}(hhh]h)}(hUUID string to checkh]hUUID string to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKPhjubj)}(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:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhj2ubj)}(hhh]h)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKQhjEubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjDhKQhj/ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKShjubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKUhjubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init (C function) c.ipc_inithNtauh1hhjhhhNhNubh)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKQubjg)}(hipc_inith]jm)}(hipc_inith]hipc_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKQubj)}(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&]jjuh1jhjhhhjhKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKQhjhhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjsubj)}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjsubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhjsubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init_ids (C function)c.ipc_init_idshNtauh1hhjhhhNhNubh)}(hhh](j)}(h'void ipc_init_ids (struct ipc_ids *ids)h]j)}(h&void ipc_init_ids(struct ipc_ids *ids)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hKmubjg)}(h ipc_init_idsh]jm)}(h ipc_init_idsh]h ipc_init_ids}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.ipc_init_idsasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hidsh]hids}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hKmhjhhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set **Description** Set up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKqhjubj)}(hhh]j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj(h]hstruct ipc_ids *ids}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKnhj"ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKnhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKnhjubah}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphjubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hipc_init_proc_interfaceh]jm)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j)}(hconst char *pathh](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)}(hpathh]hpath}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *headerh](j)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj )}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hheaderh]hheader}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint idsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hidsh]hids}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*show)(struct seq_file*, void*)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(h(h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hshowh]hshow}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h)h]h)}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hj' hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjA hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjR hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjT modnameN classnameNjI jL )}jO ]jR )}jE jsbc.ipc_init_proc_interfaceasbuh1hhjubj)}(hjh]h*}(hjr hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h,h]h,}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]h)}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hDcreate a proc interface for sysipc types using a seq_file interface.h]hDcreate a proc interface for sysipc types using a seq_file interface.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(h**Parameters** ``const char *path`` Path in procfs ``const char *header`` Banner to be printed at the beginning of the file. ``int ids`` ipc id table to iterate. ``int (*show)(struct seq_file *, void *)`` show routine.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj ubj)}(hhh](j)}(h$``const char *path`` Path in procfs h](j)}(h``const char *path``h]j)}(hj !h]hconst char *path}(hj"!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj!ubj)}(hhh]h)}(hPath in procfsh]hPath in procfs}(hj9!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5!hKhj6!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj5!hKhj!ubj)}(hJ``const char *header`` Banner to be printed at the beginning of the file. h](j)}(h``const char *header``h]j)}(hjY!h]hconst char *header}(hj[!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjS!ubj)}(hhh]h)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hjr!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn!hKhjo!ubah}(h]h ]h"]h$]h&]uh1jhjS!ubeh}(h]h ]h"]h$]h&]uh1jhjn!hKhj!ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hj!h]hint ids}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj!ubj)}(hhh]h)}(hipc id table to iterate.h]hipc id table to iterate.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhj!ubj)}(h8``int (*show)(struct seq_file *, void *)`` show routine.h](j)}(h*``int (*show)(struct seq_file *, void *)``h]j)}(hj!h]h&int (*show)(struct seq_file *, void *)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj!ubj)}(hhh]h)}(h show routine.h]h show routine.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhj!ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_findkey (C function) c.ipc_findkeyhNtauh1hhjhhhNhNubh)}(hhh](j)}(hCstruct kern_ipc_perm * ipc_findkey (struct ipc_ids *ids, key_t key)h]j)}(hAstruct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key)h](j)}(hj6}h]hstruct}(hj%"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!"hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj)}(h h]h }(hj3"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!"hhhj2"hKubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjD"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjA"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjF"modnameN classnameNjI jL )}jO ]jR )}jE ipc_findkeysb c.ipc_findkeyasbuh1hhj!"hhhj2"hKubj)}(h h]h }(hje"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!"hhhj2"hKubj)}(hjh]h*}(hjs"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!"hhhj2"hKubjg)}(h ipc_findkeyh]jm)}(hjb"h]h ipc_findkey}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!"hhhj2"hKubj)}(h (struct ipc_ids *ids, key_t key)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]j`" c.ipc_findkeyasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hidsh]hids}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h key_t keyh](h)}(hhh]jm)}(hkey_th]hkey_t}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]j`" c.ipc_findkeyasbuh1hhj #ubj)}(h h]h }(hj0#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj #ubjm)}(hkeyh]hkey}(hj>#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj #ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhj!"hhhj2"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj2"hKubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj2"hKhj"hhubj)}(hhh]h)}(h#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hjh#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhje#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj2"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``key_t key`` key to find **Description** Returns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structure Called with writer ipc_ids.rwsem held.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj#h]hstruct ipc_ids *ids}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hKhj#ubj)}(h``key_t key`` key to find h](j)}(h ``key_t key``h]j)}(hj#h]h key_t key}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubj)}(hhh]h)}(h key to findh]h key to find}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hKhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubh)}(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}(hj3$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjB$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_addid (C function) c.ipc_addidhNtauh1hhjhhhNhNubh)}(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}(hjq$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjm$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&]uh1jhjm$hhhj$hMubjg)}(h ipc_addidh]jm)}(h ipc_addidh]h ipc_addid}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjm$hhhj$hMubj)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$modnameN classnameNjI jL )}jO ]jR )}jE j$sb c.ipc_addidasbuh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hidsh]hids}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct kern_ipc_perm *newh](j)}(hj6}h]hstruct}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj-%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj>%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@%modnameN classnameNjI jL )}jO ]j$ c.ipc_addidasbuh1hhj%ubj)}(h h]h }(hj\%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hnewh]hnew}(hjw%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h int limith](j )}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubjm)}(hlimith]hlimit}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjm$hhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhji$hhhj$hMubah}(h]jd$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhjf$hhubj)}(hhh]h)}(hadd an ipc identifierh]hadd an ipc identifier}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjf$hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhjhNhNubj)}(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}(hj0&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)}(hjP&h]hstruct kern_ipc_perm *new}(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.chM hjJ&ubj)}(hhh]h)}(hnew ipc permission seth]hnew ipc permission set}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje&hM hjf&ubah}(h]h ]h"]h$]h&]uh1jhjJ&ubeh}(h]h ]h"]h$]h&]uh1jhje&hM hj&ubj)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hj&h]h int limit}(hj&hhhNhNubah}(h]h ]h"]h$]h&]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)}(h limit for the number of used idsh]h limit for the number of used ids}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM hj&ubah}(h]h ]h"]h$]h&]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&]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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_new (C function) c.ipcget_newhNtauh1hhjhhhNhNubh)}(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 }(hj6'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#'hhhj5'hMJubjg)}(h ipcget_newh]jm)}(h ipcget_newh]h ipcget_new}(hjH'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjD'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#'hhhj5'hMJubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj6}h]hstruct}(hjd'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`'ubj)}(h h]h }(hjq'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`'ubh)}(hhh]jm)}(h 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 jJ'sb 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)}(hnsh]hns}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\'ubj)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]j' c.ipcget_newasbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(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}(hjF(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB(ubj)}(h h]h }(hjS(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB(ubj)}(hj6}h]hstruct}(hja(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB(ubj)}(h h]h }(hjn(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB(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.ipcget_newasbuh1hhjB(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)}(hopsh]hops}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\'ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h 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.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)}(hparamsh]hparams}(hj()hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\'ubeh}(h]h ]h"]h$]h&]jjuh1jhj#'hhhj5'hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj5'hMJubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj5'hMJhj'hhubj)}(hhh]h)}(hcreate a new ipc objecth]hcreate a new ipc object}(hjR)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhjO)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj5'hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj)jjj)jjjuh1hhhhjhNhNubj)}(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)}(hjt)h]h Parameters}(hjv)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr)ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjn)ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj)h]hstruct ipc_namespace *ns}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMKhj)ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(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+``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.chMLhj)ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMLhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMLhj)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*hMMhj)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.chMNhj8*ubj)}(hhh]h)}(hits parametersh]hits parameters}(hjW*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS*hMNhjT*ubah}(h]h ]h"]h$]h&]uh1jhj8*ubeh}(h]h ]h"]h$]h&]uh1jhjS*hMNhj)ubeh}(h]h ]h"]h$]h&]uh1jhjn)ubh)}(h**Description**h]j)}(hjy*h]h Description}(hj{*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw*ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMPhjn)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.chMOhjn)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_check_perms (C function)c.ipc_check_permshNtauh1hhjhhhNhNubh)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj*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&]jjuh1jfhj*hhhj*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)}(hj6}h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h 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 }(hj9+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjG+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hnsh]hns}(hjT+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjm+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji+ubj)}(h h]h }(hjz+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji+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 ]j5+c.ipc_check_permsasbuh1hhji+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)}(hipcph]hipcp}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji+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)}(hj6}h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]j5+c.ipc_check_permsasbuh1hhj+ubj)}(h h]h }(hj4,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjB,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hopsh]hops}(hjO,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hjh,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd,ubj)}(h h]h }(hju,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd,ubh)}(hhh]jm)}(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 ]j5+c.ipc_check_permsasbuh1hhjd,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd,ubjm)}(hparamsh]hparams}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd,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)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hj,hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubj)}(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)}(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.chMchj-ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj*-h]hstruct ipc_namespace *ns}(hj,-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(-ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM`hj$-ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjC-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)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjc-h]hstruct kern_ipc_perm *ipcp}(hje-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja-ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMahj]-ubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hj|-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx-hMahjy-ubah}(h]h ]h"]h$]h&]uh1jhj]-ubeh}(h]h ]h"]h$]h&]uh1jhjx-hMahj!-ubj)}(hB``const struct ipc_ops *ops`` the actual security 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.chMbhj-ubj)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMbhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMbhj!-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.chMchj-ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMchj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMchj!-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.chMehj-ubh)}(hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.h]hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.}(hj&.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhj-ubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj5.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhj-ubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hjD.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_public (C function)c.ipcget_publichNtauh1hhjhhhNhNubh)}(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}(hjs.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo.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&]uh1jhjo.hhhj.hMubjg)}(h ipcget_publich]jm)}(h ipcget_publich]h ipcget_public}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjo.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)}(hj6}h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(h 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.ipcget_publicasbuh1hhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hnsh]hns}(hj /hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj"/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj//hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj@/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB/modnameN classnameNjI jL )}jO ]j.c.ipcget_publicasbuh1hhj/ubj)}(h h]h }(hj^/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hjl/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hidsh]hids}(hjy/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)}(hj6}h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hipc_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.ipcget_publicasbuh1hhj/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}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj*0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj;0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj80ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=0modnameN classnameNjI jL )}jO ]j.c.ipcget_publicasbuh1hhj0ubj)}(h h]h }(hjY0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hjg0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hparamsh]hparams}(hjt0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhjo.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjk.hhhj.hMubah}(h]jf.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hMhjh.hhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjh.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjhNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj0h]hstruct ipc_namespace *ns}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj1h]hstruct ipc_ids *ids}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj1ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj11hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-1hMhj.1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj-1hMhj0ubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjQ1h]hconst struct ipc_ops *ops}(hjS1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjK1ubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf1hMhjg1ubah}(h]h ]h"]h$]h&]uh1jhjK1ubeh}(h]h ]h"]h$]h&]uh1jhjf1hMhj0ubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj1h]hstruct ipc_params *params}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj1ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj1hhhNhNubah}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0ubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhjhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj(2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj'2hMubjg)}(hipc_kht_removeh]jm)}(hipc_kht_removeh]hipc_kht_remove}(hj:2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj62ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj'2hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjV2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR2ubj)}(h h]h }(hjc2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR2ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjt2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjv2modnameN classnameNjI jL )}jO ]jR )}jE j<2sbc.ipc_kht_removeasbuh1hhjR2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR2ubjm)}(hidsh]hids}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN2ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]j2c.ipc_kht_removeasbuh1hhj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hipcph]hipcp}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN2ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj'2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj'2hMubah}(h]j 2ah ](jjeh"]h$]h&]jj)jhuh1hhj'2hMhj2hhubj)}(hhh]h)}(h$remove an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(hjI3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjF3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj'2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjja3jja3jjjuh1hhhhjhNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjk3h]h Parameters}(hjm3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji3ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhje3ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj3h]hstruct ipc_ids *ids}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj3ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj3h]hstruct kern_ipc_perm *ipcp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj3ubj)}(hhh]h)}(h/ipc perm structure containing the key to removeh]h/ipc perm structure containing the key to remove}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhje3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhje3ubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhje3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhjhhhNhNubh)}(hhh](j)}(h6int ipc_search_maxidx (struct ipc_ids *ids, int limit)h]j)}(h5int ipc_search_maxidx(struct ipc_ids *ids, int limit)h](j )}(hinth]hint}(hjC4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?4hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjR4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?4hhhjQ4hMubjg)}(hipc_search_maxidxh]jm)}(hipc_search_maxidxh]hipc_search_maxidx}(hjd4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?4hhhjQ4hMubj)}(h (struct ipc_ids *ids, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|4ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jf4sbc.ipc_search_maxidxasbuh1hhj|4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubjm)}(hidsh]hids}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx4ubj)}(h int limith](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hlimith]hlimit}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx4ubeh}(h]h ]h"]h$]h&]jjuh1jhj?4hhhjQ4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;4hhhjQ4hMubah}(h]j64ah ](jjeh"]h$]h&]jj)jhuh1hhjQ4hMhj84hhubj)}(hhh]h)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(hj85hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj55hhubah}(h]h ]h"]h$]h&]uh1jhj84hhhjQ4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP5jjP5jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int limit`` known upper limit for highest assigned index **Description** The function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned. ipc_ids.rwsem needs to be held by the caller.h](h)}(h**Parameters**h]j)}(hjZ5h]h Parameters}(hj\5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX5ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjT5ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjy5h]hstruct ipc_ids *ids}(hj{5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjs5ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjs5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjp5ubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hj5h]h int limit}(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.chMhj5ubj)}(hhh]h)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjp5ubeh}(h]h ]h"]h$]h&]uh1jhjT5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjT5ubh)}(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 }(hj6hhhNhNubj)}(h**ids**h]hids}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh. 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjT5ubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hj$6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjT5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_rmid (C function) c.ipc_rmidhNtauh1hhjhhhNhNubh)}(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}(hjS6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO6hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjb6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO6hhhja6hMubjg)}(hipc_rmidh]jm)}(hipc_rmidh]hipc_rmid}(hjt6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjO6hhhja6hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE jv6sb c.ipc_rmidasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hidsh]hids}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj 7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"7modnameN classnameNjI jL )}jO ]j6 c.ipc_rmidasbuh1hhj6ubj)}(h h]h }(hj>7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjL7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hipcph]hipcp}(hjY7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjO6hhhja6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK6hhhja6hMubah}(h]jF6ah ](jjeh"]h$]h&]jj)jhuh1hhja6hMhjH6hhubj)}(hhh]h)}(hremove an ipc identifierh]hremove an ipc identifier}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjH6hhhja6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjhNhNubj)}(hX(**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj7h]hstruct ipc_ids *ids}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj7h]hstruct kern_ipc_perm *ipcp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7ubj)}(hhh]h)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier to remove}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hj88h]h Description}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj68ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7ubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjN8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ipc_set_key_private (C function)c.ipc_set_key_privatehNtauh1hhjhhhNhNubh)}(hhh](j)}(hJvoid ipc_set_key_private (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]j)}(hIvoid ipc_set_key_private(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hj}8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjy8hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy8hhhj8hMubjg)}(hipc_set_key_privateh]jm)}(hipc_set_key_privateh]hipc_set_key_private}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjy8hhhj8hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jR )}jE j8sbc.ipc_set_key_privateasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hidsh]hids}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hj,9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(9ubj)}(h h]h }(hj99hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(9ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjJ9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjL9modnameN classnameNjI jL )}jO ]j8c.ipc_set_key_privateasbuh1hhj(9ubj)}(h h]h }(hjh9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(9ubj)}(hjh]h*}(hjv9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(9ubjm)}(hipcph]hipcp}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjy8hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhju8hhhj8hMubah}(h]jp8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhjr8hhubj)}(hhh]h)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjr8hhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjhNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj9ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj9h]hstruct ipc_ids *ids}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj9ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj9ubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj':h]hstruct kern_ipc_perm *ipcp}(hj):hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%:ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj!:ubj)}(hhh]h)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hj@:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<:hMhj=:ubah}(h]h ]h"]h$]h&]uh1jhj!:ubeh}(h]h ]h"]h$]h&]uh1jhj<:hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hjb:h]h Description}(hjd:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj9ubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjx:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcperms (C function) c.ipcpermshNtauh1hhjhhhNhNubh)}(hhh](j)}(hOint ipcperms (struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h]j)}(hNint ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j )}(hinth]hint}(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)}(hipcpermsh]jm)}(hipcpermsh]hipcperms}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMubj)}(hB(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct ipc_namespace *nsh](j)}(hj6}h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(h 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:sb c.ipcpermsasbuh1hhj:ubj)}(h h]h }(hj";hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hj0;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)}(hj6}h]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 kern_ipc_permh]h kern_ipc_perm}(hjt;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjv;modnameN classnameNjI jL )}jO ]j; c.ipcpermsasbuh1hhjR;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)}(hipcph]hipcp}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h short flagh](j )}(hshorth]hshort}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hflagh]hflag}(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)}(hcheck ipc permissionsh]hcheck ipc permissions}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj <hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$<jj$<jjjuh1hhhhjhNhNubj)}(hXH**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``short flag`` desired permission set **Description** Check user, group, other permissions for access to ipc resources. return 0 if allowed **flag** will most probably be 0 or ``S_...UGO`` from h](h)}(h**Parameters**h]j)}(hj.<h]h Parameters}(hj0<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,<ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj(<ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjM<h]hstruct ipc_namespace *ns}(hjO<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK<ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjG<ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjf<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb<hM hjc<ubah}(h]h ]h"]h$]h&]uh1jhjG<ubeh}(h]h ]h"]h$]h&]uh1jhjb<hM hjD<ubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj<h]hstruct kern_ipc_perm *ipcp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hj<ubj)}(hhh]h)}(hipc permission seth]hipc 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!hjD<ubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hj<h]h short flag}(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)}(hdesired permission seth]hdesired 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"hjD<ubeh}(h]h ]h"]h$]h&]uh1jhj(<ubh)}(h**Description**h]j)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM$hj(<ubh)}(hUCheck user, group, other permissions for access to ipc resources. return 0 if allowedh]hUCheck user, group, other permissions for access to ipc resources. return 0 if allowed}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj(<ubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh will most probably be 0 or }(hj=hhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh from }(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hj(<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhjhhhNhNubh)}(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}(hjn=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj=hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj)}(h h]h }(hj}=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj=hhhj|=hMDubjg)}(hkernel_to_ipc64_permh]jm)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjj=hhhj|=hMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE j=sbc.kernel_to_ipc64_permasbuh1hhj=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)}(hinh]hin}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hstruct ipc64_perm *outh](j)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj*>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hj;>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=>modnameN classnameNjI jL )}jO ]j=c.kernel_to_ipc64_permasbuh1hhj>ubj)}(h h]h }(hjY>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjg>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(houth]hout}(hjt>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjj=hhhj|=hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf=hhhj|=hMDubah}(h]ja=ah ](jjeh"]h$]h&]jj)jhuh1hhj|=hMDhjc=hhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhj>hhubah}(h]h ]h"]h$]h&]uh1jhjc=hhhj|=hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(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)}(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.chMHhj>ubj)}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hj>h]hstruct kern_ipc_perm *in}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMEhj>ubj)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(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)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hj?h]hstruct ipc64_perm *out}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMFhj?ubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj1?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-?hMFhj.?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj-?hMFhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hjS?h]h Description}(hjU?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ?ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhj>ubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hji?hhhNhNubj)}(h**in**h]hin}(hjq?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji?ubhD into a set of permissions descriptions for returning to userspace (}(hji?hhhNhNubj)}(h**out**h]hout}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji?ubh).}(hji?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhjhhhNhNubh)}(hhh](j)}(hIvoid ipc64_perm_to_ipc_perm (struct ipc64_perm *in, struct ipc_perm *out)h]j)}(hHvoid ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhj?hMWubjg)}(hipc64_perm_to_ipc_permh]jm)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhj?hMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h 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.ipc64_perm_to_ipc_permasbuh1hhj?ubj)}(h h]h }(hj7@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hjE@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hinh]hin}(hjR@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct ipc_perm *outh](j)}(hj6}h]hstruct}(hjk@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg@ubj)}(h h]h }(hjx@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg@ubh)}(hhh]jm)}(hipc_permh]hipc_perm}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]j3@c.ipc64_perm_to_ipc_permasbuh1hhjg@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)}(houth]hout}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hMWubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMWhj?hhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjAubj)}(hhh](j)}(h4``struct ipc64_perm *in`` new style ipc permissions h](j)}(h``struct ipc64_perm *in``h]j)}(hj-Ah]hstruct ipc64_perm *in}(hj/AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Aubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMXhj'Aubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjFAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBAhMXhjCAubah}(h]h ]h"]h$]h&]uh1jhj'Aubeh}(h]h ]h"]h$]h&]uh1jhjBAhMXhj$Aubj)}(h3``struct ipc_perm *out`` old style ipc permissions h](j)}(h``struct ipc_perm *out``h]j)}(hjfAh]hstruct ipc_perm *out}(hjhAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhj`Aubj)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{AhMYhj|Aubah}(h]h ]h"]h$]h&]uh1jhj`Aubeh}(h]h ]h"]h$]h&]uh1jhj{AhMYhj$Aubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjAubh)}(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 }(hjAhhhNhNubj)}(h**in**h]hin}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh3 into a compatibility object and store it into the }(hjAhhhNhNubj)}(h**out**h]hout}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh pointer.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMZhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhjhhhNhNubh)}(hhh](j)}(hJstruct kern_ipc_perm * ipc_obtain_object_idr (struct ipc_ids *ids, int id)h]j)}(hHstruct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)h](j)}(hj6}h]hstruct}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjBhMjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj)BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&Bubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+BmodnameN classnameNjI jL )}jO ]jR )}jE ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjBhhhjBhMjubj)}(h h]h }(hjJBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjBhMjubj)}(hjh]h*}(hjXBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMjubjg)}(hipc_obtain_object_idrh]jm)}(hjGBh]hipc_obtain_object_idr}(hjiBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjBhMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jEBc.ipc_obtain_object_idrasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hidsh]hids}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Bubj)}(hint idh](j )}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubjm)}(hidh]hid}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Bubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhMjubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjBhMjhjAhhubj)}(hhh]h)}(hCLook for an id in the ipc ids idr and return associated ipc object.h]hCLook for an id in the ipc ids idr and return associated ipc object.}(hj:ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhj7Chhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjBhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRCjjRCjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](h)}(h**Parameters**h]j)}(hj\Ch]h Parameters}(hj^ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhjVCubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj{Ch]hstruct ipc_ids *ids}(hj}ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyCubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMlhjuCubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMlhjCubah}(h]h ]h"]h$]h&]uh1jhjuCubeh}(h]h ]h"]h$]h&]uh1jhjChMlhjrCubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjCh]hint id}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMmhjCubj)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMmhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMmhjrCubeh}(h]h ]h"]h$]h&]uh1jhjVCubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMohjVCubh)}(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 }(hjDhhhNhNubj)}(h*not*h]hnot}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh locked on exit.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhjVCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhjhhhNhNubh)}(hhh](j)}(hLstruct kern_ipc_perm * ipc_obtain_object_check (struct ipc_ids *ids, int id)h]j)}(hJstruct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id)h](j)}(hj6}h]hstruct}(hjFDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBDhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjTDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBDhhhjSDhMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjeDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgDmodnameN classnameNjI jL )}jO ]jR )}jE ipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhjBDhhhjSDhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBDhhhjSDhMubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBDhhhjSDhMubjg)}(hipc_obtain_object_checkh]jm)}(hjDh]hipc_obtain_object_check}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBDhhhjSDhMubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jDc.ipc_obtain_object_checkasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hj EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hidsh]hids}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hint idh](j )}(hinth]hint}(hj0EhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,Eubj)}(h h]h }(hj>EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Eubjm)}(hidh]hid}(hjLEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjBDhhhjSDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>DhhhjSDhMubah}(h]j9Dah ](jjeh"]h$]h&]jj)jhuh1hhjSDhMhj;Dhhubj)}(hhh]h)}(hRSimilar to ipc_obtain_object_idr() but also checks the ipc object sequence number.h]hRSimilar to ipc_obtain_object_idr() but also checks the ipc object sequence number.}(hjvEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjsEhhubah}(h]h ]h"]h$]h&]uh1jhj;DhhhjSDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjEh]hstruct ipc_ids *ids}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.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)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjEh]hint id}(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 id to look forh]hipc id to look for}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hj+Fh]h Description}(hj-FhhhNhNubah}(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.chMhjEubh)}(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 }(hjAFhhhNhNubj)}(h*not*h]hnot}(hjIFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAFubh locked on exit.}(hjAFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget (C function)c.ipcgethNtauh1hhjhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~FhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~FhhhjFhMubjg)}(hipcgeth]jm)}(hipcgeth]hipcget}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~FhhhjFhMubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj6}h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.ipcgetasbuh1hhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hnsh]hns}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj1GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Gubj)}(h h]h }(hj>GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Gubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjOGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQGmodnameN classnameNjI jL )}jO ]jFc.ipcgetasbuh1hhj-Gubj)}(h h]h }(hjmGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Gubj)}(hjh]h*}(hj{GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Gubjm)}(hidsh]hids}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jFc.ipcgetasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hopsh]hops}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hj,HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Hubj)}(h h]h }(hj9HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(Hubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hjJHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLHmodnameN classnameNjI jL )}jO ]jFc.ipcgetasbuh1hhj(Hubj)}(h h]h }(hjhHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(Hubj)}(hjh]h*}(hjvHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Hubjm)}(hparamsh]hparams}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj~FhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzFhhhjFhMubah}(h]juFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjwFhhubj)}(hhh]h)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjwFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhjhNhNubj)}(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)}(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.chMhjHubj)}(hhh](j)}(h'``struct ipc_namespace *ns`` namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjHh]hstruct ipc_namespace *ns}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjHubj)}(hhh]h)}(h namespaceh]h namespace}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjHubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj'Ih]hstruct ipc_ids *ids}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Iubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj!Iubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjOh]hint extra_perm}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjOubj)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj PhMhj Pubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj PhMhjNubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hj1Ph]h Description}(hj3PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Pubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjNubh)}(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.}(hjGPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjNubj)}(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]PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYPubj)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]h)}(hjtPh]h>retrieves the ipc object with the given id in the given table.}(hjvPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjrPubah}(h]h ]h"]h$]h&]uh1jhjoPubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hjPh]hDperforms some audit and permission check, depending on the given cmd}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubah}(h]h ]h"]h$]h&]uh1jhjoPubj)}(hKreturns a pointer to the ipc object or otherwise, the corresponding error. h]h)}(hJreturns a pointer to the ipc object or otherwise, the corresponding error.h]hJreturns a pointer to the ipc object or otherwise, the corresponding error.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubah}(h]h ]h"]h$]h&]uh1jhjoPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhMhjlPubah}(h]h ]h"]h$]h&]uh1jhjYPubeh}(h]h ]h"]h$]h&]uh1jhjkPhMhjVPubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhjhhhNhNubh)}(hhh](j)}(h int ipc_parse_version (int *cmd)h]j)}(hint ipc_parse_version(int *cmd)h](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjQhMubjg)}(hipc_parse_versionh]jm)}(hipc_parse_versionh]hipc_parse_version}(hj#QhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjQhMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hj?QhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;Qubj)}(h h]h }(hjMQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Qubj)}(hjh]h*}(hj[QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Qubjm)}(hcmdh]hcmd}(hjhQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Qubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjQhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhjPhhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjhNhNubj)}(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)}(hjQh]h Parameters}(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.chMhjQubj)}(hhh]j)}(h ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjQh]hint *cmd}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjQubj)}(hhh]h)}(hpointer to commandh]hpointer to command}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjQubh)}(hReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](hCReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The }(hj$RhhhNhNubj)}(h**cmd**h]hcmd}(hj,RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$RubhQ value is turned from an encoding command and version into just the command code.}(hj$RhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhjhhhNhNubh)}(hhh](j)}(hJstruct kern_ipc_perm * sysvipc_find_ipc (struct ipc_ids *ids, loff_t *pos)h]j)}(hHstruct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t *pos)h](j)}(hj6}h]hstruct}(hjeRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaRhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjsRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaRhhhjrRhMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjaRhhhjrRhMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaRhhhjrRhMubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaRhhhjrRhMubjg)}(hsysvipc_find_ipch]jm)}(hjRh]hsysvipc_find_ipc}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjaRhhhjrRhMubj)}(h"(struct ipc_ids *ids, loff_t *pos)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jRc.sysvipc_find_ipcasbuh1hhjRubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hj)ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hidsh]hids}(hj6ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(h loff_t *posh](h)}(hhh]jm)}(hloff_th]hloff_t}(hjRShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTSmodnameN classnameNjI jL )}jO ]jRc.sysvipc_find_ipcasbuh1hhjKSubj)}(h h]h }(hjpShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKSubj)}(hjh]h*}(hj~ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKSubjm)}(hposh]hpos}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjaRhhhjrRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]RhhhjrRhMubah}(h]jXRah ](jjeh"]h$]h&]jj)jhuh1hhjrRhMhjZRhhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjZRhhhjrRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhjhNhNubj)}(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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjSh]hstruct ipc_ids *ids}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ThMhj Tubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhj ThMhjSubj)}(h"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hj/Th]h loff_t *pos}(hj1ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Tubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj)Tubj)}(hhh]h)}(hexpected positionh]hexpected position}(hjHThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDThMhjETubah}(h]h ]h"]h$]h&]uh1jhj)Tubeh}(h]h ]h"]h$]h&]uh1jhjDThMhjSubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjjTh]h Description}(hjlThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhTubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubh)}(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 }(hjThhhNhNubj)}(h**pos**h]hpos}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh+. If there is no ipc structure at position }(hjThhhNhNubj)}(h**pos**h]hpos}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjThhhNhNubj)}(h**pos**h]hpos}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjThhhNhNubj)}(h**pos**h]hpos}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh is not modified.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhjhhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]jg)}(hDECLARE_KFIFO_PTRh]jm)}(hj2Uh]hDECLARE_KFIFO_PTR}(hjreturns true if the fifo is empty using a spinlock for lockingh]h>returns true if the fifo is empty using a spinlock for locking}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj bubah}(h]h ]h"]h$]h&]uh1jhjbhKhjUhhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hj,bh]h Parameters}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*bubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj&bubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjKbh]hfifo}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjEbubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjdbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`bhMhjabubah}(h]h ]h"]h$]h&]uh1jhjEbubeh}(h]h ]h"]h$]h&]uh1jhj`bhMhjBbubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjbh]hlock}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj~bubj)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjbubah}(h]h ]h"]h$]h&]uh1jhj~bubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjBbubeh}(h]h ]h"]h$]h&]uh1jhj&bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjUhhhNhNubh)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jg)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jm)}(hjbh]h#kfifo_is_empty_spinlocked_noirqsave}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjcjjcjjjuh1hhhhjUhNhNubh)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j)}(hjch]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hjchhhNhNubah}(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.hhMhjUhhubj)}(h[returns true if the fifo is empty using a spinlock for locking, doesn't disable interrupts h]h)}(hZreturns true if the fifo is empty using a spinlock for locking, doesn't disable interruptsh]h\returns true if the fifo is empty using a spinlock for locking, doesn’t disable interrupts}(hj.chhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj*cubah}(h]h ]h"]h$]h&]uh1jhjghMGhjUhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjKgh]h Parameters}(hjMghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhjEgubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjjgh]hfifo}(hjlghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjdgubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhjgubah}(h]h ]h"]h$]h&]uh1jhjdgubeh}(h]h ]h"]h$]h&]uh1jhjghMMhjagubah}(h]h ]h"]h$]h&]uh1jhjEgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]jg)}(hkfifo_peek_lenh]jm)}(hjgh]hkfifo_peek_len}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghMMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghMMhjghhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjghhhjghMMubeh}(h]h ](jmacroeh"]h$]h&]jjjjgjjgjjjuh1hhhhjUhNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hjgh]hkfifo_peek_len (fifo)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjUhhubj)}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjhubah}(h]h ]h"]h$]h&]uh1jhj"hhMMhjUhhubj)}(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/hh]h Parameters}(hj1hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhj)hubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjNhh]hfifo}(hjPhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjHhubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjghhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchhMNhjdhubah}(h]h ]h"]h$]h&]uh1jhjHhubeh}(h]h ]h"]h$]h&]uh1jhjchhMNhjEhubah}(h]h ]h"]h$]h&]uh1jhj)hubh)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhj)hubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhj)hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc (C macro) c.kfifo_allochNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]jg)}(h kfifo_alloch]jm)}(hjhh]h kfifo_alloc}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhM^ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhM^hjhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1hhhhjUhNhNubh)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j)}(hjih]h"kfifo_alloc (fifo, size, gfp_mask)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjUhhubj)}(h(dynamically allocates a new fifo buffer h]h)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^hjiubah}(h]h ]h"]h$]h&]uh1jhj,ihM^hjUhhubj)}(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)}(hj9ih]h Parameters}(hj;ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7iubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhj3iubj)}(hhh](j)}(h``fifo`` pointer to the fifo h](j)}(h``fifo``h]j)}(hjXih]hfifo}(hjZihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjViubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM_hjRiubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjqihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmihM_hjniubah}(h]h ]h"]h$]h&]uh1jhjRiubeh}(h]h ]h"]h$]h&]uh1jhjmihM_hjOiubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hjih]hsize}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjiubj)}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM`hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM`hjOiubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjih]hgfp_mask}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMahjiubj)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMahjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMahjOiubeh}(h]h ]h"]h$]h&]uh1jhj3iubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMchj3iubh)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhj3iubh)}(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*jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhj3iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_free (C macro) c.kfifo_freehNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_freeh]j)}(h kfifo_freeh]jg)}(h kfifo_freeh]jm)}(hjSjh]h kfifo_free}(hj]jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhjQjhhhjpjhMuubah}(h]jLjah ](jjeh"]h$]h&]jj)jhuh1hhjpjhMuhjNjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNjhhhjpjhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1hhhhjUhNhNubh)}(h``kfifo_free (fifo)``h]j)}(hjjh]hkfifo_free (fifo)}(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.hhMwhjUhhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuhjjubah}(h]h ]h"]h$]h&]uh1jhjjhMuhjUhhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhjjubj)}(hhh]j)}(h``fifo`` the fifo to be freedh](j)}(h``fifo``h]j)}(hjjh]hfifo}(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.hhM{hjjubj)}(hhh]h)}(hthe fifo to be freedh]hthe fifo to be freed}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMvhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM{hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_init (C macro) c.kfifo_inithNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]jg)}(h kfifo_inith]jm)}(hj7kh]h kfifo_init}(hjAkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=kubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9khhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj5khhhjTkhMubah}(h]j0kah ](jjeh"]h$]h&]jj)jhuh1hhjTkhMhj2khhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj2khhhjTkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjmkjjmkjjjuh1hhhhjUhNhNubh)}(h#``kfifo_init (fifo, buffer, size)``h]j)}(hjskh]hkfifo_init (fifo, buffer, size)}(hjukhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkhMhjUhhubj)}(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)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubj)}(hhh](j)}(h'``fifo`` the fifo to assign the buffer 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.hhMhjkubj)}(hhh]h)}(hthe fifo to assign the bufferh]hthe fifo to assign the buffer}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(h.``buffer`` the preallocated buffer to be used h](j)}(h ``buffer``h]j)}(hjlh]hbuffer}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubj)}(hhh]h)}(h"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j)}(h``size``h]j)}(hj9lh]hsize}(hj;lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7lubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj3lubj)}(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}(hjRlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNlhMhjOlubah}(h]h ]h"]h$]h&]uh1jhj3lubeh}(h]h ]h"]h$]h&]uh1jhjNlhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjtlh]h Description}(hjvlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubh)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_put (C macro) c.kfifo_puthNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_puth]j)}(h kfifo_puth]jg)}(h kfifo_puth]jm)}(hjlh]h kfifo_put}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1hhhhjUhNhNubh)}(h``kfifo_put (fifo, val)``h]j)}(hjlh]hkfifo_put (fifo, val)}(hjmhhhNhNubah}(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.hhMhjUhhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjmubah}(h]h ]h"]h$]h&]uh1jhj&mhMhjUhhubj)}(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)}(hj3mh]h Parameters}(hj5mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1mubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj-mubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjRmh]hfifo}(hjTmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjLmubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjkmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgmhMhjhmubah}(h]h ]h"]h$]h&]uh1jhjLmubeh}(h]h ]h"]h$]h&]uh1jhjgmhMhjImubj)}(h``val`` the data to be added h](j)}(h``val``h]j)}(hjmh]hval}(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.hhMhjmubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjImubeh}(h]h ]h"]h$]h&]uh1jhj-mubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj-mubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj-mubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj-mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_get (C macro) c.kfifo_gethNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_geth]j)}(h kfifo_geth]jg)}(h kfifo_geth]jm)}(hjnh]h kfifo_get}(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.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhj1nhMubah}(h]j nah ](jjeh"]h$]h&]jj)jhuh1hhj1nhMhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhj1nhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjJnjjJnjjjuh1hhhhjUhNhNubh)}(h``kfifo_get (fifo, val)``h]j)}(hjPnh]hkfifo_get (fifo, val)}(hjRnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hjjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjfnubah}(h]h ]h"]h$]h&]uh1jhjxnhMhjUhhubj)}(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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjnh]hfifo}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjnubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hjnh]hval}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubj)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubh)}(hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hj.ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubh)}(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=ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek (C macro) c.kfifo_peekhNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_peekh]j)}(h kfifo_peekh]jg)}(h kfifo_peekh]jm)}(hjfoh]h kfifo_peek}(hjpohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjloubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjdohhhjohMubah}(h]j_oah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjaohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjaohhhjohMubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1hhhhjUhNhNubh)}(h``kfifo_peek (fifo, val)``h]j)}(hjoh]hkfifo_peek (fifo, val)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubah}(h]h ]h"]h$]h&]uh1jhjohMhjUhhubj)}(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)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjoh]hfifo}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhj phMhj pubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj phMhjoubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hj/ph]hval}(hj1phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-pubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj)pubj)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hjHphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDphMhjEpubah}(h]h ]h"]h$]h&]uh1jhj)pubeh}(h]h ]h"]h$]h&]uh1jhjDphMhjoubeh}(h]h ]h"]h$]h&!]uh1jhjoubh)}(h**Description**h]j)}(hjjph]h Description}(hjlphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in (C macro) c.kfifo_inhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_inh]j)}(hkfifo_inh]jg)}(hkfifo_inh]jm)}(hjph]hkfifo_in}(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.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjphMubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjUhNhNubh)}(h``kfifo_in (fifo, buf, n)``h]j)}(hjph]hkfifo_in (fifo, buf, n)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjUhhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj qubah}(h]h ]h"]h$]h&]uh1jhjqhMhjUhhubj)}(hXf**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added **Description** This macro copies the given buffer into the fifo and returns the number of copied elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hj)qh]h Parameters}(hj+qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'qubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj#qubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjHqh]hfifo}(hjJqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjBqubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjaqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]qhMhj^qubah}(h]h ]h"]h$]h&]uh1jhjBqubeh}(h]h ]h"]h$]h&]uh1jhj]qhMhj?qubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjqh]hbuf}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj{qubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM hjqubah}(h]h ]h"]h$]h&]uh1jhj{qubeh}(h]h ]h"]h$]h&]uh1jhjqhM hj?qubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjqh]hn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjqubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM hjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhM hj?qubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj#qubh)}(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 rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj#qubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj#qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]jg)}(hkfifo_in_spinlockedh]jm)}(hjCrh]hkfifo_in_spinlocked}(hjMrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjErhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjArhhhj`rhMubah}(h]jrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>rhhhj`rhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjyrjjyrjjjuh1hhhhjUhNhNubh)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j)}(hjrh]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}rubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjUhhubj)}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrhMhjUhhubj)}(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)}(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.hhM#hjrubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjrh]hfifo}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjrubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjrubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hj sh]hbuf}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjsubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hj%shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!shM!hj"subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj!shM!hjrubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjEsh]hn}(hjGshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hj?subj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hj^shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZshM"hj[subah}(h]h ]h"]h$]h&]uh1jhj?subeh}(h]h ]h"]h$]h&]uh1jhjZshM"hjrubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hj~sh]hlock}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|subah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM#hjxsubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM#hjsubah}(h]h ]h"]h$]h&]uh1jhjxsubeh}(h]h ]h"]h$]h&]uh1jhjshM#hjrubeh}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM%hjrubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]jg)}(hkfifo_in_spinlocked_noirqsaveh]jm)}(hjsh]hkfifo_in_spinlocked_noirqsave}(hjthhhNhNubah}(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.hhM3ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjthM3ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjthM3hjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjthM3ubeh}(h]h ](jmacroeh"]h$]h&]jjjj.tjj.tjjjuh1hhhhjUhNhNubh)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hj4th]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(hj6thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2tubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM5hjUhhubj)}(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}(hjNthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM3hjJtubah}(h]h ]h"]h$]h&]uh1jhj\thM3hjUhhubj)}(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)}(hjith]h Parameters}(hjkthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hjctubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjth]hfifo}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM5hjtubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM5hjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthM5hjtubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjth]hbuf}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM6hjtubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM6hjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthM6hjtubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjth]hn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hjtubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM7hjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhM7hjtubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hj3uh]hlock}(hj5uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1uubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hj-uubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjLuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHuhM8hjIuubah}(h]h ]h"]h$]h&]uh1jhj-uubeh}(h]h ]h"]h$]h&]uh1jhjHuhM8hjtubeh}(h]h ]h"]h$]h&]uh1jhjctubh)}(h**Description**h]j)}(hjnuh]h Description}(hjpuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjluubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjctubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjctubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out (C macro) c.kfifo_outhNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_outh]j)}(h kfifo_outh]jg)}(h kfifo_outh]jm)}(hjuh]h kfifo_out}(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.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjuhMKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMKhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjujjujjjuh1hhhhjUhNhNubh)}(h``kfifo_out (fifo, buf, n)``h]j)}(hjuh]hkfifo_out (fifo, buf, n)}(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.hhMMhjUhhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhjuubah}(h]h ]h"]h$]h&]uh1jhjvhMKhjUhhubj)}(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)}(hjvh]h Parameters}(hj vhhhNhNubah}(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.hhMOhjvubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj=vh]hfifo}(hj?vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;vubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLhj7vubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjVvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRvhMLhjSvubah}(h]h ]h"]h$]h&]uh1jhj7vubeh}(h]h ]h"]h$]h&]uh1jhjRvhMLhj4vubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjvvh]hbuf}(hjxvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjpvubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMMhjvubah}(h]h ]h"]h$]h&]uh1jhjpvubeh}(h]h ]h"]h$]h&]uh1jhjvhMMhj4vubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjvh]hn}(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.hhMNhjvubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMNhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMNhj4vubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjvubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjvubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMRhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]jg)}(hkfifo_out_spinlockedh]jm)}(hj8wh]hkfifo_out_spinlocked}(hjBwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>wubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:whhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMeubah}(h]h ]h"]h$]h&]jjjuh1jjjhj6whhhjUwhMeubah}(h]j1wah ](jjeh"]h$]h&]jj)jhuh1hhjUwhMehj3whhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3whhhjUwhMeubeh}(h]h ](jmacroeh"]h$]h&]jjjjnwjjnwjjjuh1hhhhjUhNhNubh)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j)}(hjtwh]h)kfifo_out_spinlocked (fifo, buf, n, lock)}(hjvwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjUhhubj)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMehjwubah}(h]h ]h"]h$]h&]uh1jhjwhMehjUhhubj)}(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)}(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.hhMihjwubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjwh]hfifo}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfhjwubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMfhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMfhjwubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjxh]hbuf}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjwubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMghjxubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjxhMghjwubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj:xh]hn}(hjzubah}(h]h ]h"]h$]h&]uh1jhj"zubeh}(h]h ]h"]h$]h&]uh1jhj=zhMhjtyubeh}(h]h ]h"]h$]h&]uh1jhjXyubh)}(h**Description**h]j)}(hjczh]h Description}(hjezhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjazubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjXyubh)}(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.}(hjyzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjXyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_from_userh]j)}(hkfifo_from_userh]jg)}(hkfifo_from_userh]jm)}(hjzh]hkfifo_from_user}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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&]jjjjzjjzjjjuh1hhhhjUhNhNubh)}(h-``kfifo_from_user (fifo, from, len, copied)``h]j)}(hjzh]h)kfifo_from_user (fifo, from, len, copied)}(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.hhMhjUhhubj)}(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}(hjzhhhNhNubah}(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&]uh1jhj{hMhjUhhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``from`` pointer to the data to be added ``len`` the length of the data to be added ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj {ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj2{h]hfifo}(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.hhMhj,{ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjK{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG{hMhjH{ubah}(h]h ]h"]h$]h&]uh1jhj,{ubeh}(h]h ]h"]h$]h&]uh1jhjG{hMhj){ubj)}(h)``from`` pointer to the data to be added h](j)}(h``from``h]j)}(hjk{h]hfrom}(hjm{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhje{ubj)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhje{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj){ubj)}(h+``len`` the length of the data to be added h](j)}(h``len``h]j)}(hj{h]hlen}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj){ubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hj{h]hcopied}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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}(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: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 }(hj.|hhhNhNubj)}(h**len**h]hlen}(hj6|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.|ubh bytes from the }(hj.|hhhNhNubj)}(h**from**h]hfrom}(hjH|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.|ubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hj.|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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.}(hja|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&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjUhhhNhNubh)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]jg)}(h kfifo_to_userh]jm)}(hj|h]h kfifo_to_user}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhj|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1hhhhjUhNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hj|h]h%kfifo_to_user (fifo, to, len, copied)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(h*copies data from the fifo into user space h]h)}(h)copies data from the fifo into user spaceh]h)copies data from the fifo into user space}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|hMhjUhhubj)}(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)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj|ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj}h]hfifo}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj}ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj3}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/}hMhj0}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj/}hMhj}ubj)}(h%``to`` where the data must be copied h](j)}(h``to``h]j)}(hjS}h]hto}(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:205: ./include/linux/kfifo.hhMhjM}ubj)}(hhh]h)}(hwhere the data must be copiedh]hwhere the data must be copied}(hjl}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh}hMhji}ubah}(h]h ]h"]h$]h&]uh1jhjM}ubeh}(h]h ]h"]h$]h&]uh1jhjh}hMhj}ubj)}(h+``len`` the size of the destination buffer h](j)}(h``len``h]j)}(hj}h]hlen}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj}ubj)}(hhh]h)}(h"the size of the destination bufferh]h"the size of the destination 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)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hj}h]hcopied}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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}(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:205: ./include/linux/kfifo.hhMhj|ubh)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hj~hhhNhNubj)}(h**len**h]hlen}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh bytes from the fifo into the }(hj~hhhNhNubj)}(h**to**h]hto}(hj0~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh buffer and returns -EFAULT/0.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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.}(hjI~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&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]jg)}(hkfifo_dma_in_prepare_mappedh]jm)}(hjr~h]hkfifo_dma_in_prepare_mapped}(hj|~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjt~hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjp~hhhj~hMubah}(h]jk~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhjm~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjm~hhhj~hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj~jj~jjjuh1hhhhjUhNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hj~h]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(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.hhMhjUhhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(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~hMhjUhhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj~ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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)}(hj;h]hsgl}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj5ubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj~ubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hjth]hnents}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubj)}(hhh]h)}(h*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&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjh]hdma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjhhhNhNubj)}(h**sgl**h]hsgl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj~ubh)}(heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.h]heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj~ubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjThhhNhNubah}(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&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]jg)}(hkfifo_dma_in_finishh]jm)}(hj}h]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&]jjjuh1jjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjUhNhNubh)}(h#``kfifo_dma_in_finish (fifo, len)``h]j)}(hjh]hkfifo_dma_in_finish (fifo, len)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(hfinish a DMA IN operation h]h)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(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&]uh1jhjhMhjUhhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes to received **Description** This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj h]hfifo}(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.hhMhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h$``len`` number of bytes to received h](j)}(h``len``h]j)}(hjFh]hlen}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj@ubj)}(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&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(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.hhMhjubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjUhhhNhNubh)}(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}(hjفhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjՁubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjсhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj́hhhjhMubah}(h]jȁah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjʁhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjʁhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjUhNhNubh)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUhhubj)}(h#setup a scatterlist for DMA output h]h)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj3hMhjUhhubj)}(hX_**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(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.hhMhj:ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj_h]hfifo}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjYubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hjтh]hnents}(hjӂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjςubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj˂ubj)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˂ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hj h]hlen}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjCh]hdma}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj=ubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hj\hhhNhNubj)}(h**sgl**h]hsgl}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj:ubh)}(hThis macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled.h](hubah}(h]h ]h"]h$]h&]uh1jhjPhM$hjUhhubj)}(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(hjWubj)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM%hjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjsubj)}(h$``len`` number of bytes transferred h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM&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&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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(hjWubh)}(h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.h]h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM'hjWubh)}(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*hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]jg)}(hkfifo_out_peekh]jm)}(hj>h]hkfifo_out_peek}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM4ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhj[hM4ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM4hj9hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj9hhhj[hM4ubeh}(h]h ](jmacroeh"]h$]h&]jjjjtjjtjjjuh1hhhhjUhNhNubh)}(h!``kfifo_out_peek (fifo, buf, n)``h]j)}(hjzh]hkfifo_out_peek (fifo, buf, n)}(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.hhM6hjUhhubj)}(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.hhM4hjubah}(h]h ]h"]h$]h&]uh1jhjhM4hjUhhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjubj)}(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.hhM5hjȅubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjȅubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjŅubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjh]hbuf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM6hjubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjŅubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj@h]hn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hj:ubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM7hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM7hjŅubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjubh)}(hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.h]hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]jg)}(hkfifo_out_linearh]jm)}(hjɆh]hkfifo_out_linear}(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.hhMNubah}(h]h ]h"]h$]h&]jjjuh1jjjhjdžhhhjhMNubah}(h]j†ah ](jjeh"]h$]h&]jj)jhuh1hhjhMNhjĆhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjĆhhhjhMNubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjUhNhNubh)}(h$``kfifo_out_linear (fifo, tail, n)``h]j)}(hjh]h kfifo_out_linear (fifo, tail, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjUhhubj)}(h(gets a tail of/offset to available data h]h)}(h'gets a tail of/offset to available datah]h'gets a tail of/offset to available data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjubah}(h]h ]h"]h$]h&]uh1jhj-hMNhjUhhubj)}(hXw**Parameters** ``fifo`` address of the fifo to be used ``tail`` pointer to an unsigned int to store the value of tail ``n`` max. number of elements to point at **Description** This macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMRhj4ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjYh]hfifo}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjSubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMOhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMOhjPubj)}(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.hhMPhjubj)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjPubj)}(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&]uh1jhjɇubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjŇubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjŇubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjPubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMShj4ubh)}(hXEThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned).h](hXThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (}(hjhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**tail**h]htail}(hj6hhhNhNubah}(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.hhMRhj4ubh)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMYhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjUhhhNhNubh)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]jg)}(hkfifo_out_linear_ptrh]jm)}(hjxh]hkfifo_out_linear_ptr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMlubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMlubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjhMlubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjUhNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hjh]h#kfifo_out_linear_ptr (fifo, ptr, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMnhjUhhubj)}(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.hhMlhjʈubah}(h]h ]h"]h$]h&]uh1jhj܈hMlhjUhhubj)}(hX~**Parameters** ``fifo`` address of the fifo to be used ``ptr`` pointer to data to store the pointer to tail ``n`` max. number of elements to point at **Description** Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMphjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMmhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h5``ptr`` pointer to data to store the pointer to tail h](j)}(h``ptr``h]j)}(hjAh]hptr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMnhj;ubj)}(hhh]h)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMnhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMnhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjzh]hn}(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.hhMohjtubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubeh}(h]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)}(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}(hjӉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˉubh with count returned).}(hjˉhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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.hhMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjThhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.h]hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_buf_full (C function)c.relay_buf_fullhNtauh1hhj1hhhNhNubh)}(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 hjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjihKubjg)}(hrelay_buf_fullh]jm)}(hrelay_buf_fullh]hrelay_buf_full}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjihKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j~sbc.relay_buf_fullasbuh1hhjubj)}(h h]h }(hj֊hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjihKubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihKhjPhhubj)}(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&]uh1jhjPhhhjihKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is full, 0 otherwise.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhj7ubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjVubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjSubah}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhj7ubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h)}(hjh]h-Returns 1 if the buffer is full, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_reset (C function) c.relay_resethNtauh1hhj1hhhNhNubh)}(hhh](j)}(h%void relay_reset (struct rchan *chan)h]j)}(h$void relay_reset(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM;ubjg)}(h relay_reseth]jm)}(h relay_reseth]h relay_reset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM;ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.relay_resetasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj݋hhhjhM;ubah}(h]j؋ah ](jjeh"]h$]h&]jj)jhuh1hhjhM;hjڋhhubj)}(hhh]h)}(hreset the channelh]hreset the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM;hjhhubah}(h]h ]h"]h$]h&]uh1jhjڋhhhjhM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(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)}(hjnjh]h Parameters}(hjɌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŌubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM?hjubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM<hjubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hj݌ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM>hjubj)}(hXThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.h]hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM=hj7ubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMAhj7ubeh}(h]h ]h"]h$]h&]uh1jhjIhM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_open (C function) c.relay_openhNtauh1hhj1hhhNhNubh)}(hhh](j)}(hstruct rchan * relay_open (const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h]j)}(hstruct rchan *relay_open(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhjhMubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_opensb c.relay_openasbuh1hhj{hhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhjhMubj)}(hjh]h*}(hj͍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMubjg)}(h relay_openh]jm)}(hjh]h relay_open}(hjލhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڍubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhMubj)}(h(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h](j)}(hconst char *base_filenameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(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)}(h base_filenameh]h base_filename}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hdentryh]hdentry}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]j c.relay_openasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subbuf_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 ]j c.relay_openasbuh1hhjŽubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŽubjm)}(h subbuf_sizeh]h subbuf_size}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t n_subbufsh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.relay_openasbuh1hhj ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h n_subbufsh]h n_subbufs}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hj6}h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(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_openasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hcbh]hcb}(hjȏhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *private_datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjݏubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݏubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݏubjm)}(h private_datah]h private_data}(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&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj)}(hhh]h)}(hcreate a new relay channelh]hcreate a new relay channel}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhj1hNhNubj)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjPubj)}(hhh](j)}(h;``const char *base_filename`` base name of files to create h](j)}(h``const char *base_filename``h]j)}(hjuh]hconst char *base_filename}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j)}(h``struct dentry *parent``h]j)}(hjh]hstruct dentry *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjǐhhhNhNubj)}(h``NULL``h]hNULL}(hjϐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǐubh for root directory or buffer}(hjǐhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjÐhMhjĐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÐhMhjlubj)}(h+``size_t subbuf_size`` size of sub-buffers h](j)}(h``size_t subbuf_size``h]j)}(hjh]hsize_t subbuf_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(hsize of sub-buffersh]hsize of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h+``size_t n_subbufs`` number of sub-buffers h](j)}(h``size_t n_subbufs``h]j)}(hj2h]hsize_t n_subbufs}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj,ubj)}(hhh]h)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjlubj)}(h?``const struct rchan_callbacks *cb`` client callback functions h](j)}(h$``const struct rchan_callbacks *cb``h]j)}(hjkh]h const struct rchan_callbacks *cb}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjeubj)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h)``void *private_data`` user-defined data h](j)}(h``void *private_data``h]j)}(hjh]hvoid *private_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(huser-defined datah]huser-defined data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjߑh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݑubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjPubj)}(hXReturns channel pointer if successful, ``NULL`` otherwise. Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](h)}(h:Returns channel pointer if successful, ``NULL`` otherwise.h](h'Returns channel pointer if successful, }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubh)}(hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be }(hjhhhNhNubj)}(h ``S_IRUSR``h]hS_IRUSR}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhj1hhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN 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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjђhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjΒubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjӒmodnameN classnameNjI jL )}jO ]jc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lengthh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlengthh]hlength}(hjRhhhNhNubah}(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&]jjjuh1jjjhjYhhhjhM"ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjhM"hjVhhubj)}(hhh]h)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"hjyhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjhM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(hX'**Parameters** ``struct rchan_buf *buf`` channel buffer ``size_t length`` size of current event **Description** Returns either the length passed in or 0 if full. Performs sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM&hjubj)}(hhh](j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM#hjubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(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(``size_t length`` size of current event h](j)}(h``size_t length``h]j)}(hjh]h size_t length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM$hjubj)}(hhh]h)}(hsize of current eventh]hsize of current event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM$hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM$hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(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)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hjGubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM'hjGubeh}(h]h ]h"]h$]h&]uh1jhjYhM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhj1hhhNhNubh)}(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.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMdubjg)}(hrelay_subbufs_consumedh]jm)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMdubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hj̔hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȔubj)}(h h]h }(hjٔhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȔubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.relay_subbufs_consumedasbuh1hhjȔubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȔubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȔubjm)}(hchanh]hchan}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȔubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjĔubj)}(hunsigned int cpuh](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hcpuh]hcpu}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjĔubj)}(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 ]jc.relay_subbufs_consumedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsubbufs_consumedh]hsubbufs_consumed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjĔubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjhhubj)}(hhh]h)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhjubj)}(hhh](j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hj)h]hstruct rchan *chan}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMehj#ubj)}(hhh]h)}(h the channelh]h the channel}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMehj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMehj ubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hjbh]hunsigned int cpu}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMfhj\ubj)}(hhh]h)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMfhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMfhj ubj)}(hP``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count h](j)}(h``size_t subbufs_consumed``h]j)}(hjh]hsize_t subbufs_consumed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMghjubj)}(hhh]h)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj֖h]h Description}(hjؖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԖubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMihjubj)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed. NOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h](h)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.h]hAdds to the channel buffer’s consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhjubh)}(hYNOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h]h_NOTE. Kernel clients don’t need to call this function if the channel mode is ‘overwrite’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMlhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_close (C function) c.relay_closehNtauh1hhj1hhhNhNubh)}(hhh](j)}(h%void relay_close (struct rchan *chan)h]j)}(h$void relay_close(struct rchan *chan)h](j )}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhjBhMubjg)}(h relay_closeh]jm)}(h relay_closeh]h relay_close}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jWsb c.relay_closeasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hchanh]hchan}(hjʗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhj)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)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj1hNhNubj)}(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)}(hj5h]hstruct rchan *chan}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj/ubj)}(hhh]h)}(h the channelh]h the channel}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,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&]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&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_flush (C function) c.relay_flushhNtauh1hhj1hhhNhNubh)}(hhh](j)}(h%void relay_flush (struct rchan *chan)h]j)}(h$void relay_flush(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hj͘hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj̘hMubjg)}(h relay_flushh]jm)}(h relay_flushh]h relay_flush}(hjߘhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۘubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj̘hMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.relay_flushasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hjThhhNhNubah}(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)}(hclose the channelh]hclose the channel}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̘hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel **Description** Flushes all channel buffers, i.e. forces buffer switch.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(h the channelh]h the channel}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h)}(hjh]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_mmap_buf (C function)c.relay_mmap_bufhNtauh1hhj1hhhNhNubh)}(hhh](j)}(hFint relay_mmap_buf (struct rchan_buf *buf, struct vm_area_struct *vma)h]j)}(hEint relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma)h](j )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjVhKKubjg)}(hrelay_mmap_bufh]jm)}(hrelay_mmap_bufh]hrelay_mmap_buf}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjVhKKubj)}(h3(struct rchan_buf *buf, struct vm_area_struct *vma)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jksbc.relay_mmap_bufasbuh1hhjubj)}(h h]h }(hjÚhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjњhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjޚhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hstruct vm_area_struct *vmah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_mmap_bufasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvmah]hvma}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhKKubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhKKhj=hhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hj}h]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.chKKhj{ubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKKhjuhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer ``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped **Description** Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKOhjubj)}(hhh](j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hj˛h]hstruct rchan_buf *buf}(hj͛hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɛubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKLhjśubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjśubeh}(h]h ]h"]h$]h&]uh1jhjhKLhj›ubj)}(hM``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKMhjubj)}(hhh]h)}(h-vm_area_struct describing memory to be mappedh]h-vm_area_struct describing memory to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhj›ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhjUubh)}(h-Caller should already have grabbed mmap_lock.h]h-Caller should already have grabbed mmap_lock.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKPhjUubeh}(h]h ]h"]h$]h&]uh1jhjghKNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhj1hhhNhNubh)}(hhh](j)}(hhMubjg)}(h __relay_reseth]jm)}(h __relay_reseth]h __relay_reset}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMubj)}(h*(struct rchan_buf *buf, unsigned int init)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.__relay_resetasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hbufh]hbuf}(hjƨhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned int inith](j )}(hunsignedh]hunsigned}(hjߨhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjۨubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۨubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjۨubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۨubjm)}(hinith]hinit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۨubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj%hhubj)}(hhh]h)}(hreset a channel bufferh]hreset a channel buffer}(hjAhhhNhNubah}(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&]jjjjYjjYjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the channel buffer ``unsigned int init`` 1 if this is a first-time initialization **Description** See relay_reset() for description of effect.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj]ubj)}(hhh](j)}(h-``struct rchan_buf *buf`` the channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj|ubj)}(hhh]h)}(hthe channel bufferh]hthe channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(h?``unsigned int init`` 1 if this is a first-time initialization h](j)}(h``unsigned int init``h]j)}(hjh]hunsigned int init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(h(1 if this is a first-time initializationh]h(1 if this is a first-time initialization}(hjԩhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЩhMhjѩubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЩhMhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(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)}(h,See relay_reset() for description of effect.h]h)}(hjh]h,See relay_reset() for description of effect.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_close_buf (C function)c.relay_close_bufhNtauh1hhj1hhhNhNubh)}(hhh](j)}(h,void relay_close_buf (struct rchan_buf *buf)h]j)}(h+void relay_close_buf(struct rchan_buf *buf)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(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 }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(hrelay_close_bufh]jm)}(hrelay_close_bufh]hrelay_close_buf}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.relay_close_bufasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjͪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hbufh]hbuf}(hjڪhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(hhh]h)}(hclose a channel bufferh]hclose a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(hX**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Marks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj ubj)}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjEh]hstruct rchan_buf *buf}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj?ubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj ubj)}(hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h]h)}(hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h]hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_stats (C function) c.relay_statshNtauh1hhj1hhhNhNubh)}(hhh](j)}(h2size_t relay_stats (struct rchan *chan, int flags)h]j)}(h1size_t relay_stats(struct rchan *chan, int flags)h](h)}(hhh]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_statssb c.relay_statsasbuh1hhj˫hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˫hhhjhMubjg)}(h relay_statsh]jm)}(hjh]h relay_stats}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj˫hhhjhMubj)}(h(struct rchan *chan, int flags)h](j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]j c.relay_statsasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hjxhhhNhNubah}(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&]jjuh1jhj˫hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjǫhhhjhMubah}(h]j«ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjīhhubj)}(hhh]h)}(hget channel buffer statisticsh]hget channel buffer statistics}(hj׬hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjԬhhubah}(h]h ]h"]h$]h&]uh1jhjīhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel ``int flags`` select particular information to get **Description** Returns the count of certain field that caller specifies.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh](j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(h the channelh]h the channel}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h3``int flags`` select particular information to get h](j)}(h ``int flags``h]j)}(hjQh]h int flags}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjKubj)}(hhh]h)}(h$select particular information to geth]h$select particular information to get}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(h9Returns the count of certain field that caller specifies.h]h)}(hjh]h9Returns the count of certain field that caller specifies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_file_open (C function)c.relay_file_openhNtauh1hhj1hhhNhNubh)}(hhh](j)}(h``struct vm_area_struct *vma`` the vma describing what to map h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hthe vma describing what to maph]hthe vma describing what to map}(hjбhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̱hMhjͱubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̱hMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjYubj)}(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}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_pollsbc.relay_file_pollasbuh1hhj<hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjdhMubjg)}(hrelay_file_pollh]jm)}(hjah]hrelay_file_poll}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjdhMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(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 }(hjβhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjܲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hpoll_table *waith](h)}(hhh]jm)}(h poll_tableh]h poll_table}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j_c.relay_file_pollasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjdhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhj5hhubj)}(hhh]h)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h}**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table **Description** Poll implemention.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh](j)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hthe fileh]hthe file}(hj³hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``poll_table *wait`` poll table h](j)}(h``poll_table *wait``h]j)}(hjh]hpoll_table *wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjܳubj)}(hhh]h)}(h poll tableh]h poll table}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hPoll implemention.h]h)}(hj5h]hPoll implemention.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj3ubah}(h]h ]h"]h$]h&]uh1jhjDhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_file_release (C function)c.relay_file_releasehNtauh1hhj1hhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjyhMubjg)}(hrelay_file_releaseh]jm)}(hrelay_file_releaseh]hrelay_file_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjyhMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjƴhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjôubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjȴmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file *filph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]jc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hjqhhhNhNubah}(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)}(hrelease file op for relay filesh]hrelease file op for relay files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file **Description** Decrements the channel refcount, as the filesystem is no longer using it.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjܵh]hstruct inode *inode}(hj޵hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڵubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjֵubj)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjֵubeh}(h]h ]h"]h$]h&]uh1jhjhMhjӵubj)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hthe fileh]hthe file}(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)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjfubah}(h]h ]h"]h$]h&]uh1jhjxhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhj1hhhNhNubh)}(hhh](j)}(hLsize_t relay_file_read_subbuf_avail (size_t read_pos, struct rchan_buf *buf)h]j)}(hKsize_t relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf *buf)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMqubj)}(h h]h }(hjĶhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjöhMqubjg)}(hrelay_file_read_subbuf_availh]jm)}(hjh]hrelay_file_read_subbuf_avail}(hjֶhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҶubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjöhMqubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjöhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjöhMqubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjöhMqhjhhubj)}(hhh]h)}(h$return bytes available in sub-bufferh]h$return bytes available in sub-buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjöhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҷjjҷjjjuh1hhhhj1hNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](h)}(h**Parameters**h]j)}(hjܷh]h Parameters}(hj޷hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڷubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMuhjַubj)}(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.chMrhjubj)}(hhh]h)}(hfile read positionh]hfile read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(h.``struct rchan_buf *buf`` relay channel bufferh](j)}(h``struct rchan_buf *buf``h]j)}(hj4h]hstruct rchan_buf *buf}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMthj.ubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMshjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMthjubeh}(h]h ]h"]h$]h&]uh1jhjַubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhj1hhhNhNubh)}(hhh](j)}(h8size_t relay_file_read_start_pos (struct rchan_buf *buf)h]j)}(h7size_t relay_file_read_start_pos(struct rchan_buf *buf)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_start_possbc.relay_file_read_start_posasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrelay_file_read_start_posh]jm)}(hjh]hrelay_file_read_start_pos}(hjŸhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܸubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjܸubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_read_start_posasbuh1hhjܸubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjܸubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܸubjm)}(hbufh]hbuf}(hj7hhhNhNubah}(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)}(h%find the first available byte to readh]h%find the first available byte to read}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer **Description** If the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj}ubj)}(hhh]j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]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.chMhj}ubj)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]h)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhj1hhhNhNubh)}(hhh](j)}(hUsize_t relay_file_read_end_pos (struct rchan_buf *buf, size_t read_pos, size_t count)h]j)}(hTsize_t relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_end_possbc.relay_file_read_end_posasbuh1hhj(hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhjPhMubjg)}(hrelay_file_read_end_posh]jm)}(hjMh]hrelay_file_read_end_pos}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhjPhMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(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 ]jKc.relay_file_read_end_posasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjȺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hbufh]hbuf}(hjպhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(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 ]jKc.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&]noemphjjuh1jhjvubj)}(h size_t counth](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 ]jKc.relay_file_read_end_posasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubjm)}(hcounth]hcount}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhjPhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhj!hhubj)}(hhh]h)}(hreturn the new read positionh]hreturn the new read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj1hNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer ``size_t read_pos`` file read position ``size_t count`` number of bytes to be readh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh](j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjлh]hstruct rchan_buf *buf}(hjһhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjλubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjʻubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjʻubeh}(h]h ]h"]h$]h&]uh1jhjhMhjǻubj)}(h'``size_t read_pos`` file read position h](j)}(h``size_t read_pos``h]j)}(hj h]hsize_t read_pos}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hfile read positionh]hfile read position}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjǻubj)}(h+``size_t count`` number of bytes to be readh](j)}(h``size_t count``h]j)}(hjBh]h size_t count}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj<ubj)}(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.chMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjǻubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1hhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjhhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__request_module (C function)c.__request_modulehNtauh1hhjhhhNhNubh)}(hhh](j)}(h6int __request_module (bool wait, const char *fmt, ...)h]j)}(h5int __request_module(bool wait, const char *fmt, ...)h](j )}(hinth]hint}(hjμhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjʼhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKtubj)}(h h]h }(hjݼhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʼhhhjܼhKtubjg)}(h__request_moduleh]jm)}(h__request_moduleh]h__request_module}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjʼhhhjܼhKtubj)}(h!(bool wait, const char *fmt, ...)h](j)}(h bool waith](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(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&]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)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjʼhhhjܼhKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjƼhhhjܼhKtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjܼhKthjühhubj)}(hhh]h)}(htry to load a kernel moduleh]htry to load a kernel module}(hjŽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKthj½hhubah}(h]h ]h"]h$]h&]uh1jhjühhhjܼhKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjݽjjݽjjjuh1hhhhjhNhNubj)}(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)}(hj?h]hconst char *fmt}(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.chKvhj9ubj)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKvhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKvhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjxh]h...}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKwhjrubj)}(hhh]h)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKyhjubh)}(hXlLoad a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from "modprobe" on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it.h]hXpLoad a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from “modprobe” on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it.}(hjɾhhhNhNubah}(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.}(hjؾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]kernel-module-auto-loadingah ]h"]kernel module auto-loadingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hModule debuggingh]hModule debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.h]hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubh)}(hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:h]hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubj)}(hXa) memory allocated with kernel_read_file_from_fd() b) module decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away. c) layout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]jG)}(hhh](j)}(h0memory allocated with kernel_read_file_from_fd()h]h)}(hj.h]h0memory allocated with kernel_read_file_from_fd()}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK#hj,ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]h)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK$hjDubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]h)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.h]hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hj]ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]jiH loweralphajkHhjlHj uh1jGhj%ubah}(h]h ]h"]h$]h&]uh1jhj=hK#hjhhubh)}(hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.h]hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK-hjhhubh)}(hX3Virtual memory space can be limited, for example on x86 virtual memory size defaults to 128 MiB. We should strive to limit and avoid wasting virtual memory allocations when possible. These module debugging statistics help to evaluate how much memory is being wasted on bootup due to module loading failures.h]hX3Virtual memory space can be limited, for example on x86 virtual memory size defaults to 128 MiB. We should strive to limit and avoid wasting virtual memory allocations when possible. These module debugging statistics help to evaluate how much memory is being wasted on bootup due to module loading failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK3hjhhubh)}(hyAll counters are designed to be incremental. Atomic counters are used so to remain simple and avoid delays and deadlocks.h]hyAll counters are designed to be incremental. Atomic counters are used so to remain simple and avoid delays and deadlocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK9hjhhubh)}(hhh](h)}(h4dup_failed_modules - tracks duplicate failed modulesh]h4dup_failed_modules - tracks duplicate failed modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX;Linked list of modules which failed to be loaded because an already existing module with the same name was already being processed or already loaded. The finit_module() system call incurs heavy virtual memory allocations. In the worst case an finit_module() system call can end up allocating virtual memory 3 times:h]hX;Linked list of modules which failed to be loaded because an already existing module with the same name was already being processed or already loaded. The finit_module() system call incurs heavy virtual memory allocations. In the worst case an finit_module() system call can end up allocating virtual memory 3 times:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK@hjhhubj)}(h1) kernel_read_file_from_fd() call uses vmalloc() 2) optional module decompression uses vmap() 3) layout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions h]jG)}(hhh](j)}(h.kernel_read_file_from_fd() call uses vmalloc()h]h)}(hjٿh]h.kernel_read_file_from_fd() call uses vmalloc()}(hjۿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKFhj׿ubah}(h]h ]h"]h$]h&]uh1jhjԿubj)}(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&]uh1jhjԿubj)}(hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions h]h)}(hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissionsh]hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKHhjubah}(h]h ]h"]h$]h&]uh1jhjԿubeh}(h]h ]h"]h$]h&]jiHjjHjkHhjlHj uh1jGhjпubah}(h]h ]h"]h$]h&]uh1jhjhKFhjhhubh)}(hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.h]hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKKhjhhubh)}(hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:h]hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKPhjhhubj)}(hXa) FAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation calls b) FAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]jG)}(hhh](j)}(hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation callsh]h)}(hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation callsh]hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation calls}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhjQubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]jiHj|jkHhjlHj uh1jGhjJubah}(h]h ]h"]h$]h&]uh1jhjchKVhjhhubh)}(hWe should strive to get this list to be as small as possible. If this list is not empty it is a reflection of possible work or optimizations possible either in-kernel or in userspace.h]hWe should strive to get this list to be as small as possible. If this list is not empty it is a reflection of possible work or optimizations possible either in-kernel or in userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK^hjhhubeh}(h]2dup-failed-modules-tracks-duplicate-failed-modulesah ]h"]4dup_failed_modules - tracks duplicate failed modulesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h"module statistics debugfs countersh]h"module statistics debugfs counters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:h]hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKghjhhubj)}(ht* **invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes** h]j)}(hhh]j)}(hl**invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes** h]h)}(hk**invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes**h](j)}(h**invalid_kread_bytes**h]hinvalid_kread_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**invalid_decompress_bytes**h]hinvalid_decompress_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }hjsbj)}(h**invalid_becoming_bytes**h]hinvalid_becoming_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }hjsbj)}(h**invalid_mod_bytes**h]hinvalid_mod_bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKjhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjhKjhjhhubh)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKohjhhubj)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. * modcount: how many modules we've loaded in our kernel life time * failed_kreads: how many modules failed due to failed kernel_read_file_from_fd() * failed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken. * failed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it. * failed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h](j)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. h](j)}(hhh](j)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]h)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]hVtotal_mod_size: total bytes ever used by all modules we’ve dealt with on this system}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhjLubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthjeubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]h)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKvhj~ubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]h)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKzhjubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: h]h)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:h](hinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our }(hjhhhNhNubj)}(h **modules**h]hmodules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our }(hjhhhNhNubh)}(h:c:type:`modules`h]j)}(hjh]hmodules}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jmodulesuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chK~hjubhX list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK~hjubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhj^hKrhjEubj)}(hX(* module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h]j)}(hhh](j)}(h,module_sig_check() - module signature checksh]h)}(hj h]h,module_sig_check() - module signature checks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5elf_validity_cache_copy() - some ELF validation issueh]h)}(hj%h]h5elf_validity_cache_copy() - some ELF validation issue}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj#ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hearly_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h](h)}(hearly_mod_check():h]hearly_mod_check():}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj;ubj)}(hhh](j)}(h blacklistingh]h)}(hjSh]h blacklisting}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjQubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h!failed to rewrite section headersh]h)}(hjkh]h!failed to rewrite section headers}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjiubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h version magich]h)}(hjh]h version magic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h(live patch requirements didn't check outh]h)}(hjh]h*live patch requirements didn’t check out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h1the module was detected as being already present h]h)}(h0the module was detected as being already presenth]h0the module was detected as being already present}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjbhKhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjEubj)}(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&]jjuh1jhjhKhjEubeh}(h]h ]h"]h$]h&]uh1jhj^hKrhjAubj)}(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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hj'h]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj=ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjVubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjoubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjAubeh}(h]h ]h"]h$]h&]uh1jhj^hKrhjhhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjhhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h:Refer to the files in kernel/module/ for more information.h]h:Refer to the files in kernel/module/ for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]inter-module-supportah ]h"]inter module supportah$]h&]uh1hhjhhhhhKubeh}(h]module-supportah ]h"]module supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHardware Interfacesh]hHardware Interfaces}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrequest_dma (C function) c.request_dmahNtauh1hhjhhhNhNubh)}(hhh](j)}(hhM ubh)}(hhh]jm)}(hresourceh]hresource}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE request_resource_conflictsbc.request_resource_conflictasbuh1hhj-hhhj>hM ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj>hM ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hM ubjg)}(hrequest_resource_conflicth]jm)}(hjnh]hrequest_resource_conflict}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj>hM ubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jlc.request_resource_conflictasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jlc.request_resource_conflictasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj>hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj>hM ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj>hM hj&hhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj>hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller **Description** Returns 0 for success, conflict resource on error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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 *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(h2Returns 0 for success, conflict resource on error.h]h2Returns 0 for success, conflict resource on error.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_next_iomem_res (C function)c.find_next_iomem_reshNtauh1hhjhhhNhNubh)}(hhh](j)}(hint find_next_iomem_res (resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h]j)}(hint find_next_iomem_res(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMDubjg)}(hfind_next_iomem_resh]jm)}(hfind_next_iomem_resh]hfind_next_iomem_res}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMDubj)}(hk(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](j)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.find_next_iomem_resasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t endh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jc.find_next_iomem_resasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hendh]hend}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *resh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jc.find_next_iomem_resasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hresh]hres}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjhhubj)}(hhh]h)}(hIFinds the lowest iomem resource that covers part of [**start**..**end**].h](h5Finds the lowest iomem resource that covers part of [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ..**end**].}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``resource_size_t start`` start address of the resource searched for ``resource_size_t end`` end address of same resource ``unsigned long flags`` flags which the resource must have ``unsigned long desc`` descriptor the resource must have ``struct resource *res`` return ptr, if resource found **Description** If a resource is found, returns 0 and *****res is overwritten with the part of the resource that's within [**start**..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters. The caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMHhjubj)}(hhh](j)}(hE``resource_size_t start`` start address of the resource searched for h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMKhjubj)}(hhh]h)}(h*start address of the resource searched forh]h*start address of the resource searched for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(h5``resource_size_t end`` end address of same resource h](j)}(h``resource_size_t end``h]j)}(hjh]hresource_size_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMLhjubj)}(hhh]h)}(hend address of same resourceh]hend address of same resource}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMLhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMLhjubj)}(h;``unsigned long flags`` flags which the resource must have h](j)}(h``unsigned long flags``h]j)}(hjMh]hunsigned long flags}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMMhjGubj)}(hhh]h)}(h"flags which the resource must haveh]h"flags which the resource must have}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMMhjubj)}(h9``unsigned long desc`` descriptor the resource must have h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMNhjubj)}(hhh]h)}(h!descriptor the resource must haveh]h!descriptor the resource must have}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h7``struct resource *res`` return ptr, if resource found h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMOhjubj)}(hhh]h)}(hreturn ptr, if resource foundh]hreturn ptr, if resource found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(h]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.chMQhjubh)}(hIf a resource is found, returns 0 and *****res is overwritten with the part of the resource that's within [**start**..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.h](h&If a resource is found, returns 0 and }(hjhhhNhNubj)}(hN*****res is overwritten with the part of the resource that's within [**start**h]hL***res is overwritten with the part of the resource that’s within [**start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMEhjubh)}(hcThe caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](hThe caller must specify }(hj1hhhNhNubj)}(h **start**h]hstart}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, }(hj1hhhNhNubj)}(h**end**h]hend}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, }hj1sbj)}(h **flags**h]hflags}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, and }(hj1hhhNhNubj)}(h**desc**h]hdesc}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh (which may be IORES_DESC_NONE).}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h reallocate_resource (C function)c.reallocate_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(hint reallocate_resource (struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h]j)}(hint reallocate_resource(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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)}(hreallocate_resourceh]jm)}(hreallocate_resourceh]hreallocate_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hn(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.reallocate_resourceasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *oldh](j)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(hresourceh]hresource}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jc.reallocate_resourceasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jc.reallocate_resourceasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(h constrainth]h constraint}(hjfhhhNhNubah}(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)}(hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.h]hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX-**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *old`` resource descriptor desired by caller ``resource_size_t newsize`` new size of the resource descriptor ``struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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)}(hj h]hstruct resource *old}(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%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(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)}(hjCh]hresource_size_t newsize}(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)}(h#new size of the resource descriptorh]h#new size of the resource descriptor}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(h```struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](j)}(h*``struct resource_constraint *constraint``h]j)}(hj|h]h&struct resource_constraint *constraint}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjvubj)}(hhh]h)}(h5the memory range and alignment constraints to be met.h]h5the memory range and alignment constraints to be met.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMKubh)}(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_resourceasbuh1hhjhhhjhMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMKubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMKubjg)}(hlookup_resourceh]jm)}(hjh]hlookup_resource}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMKubj)}(h.(struct resource *root, resource_size_t start)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(hresourceh]hresource}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jc.lookup_resourceasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(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&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjhhubj)}(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.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjhNhNubj)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMOhj5ubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjZh]hstruct resource *root}(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.chMLhjTubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMLhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMLhjQubj)}(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.chMMhjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMOhj5ubh)}(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.chMNhj5ubeh}(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)}(hj6}h]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 }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubh)}(hhh]jm)}(hresourceh]hresource}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE insert_resource_conflictsbc.insert_resource_conflictasbuh1hhjhhhj hMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubjg)}(hinsert_resource_conflicth]jm)}(hjPh]hinsert_resource_conflict}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jNc.insert_resource_conflictasbuh1hhjubj)}(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)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jNc.insert_resource_conflictasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h%Inserts resource in the resource treeh]h%Inserts resource in the resource tree}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXT**Parameters** ``struct resource *parent`` parent of the new resource ``struct resource *new`` new resource to insert **Description** Returns 0 on success, conflict resource if the resource can't be inserted. This function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource. This function is intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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&]uh1jhjhMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hJReturns 0 on success, conflict resource if the resource can't be inserted.h]hLReturns 0 on success, conflict resource if the resource can’t be inserted.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.h]hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hYThis function is intended for producers of resources, such as FW modules and bus drivers.h]hYThis function is intended for producers of resources, such as FW modules and bus drivers.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE resource_alignmentsbc.resource_alignmentasbuh1hhjhhhV/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)}(hresource_alignmenth]jm)}(hjh]hresource_alignment}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.resource_alignmentasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hresh]hres}(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)}(hcalculate resource's alignmenth]h calculate resource’s alignment}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *res`` resource pointer **Description** Returns alignment on success, 0 (invalid alignment) on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]j)}(h*``struct resource *res`` resource pointer h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(hresource pointerh]hresource pointer}(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:268: ./kernel/resource.chMhjubh)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMpubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj8hMpubjg)}(hrelease_mem_region_adjustableh]jm)}(hrelease_mem_region_adjustableh]hrelease_mem_region_adjustable}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj8hMpubj)}(h-(resource_size_t start, resource_size_t size)h](j)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE jMsbc.release_mem_region_adjustableasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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 ]jc.release_mem_region_adjustableasbuh1hhjubj)}(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&]jjuh1jhj&hhhj8hMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hMphjhhubj)}(hhh]h)}(h+release a previously reserved memory regionh]h+release a previously reserved memory region}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMphjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjhNhNubj)}(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. Existing children of the busy memory resource must be immutable in the request. **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, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMthj&ubj)}(hhh](j)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjKh]hresource_size_t start}(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.chMqhjEubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMqhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMqhjBubj)}(h.``resource_size_t size`` resource region size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMrhj~ubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjBubeh}(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:268: ./kernel/resource.chMthj&ubh)}(hXiThis 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. Existing children of the busy memory resource must be immutable in the request.h]hXiThis 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. Existing children of the busy memory resource must be immutable in the request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMshj&ubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMzhj&ubj)}(hhh](j)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]h)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.}(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)}(hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.h]h)}(hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.h]hWhen a busy memory resource gets split into two entries, the code assumes that all children remain in the lower address entry for simplicity. Enhance this logic when necessary.}(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{hj&ubeh}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjehMubjg)}(hmerge_system_ram_resourceh]jm)}(hmerge_system_ram_resourceh]hmerge_system_ram_resource}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjehMubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jzsbc.merge_system_ram_resourceasbuh1hhjubj)}(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&]jjuh1jhjShhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjehMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMhjLhhubj)}(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&]uh1jhjLhhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhjhNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj3ubj)}(hhh]j)}(h-``struct resource *res`` resource descriptor h](j)}(h``struct resource *res``h]j)}(hjXh]hstruct resource *res}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjRubj)}(hhh]h)}(hresource descriptorh]hresource descriptor}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj3ubh)}(hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don't have any children are considered. All mergeable resources must be immutable during the request.h]hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don’t have any children are considered. All mergeable resources must be immutable during the request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj3ubh)}(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.chMhj3ubj)}(hhh](j)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]h)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]h)}(hjh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhj3ubeh}(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}(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 }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj8hMubjg)}(hrequest_resourceh]jm)}(hrequest_resourceh]hrequest_resource}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj8hMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jMsbc.request_resourceasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller **Description** Returns 0 for success, negative error code on error.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hjvubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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 hjubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hjvubh)}(h4Returns 0 for success, negative error code on error.h]h4Returns 0 for success, negative error code on error.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM!hjvubeh}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhM/ubjg)}(hrelease_resourceh]jm)}(hrelease_resourceh]hrelease_resource}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhM/ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jwsbc.release_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhM/ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhM/hjIhhubj)}(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&]uh1jhjIhhhjbhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjhNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM3hj0ubj)}(hhh]j)}(h)``struct resource *old`` resource pointerh](j)}(h``struct resource *old``h]j)}(hjUh]hstruct resource *old}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjOubj)}(hhh]h)}(hresource pointerh]hresource pointer}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM5hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hwalk_iomem_res_desch]jm)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hn(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hflagsh]hflags}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.walk_iomem_res_descasbuh1hhjubj)}(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)}(hu64 endh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.walk_iomem_res_descasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hendh]hend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *argh](j )}(hvoidh]hvoid}(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)}(hargh]harg}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(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^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubj)}(hj h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.walk_iomem_res_descasbuh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hj h]h,}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hj h]h)}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hOWalks through iomem resources and calls func() with matching resource ranges. *h]hOWalks through iomem resources and calls func() with matching resource ranges. *}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXv**Parameters** ``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. ``unsigned long flags`` I/O resource flags ``u64 start`` start addr ``u64 end`` end addr ``void *arg`` function argument for the callback **func** ``int (*func)(struct resource *, void *)`` callback function that is called for each qualifying resource area **Description** All the memory ranges which overlap start,end and also match flags and desc are valid candidates. **NOTE** For a new descriptor search, define a new IORES_DESC in and set it in 'desc' of a target resource entry.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hDI/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check.h](h5I/O resource descriptor. Use IORES_DESC_NONE to skip }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh check.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``unsigned long flags`` I/O resource flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hI/O resource flagsh]hI/O resource flags}(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 start`` start addr h](j)}(h ``u64 start``h]j)}(hj-h]h u64 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.chMhj'ubj)}(hhh]h)}(h start addrh]h start addr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hjfh]hu64 end}(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)}(hend addrh]hend addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjh]h void *arg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjhhhNhNubj)}(h**func**h]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hn``int (*func)(struct resource *, void *)`` callback function that is called for each qualifying resource area h](j)}(h*``int (*func)(struct resource *, void *)``h]j)}(hjh]h&int (*func)(struct resource *, void *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hBcallback function that is called for each qualifying resource areah]hBcallback function that is called for each qualifying resource area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]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:271: ./kernel/resource.chMhjubh)}(haAll the memory ranges which overlap start,end and also match flags and desc are valid candidates.h]haAll the memory ranges which overlap start,end and also match flags and desc are valid candidates.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(h**NOTE**h]j)}(hjHh]hNOTE}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hyFor a new descriptor search, define a new IORES_DESC in and set it in 'desc' of a target resource entry.h]h}For a new descriptor search, define a new IORES_DESC in and set it in ‘desc’ of a target resource entry.}(hj^hhhNhNubah}(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](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMkubjg)}(hregion_intersectsh]jm)}(hregion_intersectsh]hregion_intersects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMkubj)}(hM(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](j)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.region_intersectsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.region_intersectsasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjChhhNhNubah}(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 hjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj )}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMkhjhhubj)}(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.chMkhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjhNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMohj+ubj)}(hhh](j)}(h/``resource_size_t start`` region start address h](j)}(h``resource_size_t start``h]j)}(hjPh]hresource_size_t start}(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.chMlhjJubj)}(hhh]h)}(hregion start addressh]hregion start address}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMlhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMlhjGubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMmhjubj)}(hhh]h)}(hsize of regionh]hsize of region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjGubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMnhjubj)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjGubj)}(hU``unsigned long desc`` descriptor of resource (in iomem_resource) or IORES_DESC_NONE h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMohjubj)}(hhh]h)}(h=descriptor of resource (in iomem_resource) or IORES_DESC_NONEh]h=descriptor of resource (in iomem_resource) or IORES_DESC_NONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(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:271: ./kernel/resource.chMqhj+ubh)}(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 }(hjLhhhNhNubj)}(h **flags**h]hflags}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh and }(hjLhhhNhNubj)}(h**desc**h]hdesc}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjLhhhNhNubj)}(h **flags**h]hflags}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh/}(hjLhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh-, return REGION_MIXED if the region overlaps }(hjLhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh/}hjLsbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjLhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh/}hjLsbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh 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.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMphj+ubh)}(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.chMyhj+ubeh}(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 }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hMubjg)}(hfind_resource_spaceh]jm)}(hfind_resource_spaceh]hfind_resource_space}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hMubj)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(hresourceh]hresource}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE j=sbc.find_resource_spaceasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jc.find_resource_spaceasbuh1hhj5ubj)}(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&]noemphjjuh1jhjOubj)}(h&struct resource_constraint *constrainth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.find_resource_spaceasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(h constrainth]h constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhjhhubj)}(hhh]h)}(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&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX<**Parameters** ``struct resource *root`` Root resource descriptor ``struct resource *new`` Resource descriptor awaiting an empty resource space ``resource_size_t size`` The minimum size of the empty space ``struct resource_constraint *constraint`` The range and alignment constraints to be met **Description** Finds an empty space under **root** in the resource tree satisfying range and alignment **constraints**. **Return** * ``0`` - if successful, **new** members start, end, and flags are altered. * ``-EBUSY`` - if no empty space was found.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` Root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjCh]hstruct resource *root}(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)}(hRoot resource descriptorh]hRoot resource descriptor}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(hN``struct resource *new`` Resource descriptor awaiting an empty resource space h](j)}(h``struct resource *new``h]j)}(hj|h]hstruct resource *new}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjvubj)}(hhh]h)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(h=``resource_size_t size`` The minimum size of the empty space h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h#The minimum size of the empty spaceh]h#The minimum size of the empty space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(hY``struct resource_constraint *constraint`` The range and alignment constraints to be met h](j)}(h*``struct resource_constraint *constraint``h]j)}(hjh]h&struct resource_constraint *constraint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h-The range and alignment constraints to be meth]h-The range and alignment constraints to be met}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hhFinds an empty space under **root** in the resource tree satisfying range and alignment **constraints**.h](hFinds an empty space under }(hj?hhhNhNubj)}(h**root**h]hroot}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh5 in the resource tree satisfying range and alignment }(hj?hhhNhNubj)}(h**constraints**h]h constraints}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]h)}(hjh](j)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - if successful, }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+ members start, end, and flags are altered.}(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&]uh1jhjubj)}(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&]uh1jhjubeh}(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 hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhM ubjg)}(hallocate_resourceh]jm)}(hallocate_resourceh]hallocate_resource}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhM ubj)}(h(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hresourceh]hresource}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jR )}jE j4sbc.allocate_resourceasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.allocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jc.allocate_resourceasbuh1hhj,ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubjm)}(hsizeh]hsize}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hresource_size_t minh](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 ]jc.allocate_resourceasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(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 ]jc.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&]noemphjjuh1jhjFubj)}(hresource_size_t alignh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.allocate_resourceasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halignh]halign}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hresource_alignf alignfh](h)}(hhh]jm)}(hresource_alignfh]hresource_alignf}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jc.allocate_resourceasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(halignfh]halignf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hvoid *alignf_datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h alignf_datah]h alignf_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(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)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$hjubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj,h]hstruct resource *root}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hj&ubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM"hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM"hj#ubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjeh]hstruct resource *new}(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)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM#hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM#hj#ubj)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$hjubj)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hj#ubj)}(h5``resource_size_t min`` minimum boundary to allocate h](j)}(h``resource_size_t min``h]j)}(hjh]hresource_size_t min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM%hjubj)}(hhh]h)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hj#ubj)}(h5``resource_size_t max`` maximum boundary to allocate h](j)}(h``resource_size_t max``h]j)}(hjh]hresource_size_t max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&hj ubj)}(hhh]h)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM&hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM&hj#ubj)}(h8``resource_size_t align`` alignment requested, in bytes h](j)}(h``resource_size_t align``h]j)}(hjIh]hresource_size_t align}(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.chM'hjCubj)}(hhh]h)}(halignment requested, in bytesh]halignment requested, in bytes}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM'hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM'hj#ubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hjh]hresource_alignf alignf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hj|ubj)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj#ubj)}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j)}(h``void *alignf_data``h]j)}(hjh]hvoid *alignf_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjubj)}(hhh]h)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hjhhhNhNubj)}(h **alignf**h]halignf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh function}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hj#ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinsert_resource (C function)c.insert_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(hCint insert_resource (struct resource *parent, struct resource *new)h]j)}(hBint insert_resource(struct resource *parent, struct resource *new)h](j )}(hinth]hint}(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_resourceh]jm)}(hinsert_resourceh]hinsert_resource}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.insert_resourceasbuh1hhj`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&]noemphjjuh1jhj\ubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.insert_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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'Inserts a resource in the resource treeh]h'Inserts a resource in the resource tree}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjsubj)}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.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&]uh1jhjhMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjsubh)}(h?Returns 0 on success, -EBUSY if the resource can't be inserted.h]hAReturns 0 on success, -EBUSY if the resource can’t be inserted.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjsubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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 }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhjnhMubjg)}(hinsert_resource_expand_to_fith]jm)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhjnhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.insert_resource_expand_to_fitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jc.insert_resource_expand_to_fitasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnewh]hnew}(hjfhhhNhNubah}(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)}(h(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` new resource to insert **Description** Insert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hj h]hstruct resource *new}(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)}(hnew resource to inserth]hnew resource to insert}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h]hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremove_resource (C function)c.remove_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h*int remove_resource (struct resource *old)h]j)}(h)int remove_resource(struct resource *old)h](j )}(hinth]hint}(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)}(hremove_resourceh]jm)}(hremove_resourceh]hremove_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.remove_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(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]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&Remove a resource in the resource treeh]h&Remove a resource in the resource tree}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhjhNhNubj)}(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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubj)}(hhh]j)}(h,``struct resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hjh]hstruct resource *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hresource to removeh]hresource to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubh)}(h;Returns 0 on success, -EINVAL if the resource is not valid.h]h;Returns 0 on success, -EINVAL if the resource is not valid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubh)}(hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.h]hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubh)}(hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.h]hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubeh}(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.chM*ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hM*ubjg)}(hadjust_resourceh]jm)}(hadjust_resourceh]hadjust_resource}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hM*ubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.adjust_resourceasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hresh]hres}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.adjust_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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 ]jc.adjust_resourceasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM*hjhhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX]**Parameters** ``struct resource *res`` resource to modify ``resource_size_t start`` new start value ``resource_size_t size`` new size **Description** Given an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM.hjubj)}(hhh](j)}(h,``struct resource *res`` resource to modify h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM+hjubj)}(hhh]h)}(hresource to modifyh]hresource to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(h*``resource_size_t start`` new start value h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM,hjubj)}(hhh]h)}(hnew start valueh]hnew start value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(h"``resource_size_t size`` new size h](j)}(h``resource_size_t size``h]j)}(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.chM-hj&ubj)}(hhh]h)}(hnew sizeh]hnew size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM-hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM-hjubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/hjubh)}(hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h]hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can’t fit. Existing children of the resource are assumed to be immutable.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__request_region (C function)c.__request_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hstruct resource * __request_region (struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h]j)}(hstruct resource *__request_region(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE __request_regionsbc.__request_regionasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h__request_regionh]jm)}(hjh]h__request_region}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hresourceh]hresource}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhj"ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hparenth]hparent}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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}(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 }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hnameh]hname}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(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!create a new busy resource regionh]h!create a new busy resource region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size ``const char *name`` reserving caller's ID string ``int flags`` IO resource flagsh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hjubj)}(hhh](j)}(h7``struct resource *parent`` parent resource descriptor h](j)}(h``struct resource *parent``h]j)}(hj h]hstruct resource *parent}(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)}(hparent resource descriptorh]hparent resource descriptor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjBh]hresource_size_t start}(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 start addressh]hresource start address}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hj{h]hresource_size_t n}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM!hjuubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubj)}(h2``const char *name`` reserving caller's ID string h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hjubj)}(hhh]h)}(hreserving caller's ID stringh]hreserving caller’s ID string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h``int flags`` IO resource flagsh](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$hjubj)}(hhh]h)}(hIO resource flagsh]hIO resource flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__release_region (C function)c.__release_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hYvoid __release_region (struct resource *parent, resource_size_t start, resource_size_t n)h]j)}(hXvoid __release_region(struct resource *parent, resource_size_t start, resource_size_t n)h](j )}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM@ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjUhM@ubjg)}(h__release_regionh]jm)}(h__release_regionh]h__release_region}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjUhM@ubj)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jjsbc.__release_regionasbuh1hhjubj)}(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&]noemphjjuh1jhj|ubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__release_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hresource_size_t nh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jc.__release_regionasbuh1hhj:ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hjyh]hn}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhM@ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhM@hj<hhubj)}(hhh]h)}(h-release a previously reserved resource regionh]h-release a previously reserved resource region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM@hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size **Description** The described resource region must match a currently busy region.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMDhjubj)}(hhh](j)}(h7``struct resource *parent`` parent resource descriptor h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMAhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMBhj ubj)}(hhh]h)}(hresource start addressh]hresource start address}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMBhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMBhjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjIh]hresource_size_t n}(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.chMChjCubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMChj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMChjubeh}(h]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.chMEhjubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMDhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_request_resource (C function)c.devm_request_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h[int devm_request_resource (struct device *dev, struct resource *root, struct resource *new)h]j)}(hZint devm_request_resource(struct device *dev, struct resource *root, struct resource *new)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM$ubjg)}(hdevm_request_resourceh]jm)}(hdevm_request_resourceh]hdevm_request_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM$ubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&modnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(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)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j@c.devm_request_resourceasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j@c.devm_request_resourceasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjubj)}(hhh](j)}(h@``struct device *dev`` device for which to request the resource h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM%hjubj)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(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.chM&hjubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hsizeh]hsize}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h*find free region for device private memoryh]h*find free region for device private memory}(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 device *dev`` device struct to bind the resource to ``struct resource *base`` resource tree to look in ``unsigned long size`` size in bytes of the device memory to add **Description** This function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h=``struct device *dev`` device struct to bind the resource to h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h%device struct to bind the resource toh]h%device struct to bind the resource to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``struct resource *base`` resource tree to look in h](j)}(h``struct resource *base``h]j)}(hjh]hstruct resource *base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hresource tree to look inh]hresource tree to look in}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(hA``unsigned long size`` size in bytes of the device memory to add h](j)}(h``unsigned long size``h]j)}(hjSh]hunsigned long size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjMubj)}(hhh]h)}(h)size in bytes of the device memory to addh]h)size in bytes of the device memory to add}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.h]hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"alloc_free_mem_region (C function)c.alloc_free_mem_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hzstruct resource * alloc_free_mem_region (struct resource *base, unsigned long size, unsigned long align, const char *name)h]j)}(hxstruct resource *alloc_free_mem_region(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE alloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(halloc_free_mem_regionh]jm)}(hjh]halloc_free_mem_region}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hstruct resource *baseh](j)}(hj6}h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(hresourceh]hresource}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jc.alloc_free_mem_regionasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hunsigned long alignh](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 }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(halignh]halign}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(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 }(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&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h'find a free region relative to **base**h](hfind a free region relative to }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX"**Parameters** ``struct resource *base`` resource that will parent the new resource ``unsigned long size`` size in bytes of memory to allocate from **base** ``unsigned long align`` alignment requirements for the allocation ``const char *name`` resource name **Description** Buses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of **base**, range in the span of **base**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(hE``struct resource *base`` resource that will parent the new resource h](j)}(h``struct resource *base``h]j)}(hj h]hstruct resource *base}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(h*resource that will parent the new resourceh]h*resource that will parent the new resource}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 hMhj2 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hMhj ubj)}(hI``unsigned long size`` size in bytes of memory to allocate from **base** h](j)}(h``unsigned long size``h]j)}(hjU h]hunsigned long size}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjO ubj)}(hhh]h)}(h1size in bytes of memory to allocate from **base**h](h)size in bytes of memory to allocate from }(hjn hhhNhNubj)}(h**base**h]hbase}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn ubeh}(h]h ]h"]h$]h&]uh1hhjj hMhjk ubah}(h]h ]h"]h$]h&]uh1jhjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hMhj ubj)}(hB``unsigned long align`` alignment requirements for the allocation h](j)}(h``unsigned long align``h]j)}(hj h]hunsigned long align}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(h)alignment requirements for the allocationh]h)alignment requirements for the allocation}(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 *name`` resource name h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(h resource nameh]h resource name}(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)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hXBuses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of **base**, range in the span of **base**.h](hBuses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of }(hj& hhhNhNubj)}(h**base**h]hbase}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubh, range in the span of }(hj& hhhNhNubj)}(h**base**h]hbase}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubh.}(hj& hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhjhhhhhM ubh)}(hhh](h)}(h MTRR Handlingh]h MTRR Handling}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhjh hhhNhNubh)}(hhh](j)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]j)}(h ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjc h]hvoid}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj] ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx hKhjy ubah}(h]h ]h"]h$]h&]uh1jhj] ubeh}(h]h ]h"]h$]h&]uh1jhjx hKhjZ 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)}(hBThis should be called early in the kernel initialization sequence.h]hBThis should be called early in the kernel initialization sequence.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj> ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_add_hooks (C function)c.security_add_hookshNtauh1hhj hhhNhNubh)}(hhh](j)}(havoid security_add_hooks (struct security_hook_list *hooks, int count, const struct lsm_id *lsmid)h]j)}(h`void security_add_hooks(struct security_hook_list *hooks, int count, const struct lsm_id *lsmid)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_add_hooksh]jm)}(hsecurity_add_hooksh]hsecurity_add_hooks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM_ubj)}(hI(struct security_hook_list *hooks, int count, const struct lsm_id *lsmid)h](j)}(h struct security_hook_list *hooksh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsecurity_hook_listh]hsecurity_hook_list}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_add_hooksasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hhooksh]hhooks}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct lsm_id *lsmidh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hlsm_idh]hlsm_id}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jZc.security_add_hooksasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlsmidh]hlsmid}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM_ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM_hj hhubj)}(hhh]h)}(h&Add a modules hooks to the hook lists.h]h&Add a modules hooks to the hook lists.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj`hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct security_hook_list *hooks`` the hooks to add ``int count`` the number of hooks to add ``const struct lsm_id *lsmid`` the identification information for the security module **Description** Each LSM has to register its hooks with the infrastructure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjubj)}(hhh](j)}(h6``struct security_hook_list *hooks`` the hooks to add h](j)}(h$``struct security_hook_list *hooks``h]j)}(hjh]h struct security_hook_list *hooks}(hjhhhNhNubah}(h]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 hooks to addh]hthe hooks to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(h)``int count`` the number of hooks to add h](j)}(h ``int count``h]j)}(hjh]h int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubj)}(hhh]h)}(hthe number of hooks to addh]hthe number of hooks to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(hV``const struct lsm_id *lsmid`` the identification information for the security module h](j)}(h``const struct lsm_id *lsmid``h]j)}(hjh]hconst struct lsm_id *lsmid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubj)}(hhh]h)}(h6the identification information for the security moduleh]h6the identification information for the security module}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMbhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubh)}(h;Each LSM has to register its hooks with the infrastructure.h]h;Each LSM has to register its hooks with the infrastructure.}(hjghhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(h8int lsm_blob_alloc (void **dest, size_t size, gfp_t gfp)h]j)}(h7int lsm_blob_alloc(void **dest, size_t size, gfp_t gfp)h](j )}(hinth]hint}(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)}(hlsm_blob_alloch]jm)}(hlsm_blob_alloch]hlsm_blob_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h%(void **dest, size_t size, gfp_t gfp)h](j)}(h void **desth](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)}(hdesth]hdest}(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&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jsbc.lsm_blob_allocasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jAc.lsm_blob_allocasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(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 composite blobh]hallocate a composite 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&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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 **dest`` the destination for the blob h](j)}(h``void **dest``h]j)}(hjh]h void **dest}(hjhhhNhNubah}(h]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 destination for the blobh]hthe destination for the blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``size_t size`` the size of the blob h](j)}(h``size_t size``h]j)}(hj?h]h size_t size}(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.chMhj9ubj)}(hhh]h)}(hthe size of the blobh]hthe size of the blob}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hjxh]h gfp_t gfp}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrubj)}(hhh]h)}(hallocation typeh]hallocation type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Allocate a blob for all the modulesh]h#Allocate a blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhj 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}(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)}(hlsm_cred_alloch]jm)}(hlsm_cred_alloch]hlsm_cred_alloc}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hcredh]hcred}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE j*sbc.lsm_cred_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&]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.lsm_cred_allocasbuh1hhjubj)}(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<ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct cred *cred`` the cred that needs a blob ``gfp_t gfp`` allocation type **Description** Allocate the cred blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubj)}(hhh](j)}(h1``struct cred *cred`` the cred that needs a blob h](j)}(h``struct cred *cred``h]j)}(hjPh]hstruct cred *cred}(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)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(h``gfp_t gfp`` allocation type 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 typeh]hallocation type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubh)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_early_cred (C function)c.lsm_early_credhNtauh1hhj hhhNhNubh)}(hhh](j)}(h'void lsm_early_cred (struct cred *cred)h]j)}(h&void lsm_early_cred(struct cred *cred)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 }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hMubjg)}(hlsm_early_credh]jm)}(hlsm_early_credh]hlsm_early_cred}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hMubj)}(h(struct cred *cred)h]j)}(hstruct cred *credh](j)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hcredh]hcred}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE j;sbc.lsm_early_credasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hcredh]hcred}(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)}(h4during initialization allocate a composite cred blobh]h4during initialization allocate a composite cred 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&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct cred *cred`` the cred that needs a blob **Description** Allocate the cred blob for all the modulesh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h1``struct cred *cred`` the cred that needs a blob h](j)}(h``struct cred *cred``h]j)}(hjh]hstruct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe cred that needs a blobh]hthe cred that needs a blob}(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)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_file_alloc (C function)c.lsm_file_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(h&int lsm_file_alloc (struct file *file)h]j)}(h%int lsm_file_alloc(struct file *file)h](j )}(hinth]hint}(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)}(hlsm_file_alloch]jm)}(hlsm_file_alloch]hlsm_file_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.lsm_file_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(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)}(hallocate a composite file blobh]hallocate a composite file blob}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct file *file`` the file that needs a blob **Description** Allocate the file blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuubj)}(hhh]j)}(h1``struct file *file`` the file that needs a blob h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe file that needs a blobh]hthe file that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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)}(h*Allocate the file blob for all the modulesh]h*Allocate the file blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuubh)}(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.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhj 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.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hMubjg)}(hlsm_inode_alloch]jm)}(hlsm_inode_alloch]hlsm_inode_alloc}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.lsm_inode_allocasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(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.lsm_inode_allocasbuh1hhjubj)}(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^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjhhubj)}(hhh]h)}(hallocate a composite inode blobh]hallocate a composite inode blob}(hj1hhhNhNubah}(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&]uh1jhjhhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj 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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubj)}(hhh](j)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hjrh]hstruct inode *inode}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubj)}(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&]uh1jhjhMhjiubeh}(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.chMhjMubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubh)}(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.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhj 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 hj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhjHhMubjg)}(hlsm_task_alloch]jm)}(hlsm_task_alloch]hlsm_task_alloc}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhjHhMubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(h 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.lsm_task_allocasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhj/hhubj)}(hhh]h)}(hallocate a composite task blobh]hallocate a composite task 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/hhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhj 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}(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 lsm_ipc_alloch]jm)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h 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 jsbc.lsm_ipc_allocasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkiph]hkip}(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)}(hallocate a composite ipc blobh]hallocate a composite ipc 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&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hjh]hstruct kern_ipc_perm *kip}(hjhhhNhNubah}(h]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 ipc that needs a blobh]hthe ipc that needs a blob}(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.chM hjubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhj 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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhMubjg)}(h lsm_key_alloch]jm)}(h lsm_key_alloch]h lsm_key_alloc}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j}sbc.lsm_key_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjOhhubj)}(hhh]h)}(hallocate a composite key blobh]hallocate a composite key 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&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj 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.chMhj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjUubj)}(hhh]h)}(hthe key that needs a blobh]hthe key that needs a blob}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubh)}(h)Allocate the key blob for all the modulesh]h)Allocate the key blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubh)}(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.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhj 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}(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_msg_msg_alloch]jm)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM#ubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hj6}h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.lsm_msg_msg_allocasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hmph]hmp}(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)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg 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&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hjh]hstruct msg_msg *mp}(hjhhhNhNubah}(h]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 msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM$hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM$hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj& h]h Description}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hjubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hjubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhj 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}(hjz hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjv hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv hhhj hM1ubjg)}(hlsm_bdev_alloch]jm)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjv hhhj hM1ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.lsm_bdev_allocasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbdevh]hbdev}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjv hhhj hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjr hhhj hM1ubah}(h]jm ah ](jjeh"]h$]h&]jj)jhuh1hhj hM1hjo hhubj)}(hhh]h)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hj:!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj7!hhubah}(h]h ]h"]h$]h&]uh1jhjo hhhj hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR!jjR!jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block_device that needs a blob **Description** Allocate the block_device blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj\!h]h Parameters}(hj^!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjV!ubj)}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hj{!h]hstruct block_device *bdev}(hj}!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hju!ubj)}(hhh]h)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM2hj!ubah}(h]h ]h"]h$]h&]uh1jhju!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM2hjr!ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjV!ubh)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjV!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.chM5hjV!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_early_task (C function)c.lsm_early_taskhNtauh1hhj hhhNhNubh)}(hhh](j)}(h.void lsm_early_task (struct task_struct *task)h]j)}(h-void lsm_early_task(struct task_struct *task)h](j )}(hvoidh]hvoid}(hj "hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj"hMGubjg)}(hlsm_early_taskh]jm)}(hlsm_early_taskh]hlsm_early_task}(hj+"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj"hMGubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hjG"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC"ubj)}(h h]h }(hjT"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC"ubh)}(hhh]jm)}(h task_structh]h task_struct}(hje"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjg"modnameN classnameNjI jL )}jO ]jR )}jE j-"sbc.lsm_early_taskasbuh1hhjC"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC"ubjm)}(htaskh]htask}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?"ubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hMGubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hMGubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj"hMGhj!hhubj)}(hhh]h)}(h4during initialization allocate a composite task blobh]h4during initialization allocate a composite task blob}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj"hMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *task`` the task that needs a blob **Description** Allocate the task blob for all the modulesh](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhj"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.chMHhj#ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj$#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj #hMHhj!#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj #hMHhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hjF#h]h Description}(hjH#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhj"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.chMIhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(h1int lsm_superblock_alloc (struct super_block *sb)h]j)}(h0int lsm_superblock_alloc(struct super_block *sb)h](j )}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj#hMUubjg)}(hlsm_superblock_alloch]jm)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hMUubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.lsm_superblock_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)}(hsbh]hsb}(hj!$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMUubah}(h]j~#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMUhj#hhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjH$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjc$jjc$jjjuh1hhhhj 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)}(hjm$h]h Parameters}(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.chMYhjg$ubj)}(hhh]j)}(h<``struct super_block *sb`` the superblock that needs a blob h](j)}(h``struct super_block *sb``h]j)}(hj$h]hstruct super_block *sb}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhj$ubj)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMVhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMVhj$ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjg$ubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock 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.chMWhjg$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.chMYhjg$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhj hhhNhNubh)}(hhh](j)}(hpint lsm_fill_user_ctx (struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h]j)}(hoint lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j )}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMcubj)}(h h]h }(hj*%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj)%hMcubjg)}(hlsm_fill_user_ctxh]jm)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hj<%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj)%hMcubj)}(hZ(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j)}(hstruct lsm_ctx __user *uctxh](j)}(hj6}h]hstruct}(hjX%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%ubj)}(h h]h }(hje%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubh)}(hhh]jm)}(hlsm_ctxh]hlsm_ctx}(hjv%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjx%modnameN classnameNjI jL )}jO ]jR )}jE j>%sbc.lsm_fill_user_ctxasbuh1hhjT%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubh__user}(hjT%hhhNhNubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%ubjm)}(huctxh]huctx}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(h u32 *uctx_lenh](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.lsm_fill_user_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)}(huctx_lenh]huctx_len}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(h void *valh](j )}(hvoidh]hvoid}(hj1&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-&ubj)}(h h]h }(hj?&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-&ubj)}(hjh]h*}(hjM&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-&ubjm)}(hvalh]hval}(hjZ&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hsize_t val_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjv&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjx&modnameN classnameNjI jL )}jO ]j%c.lsm_fill_user_ctxasbuh1hhjo&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo&ubjm)}(hval_lenh]hval_len}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hu64 idh](h)}(hhh]jm)}(hu64h]hu64}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&modnameN classnameNjI jL )}jO ]j%c.lsm_fill_user_ctxasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hidh]hid}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(h u64 flagsh](h)}(hhh]jm)}(hu64h]hu64}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]j%c.lsm_fill_user_ctxasbuh1hhj&ubj)}(h h]h }(hj$'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hflagsh]hflags}(hj2'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%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)}(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.chMchjY'hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj)%hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjt'jjt'jjjuh1hhhhj 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.chMghjx'ubj)}(hhh](j)}(hE``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hj'h]hstruct lsm_ctx __user *uctx}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhj'ubj)}(hhh]h)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMdhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMdhj'ubj)}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j)}(h``u32 *uctx_len``h]j)}(hj'h]h u32 *uctx_len}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj'ubj)}(hhh]h)}(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'hMehj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMehj'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.chMfhj (ubj)}(hhh]h)}(hthe new LSM context valueh]hthe new LSM context value}(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)}(h9``size_t val_len`` the size of the new LSM context value h](j)}(h``size_t val_len``h]j)}(hjH(h]hsize_t val_len}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjB(ubj)}(hhh]h)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hja(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj](hMghj^(ubah}(h]h ]h"]h$]h&]uh1jhjB(ubeh}(h]h ]h"]h$]h&]uh1jhj](hMghj'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.chMhhj{(ubj)}(hhh]h)}(hLSM idh]hLSM id}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhhj(ubah}(h]h ]h"]h$]h&]uh1jhj{(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhhj'ubj)}(h ``u64 flags`` LSM defined flags h](j)}(h ``u64 flags``h]j)}(hj(h]h u64 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.chMihj(ubj)}(hhh]h)}(hLSM defined flagsh]hLSM defined flags}(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&]uh1jhjx'ubh)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjx'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.chMjhjx'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.chMnhjx'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhj hhhNhNubh)}(hhh](j)}(h+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjQ+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>+hhhjP+hMubjg)}(hsecurity_binder_transactionh]jm)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hjc+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>+hhhjP+hMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{+ubj)}(hj6}h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{+ubh)}(hhh]jm)}(hcredh]hcred}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE je+sbc.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)}(hfromh]hfrom}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw+ubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hj6}h]hstruct}(hj',hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj4,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(hcredh]hcred}(hjE,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjG,modnameN classnameNjI jL )}jO ]j+c.security_binder_transactionasbuh1hhj,ubj)}(h h]h }(hjc,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjq,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(htoh]hto}(hj~,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw+ubeh}(h]h ]h"]h$]h&]jjuh1jhj>+hhhjP+hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:+hhhjP+hMubah}(h]j5+ah ](jjeh"]h$]h&]jj)jhuh1hhjP+hMhj7+hhubj)}(hhh]h)}(h(Check if a binder transaction is allowedh]h(Check if a binder transaction 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&]uh1jhj7+hhhjP+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhj 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)}(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 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,hMhj,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&]uh1hhj7-hMhj8-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj7-hMhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hj]-h]h Description}(hj_-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj,ubh)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hjs-hhhNhNubj)}(h**from**h]hfrom}(hj{-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs-ubh3 is allowed to invoke a binder transaction call to }(hjs-hhhNhNubj)}(h**to**h]hto}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs-ubh.}(hjs-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#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhj 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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hMubjg)}(hsecurity_binder_transfer_binderh]jm)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj .ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj*.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&.ubj)}(h h]h }(hj7.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&.ubj)}(hj6}h]hstruct}(hjE.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&.ubj)}(h h]h }(hjR.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&.ubh)}(hhh]jm)}(hcredh]hcred}(hjc.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetje.modnameN classnameNjI jL )}jO ]jR )}jE j.sb!c.security_binder_transfer_binderasbuh1hhj&.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&.ubjm)}(hfromh]hfrom}(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)}(hj6}h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(hcredh]hcred}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]j.!c.security_binder_transfer_binderasbuh1hhj.ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(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 transfer is allowedh]h%Check if a binder transfer is allowed}(hjS/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjP/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk/jjk/jjjuh1hhhhj 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)}(hju/h]h Parameters}(hjw/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjo/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/hMhj/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/hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhjo/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj 0hhhNhNubah}(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.chMhjo/ubh)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hj0hhhNhNubj)}(h**from**h]hfrom}(hj&0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh. is allowed to transfer a binder reference to }(hj0hhhNhNubj)}(h**to**h]hto}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjo/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.chMhjo/ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hji0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjo/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhj 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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj0hMubjg)}(hsecurity_binder_transfer_fileh]jm)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj0hMubj)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hj6}h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j0sbc.security_binder_transfer_fileasbuh1hhj0ubj)}(h h]h }(hj.1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj<1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hfromh]hfrom}(hjI1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjb1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^1ubj)}(h h]h }(hjo1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^1ubj)}(hj6}h]hstruct}(hj}1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^1ubh)}(hhh]jm)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]j*1c.security_binder_transfer_fileasbuh1hhj^1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^1ubjm)}(htoh]hto}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hfileh]hfile}(hj&2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(2modnameN classnameNjI jL )}jO ]j*1c.security_binder_transfer_fileasbuh1hhj1ubj)}(h h]h }(hjD2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjR2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hfileh]hfile}(hj_2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhj0hhubj)}(hhh]h)}(h&Check if a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj 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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2ubj)}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hj2h]hconst struct cred *from}(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.chMhj2ubj)}(hhh]h)}(hsending processh]hsending process}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hj3h]hconst struct cred *to}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2ubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hM hj2ubj)}(h3``const struct file *file`` file being transferred h](j)}(h``const struct file *file``h]j)}(hj<3h]hconst struct file *file}(hj>3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj63ubj)}(hhh]h)}(hfile being transferredh]hfile being transferred}(hjU3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ3hM hjR3ubah}(h]h ]h"]h$]h&]uh1jhj63ubeh}(h]h ]h"]h$]h&]uh1jhjQ3hM hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hjw3h]h Description}(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.chM hj2ubh)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hj3hhhNhNubj)}(h**from**h]hfrom}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh is allowed to transfer }(hj3hhhNhNubj)}(h**file**h]hfile}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh to }(hj3hhhNhNubj)}(h**to**h]hto}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2ubh)}(h **Return**h]j)}(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 hj2ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhj 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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj(4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhj'4hMubjg)}(hsecurity_ptrace_access_checkh]jm)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hj:4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj64ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj'4hMubj)}(h.(struct task_struct *child, unsigned int mode)h](j)}(hstruct task_struct *childh](j)}(hj6}h]hstruct}(hjV4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR4ubj)}(h h]h }(hjc4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR4ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjt4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjv4modnameN classnameNjI jL )}jO ]jR )}jE j<4sbc.security_ptrace_access_checkasbuh1hhjR4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR4ubjm)}(hchildh]hchild}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN4ubj)}(hunsigned int modeh](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)}(hmodeh]hmode}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN4ubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhj'4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj'4hMubah}(h]j 4ah ](jjeh"]h$]h&]jj)jhuh1hhj'4hMhj4hhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hj*5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj'4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjB5jjB5jjjuh1hhhhj hNhNubj)}(hX-**Parameters** ``struct task_struct *child`` target process ``unsigned int mode`` PTRACE_MODE flags **Description** Check permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjL5h]h Parameters}(hjN5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjF5ubj)}(hhh](j)}(h-``struct task_struct *child`` target process h](j)}(h``struct task_struct *child``h]j)}(hjk5h]hstruct task_struct *child}(hjm5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhje5ubj)}(hhh]h)}(htarget processh]htarget process}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhje5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjb5ubj)}(h(``unsigned int mode`` PTRACE_MODE flags h](j)}(h``unsigned int mode``h]j)}(hj5h]hunsigned int mode}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj)}(hhh]h)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjb5ubeh}(h]h ]h"]h$]h&]uh1jhjF5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjF5ubh)}(hXCheck permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.h](hBCheck permission before allowing the current process to trace the }(hj5hhhNhNubj)}(h **child**h]hchild}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhX5 process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjF5ubh)}(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!hjF5ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj.6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjF5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhj hhhNhNubh)}(hhh](j)}(h8int security_ptrace_traceme (struct task_struct *parent)h]j)}(h7int security_ptrace_traceme(struct task_struct *parent)h](j )}(hinth]hint}(hj]6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjY6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*ubj)}(h h]h }(hjl6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjY6hhhjk6hM*ubjg)}(hsecurity_ptrace_tracemeh]jm)}(hsecurity_ptrace_tracemeh]hsecurity_ptrace_traceme}(hj~6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjY6hhhjk6hM*ubj)}(h(struct task_struct *parent)h]j)}(hstruct task_struct *parenth](j)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE j6sbc.security_ptrace_tracemeasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hparenth]hparent}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjY6hhhjk6hM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjU6hhhjk6hM*ubah}(h]jP6ah ](jjeh"]h$]h&]jj)jhuh1hhjk6hM*hjR6hhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj7hhubah}(h]h ]h"]h$]h&]uh1jhjR6hhhjk6hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj57jj57jjjuh1hhhhj hNhNubj)}(hX9**Parameters** ``struct task_struct *parent`` tracing process **Description** Check that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj?7h]h Parameters}(hjA7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj97ubj)}(hhh]j)}(h/``struct task_struct *parent`` tracing process h](j)}(h``struct task_struct *parent``h]j)}(hj^7h]hstruct task_struct *parent}(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:283: ./security/security.chM+hjX7ubj)}(hhh]h)}(htracing processh]htracing process}(hjw7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs7hM+hjt7ubah}(h]h ]h"]h$]h&]uh1jhjX7ubeh}(h]h ]h"]h$]h&]uh1jhjs7hM+hjU7ubah}(h]h ]h"]h$]h&]uh1jhj97ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hj97ubh)}(hCheck that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing.h](hCheck that the }(hj7hhhNhNubj)}(h **parent**h]hparent}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh} process has sufficient permission to trace the current process before allowing the current process to present itself to the }(hj7hhhNhNubj)}(h **parent**h]hparent}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh process for tracing.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hj97ubh)}(h **Return**h]j)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj97ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj97ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_capget (C function)c.security_capgethNtauh1hhj hhhNhNubh)}(hhh](j)}(hint security_capget (const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h]j)}(hint security_capget(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j )}(hinth]hint}(hj)8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9ubj)}(h h]h }(hj88hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%8hhhj78hM9ubjg)}(hsecurity_capgeth]jm)}(hsecurity_capgeth]hsecurity_capget}(hjJ8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%8hhhj78hM9ubj)}(ho(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j)}(h const struct task_struct *targeth](j)}(hjh]hconst}(hjf8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb8ubj)}(h h]h }(hjs8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb8ubj)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb8ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jR )}jE jL8sbc.security_capgetasbuh1hhjb8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb8ubjm)}(htargeth]htarget}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^8ubj)}(hkernel_cap_t *effectiveh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]j8c.security_capgetasbuh1hhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj"9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(h effectiveh]h effective}(hj/9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^8ubj)}(hkernel_cap_t *inheritableh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hjK9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjM9modnameN classnameNjI jL )}jO ]j8c.security_capgetasbuh1hhjD9ubj)}(h h]h }(hji9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD9ubj)}(hjh]h*}(hjw9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD9ubjm)}(h inheritableh]h inheritable}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjD9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^8ubj)}(hkernel_cap_t *permittedh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]j8c.security_capgetasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(h permittedh]h permitted}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^8ubeh}(h]h ]h"]h$]h&]jjuh1jhj%8hhhj78hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!8hhhj78hM9ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj78hM9hj8hhubj)}(hhh]h)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hj:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj78hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhj hNhNubj)}(hXG**Parameters** ``const struct task_struct *target`` target process ``kernel_cap_t *effective`` effective capability set ``kernel_cap_t *inheritable`` inheritable capability set ``kernel_cap_t *permitted`` permitted capability set **Description** Get the **effective**, **inheritable**, and **permitted** capability sets for the **target** process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the **target** process. **Return** Returns 0 if the capability sets were successfully obtained.h](h)}(h**Parameters**h]j)}(hj%: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)}(h4``const struct task_struct *target`` target process h](j)}(h$``const struct task_struct *target``h]j)}(hjD:h]h const struct task_struct *target}(hjF:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hj>:ubj)}(hhh]h)}(htarget processh]htarget process}(hj]:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY:hM:hjZ:ubah}(h]h ]h"]h$]h&]uh1jhj>:ubeh}(h]h ]h"]h$]h&]uh1jhjY:hM:hj;:ubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hj}:h]hkernel_cap_t *effective}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjw:ubj)}(hhh]h)}(heffective capability seth]heffective capability set}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM;hj:ubah}(h]h ]h"]h$]h&]uh1jhjw:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM;hj;:ubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hj:h]hkernel_cap_t *inheritable}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hj:ubj)}(hhh]h)}(hinheritable capability seth]hinheritable capability 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``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hj:h]hkernel_cap_t *permitted}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hj:ubj)}(hhh]h)}(hpermitted capability seth]hpermitted capability 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;: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)}(hGet the **effective**, **inheritable**, and **permitted** capability sets for the **target** process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the **target** process.h](hGet the }(hj@;hhhNhNubj)}(h **effective**h]h effective}(hjH;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@;ubh, }(hj@;hhhNhNubj)}(h**inheritable**h]h inheritable}(hjZ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@;ubh, and }(hj@;hhhNhNubj)}(h **permitted**h]h permitted}(hjl;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@;ubh capability sets for the }(hj@;hhhNhNubj)}(h **target**h]htarget}(hj~;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@;ubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hj@;hhhNhNubj)}(h **target**h]htarget}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@;ubh process.}(hj@;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>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.chMChj:ubh)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hj(>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*>modnameN classnameNjI jL )}jO ]jg<c.security_capsetasbuh1hhj>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)}(h permittedh]h permitted}(hja>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%<ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hMOubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMOhj;hhubj)}(hhh]h)}(h%Set the capability sets for a processh]h%Set the capability sets for a process}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj>hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhj hNhNubj)}(hX **Parameters** ``struct cred *new`` new credentials for the target process ``const struct cred *old`` current credentials of the target process ``const kernel_cap_t *effective`` effective capability set ``const kernel_cap_t *inheritable`` inheritable capability set ``const kernel_cap_t *permitted`` permitted capability set **Description** Set the **effective**, **inheritable**, and **permitted** capability sets for the current process. **Return** Returns 0 and update **new** if permission is granted.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj>ubj)}(hhh](j)}(h<``struct cred *new`` new credentials for the target process h](j)}(h``struct cred *new``h]j)}(hj>h]hstruct cred *new}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhj>ubj)}(hhh]h)}(h&new credentials for the target processh]h&new credentials for the target process}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMPhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMPhj>ubj)}(hE``const struct cred *old`` current credentials of the target process h](j)}(h``const struct cred *old``h]j)}(hj?h]hconst struct cred *old}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhj>ubj)}(hhh]h)}(h)current credentials of the target processh]h)current credentials of the target process}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMQhj?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj?hMQhj>ubj)}(h;``const kernel_cap_t *effective`` effective capability set h](j)}(h!``const kernel_cap_t *effective``h]j)}(hj>?h]hconst kernel_cap_t *effective}(hj@?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h?``const kernel_cap_t *inheritable`` inheritable capability set h](j)}(h#``const kernel_cap_t *inheritable``h]j)}(hjw?h]hconst kernel_cap_t *inheritable}(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.chMShjq?ubj)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMShj?ubah}(h]h ]h"]h$]h&]uh1jhjq?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMShj>ubj)}(h;``const kernel_cap_t *permitted`` permitted capability set h](j)}(h!``const kernel_cap_t *permitted``h]j)}(hj?h]hconst kernel_cap_t *permitted}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThj?ubj)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMThj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMThj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhj>ubh)}(hbSet the **effective**, **inheritable**, and **permitted** capability sets for the current process.h](hSet the }(hj@hhhNhNubj)}(h **effective**h]h effective}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh, }(hj@hhhNhNubj)}(h**inheritable**h]h inheritable}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh, and }(hj@hhhNhNubj)}(h **permitted**h]h permitted}(hj-@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh) capability sets for the current process.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj>ubh)}(h **Return**h]j)}(hjH@h]hReturn}(hjJ@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj>ubh)}(h6Returns 0 and update **new** if permission is granted.h](hReturns 0 and update }(hj^@hhhNhNubj)}(h**new**h]hnew}(hjf@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^@ubh if permission is granted.}(hj^@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_capable (C function)c.security_capablehNtauh1hhj hhhNhNubh)}(hhh](j)}(heint security_capable (const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h]j)}(hdint security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMeubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhj@hMeubjg)}(hsecurity_capableh]jm)}(hsecurity_capableh]hsecurity_capable}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj@hMeubj)}(hP(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hj6}h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hcredh]hcred}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE j@sbc.security_capableasbuh1hhj@ubj)}(h h]h }(hj5AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjCAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hcredh]hcred}(hjPAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct user_namespace *nsh](j)}(hj6}h]hstruct}(hjiAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeAubj)}(h h]h }(hjvAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeAubh)}(hhh]jm)}(huser_namespaceh]huser_namespace}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]j1Ac.security_capableasbuh1hhjeAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeAubjm)}(hnsh]hns}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hint caph](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hcaph]hcap}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int optsh](j )}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Bubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Bubj )}(hinth]hint}(hj*BhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Bubj)}(h h]h }(hj8BhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Bubjm)}(hoptsh]hopts}(hjFBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhj@hMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj@hMeubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMehj@hhubj)}(hhh]h)}(h/Check if a process has the necessary capabilityh]h/Check if a process has the necessary capability}(hjpBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjmBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const struct cred *cred`` credentials to examine ``struct user_namespace *ns`` user namespace ``int cap`` capability requested ``unsigned int opts`` capability check options **Description** Check whether the **tsk** process has the **cap** capability in the indicated credentials. **cap** contains the capability . **opts** contains options for the capable check . **Return** Returns 0 if the capability is granted.h](h)}(h**Parameters**h]j)}(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.chMihjBubj)}(hhh](j)}(h3``const struct cred *cred`` credentials to examine h](j)}(h``const struct cred *cred``h]j)}(hjBh]hconst struct cred *cred}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjBubj)}(hhh]h)}(hcredentials to examineh]hcredentials to examine}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMfhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMfhjBubj)}(h-``struct user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hjBh]hstruct user_namespace *ns}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjBubj)}(hhh]h)}(huser namespaceh]huser namespace}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMghjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMghjBubj)}(h!``int cap`` capability requested h](j)}(h ``int cap``h]j)}(hj#Ch]hint cap}(hj%ChhhNhNubah}(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.chMhhjCubj)}(hhh]h)}(hcapability requestedh]hcapability requested}(hj. **opts** contains options for the capable check .h](hCheck whether the }(hjChhhNhNubj)}(h**tsk**h]htsk}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh process has the }(hjChhhNhNubj)}(h**cap**h]hcap}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh+ capability in the indicated credentials. }(hjChhhNhNubj)}(h**cap**h]hcap}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh7 contains the capability . }(hjChhhNhNubj)}(h**opts**h]hopts}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhC contains options for the capable check .}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjBubh)}(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.chMnhjBubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quotactl (C function)c.security_quotactlhNtauh1hhj 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}(hjKDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzubj)}(h h]h }(hjZDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGDhhhjYDhMzubjg)}(hsecurity_quotactlh]jm)}(hsecurity_quotactlh]hsecurity_quotactl}(hjlDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGDhhhjYDhMzubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hcmdsh]hcmds}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hint typeh](j )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(htypeh]htype}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hint idh](j )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hidh]hid}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hj'EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Eubj)}(h h]h }(hj4EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#Eubj)}(hj6}h]hstruct}(hjBEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Eubj)}(h h]h }(hjOEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#Eubh)}(hhh]jm)}(h super_blockh]h super_block}(hj`EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]Eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbEmodnameN classnameNjI jL )}jO ]jR )}jE jnDsbc.security_quotactlasbuh1hhj#Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#Eubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Eubjm)}(hsbh]hsb}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjGDhhhjYDhMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjCDhhhjYDhMzubah}(h]j>Dah ](jjeh"]h$]h&]jj)jhuh1hhjYDhMzhj@Dhhubj)}(hhh]h)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjEhhubah}(h]h ]h"]h$]h&]uh1jhj@DhhhjYDhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj 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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjEubj)}(hhh](j)}(h``int cmds`` commands h](j)}(h ``int cmds``h]j)}(hjFh]hint cmds}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjFubj)}(hhh]h)}(hcommandsh]hcommands}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM{hjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM{hjEubj)}(h``int type`` type h](j)}(h ``int type``h]j)}(hj?Fh]hint type}(hjAFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Fubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hj9Fubj)}(hhh]h)}(htypeh]htype}(hjXFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTFhM|hjUFubah}(h]h ]h"]h$]h&]uh1jhj9Fubeh}(h]h ]h"]h$]h&]uh1jhjTFhM|hjEubj)}(h``int id`` id h](j)}(h ``int id``h]j)}(hjxFh]hint id}(hjzFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjrFubj)}(hhh]h)}(hidh]hid}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM}hjFubah}(h]h ]h"]h$]h&]uh1jhjrFubeh}(h]h ]h"]h$]h&]uh1jhjFhM}hjEubj)}(h,``const struct super_block *sb`` filesystem h](j)}(h ``const struct super_block *sb``h]j)}(hjFh]hconst struct super_block *sb}(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)}(h filesystemh]h filesystem}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM~hjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM~hjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hjGhhhNhNubj)}(h**sb**h]hsb}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h **Return**h]j)}(hj%Gh]hReturn}(hj'GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Gubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj;GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quota_on (C function)c.security_quota_onhNtauh1hhj 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}(hjjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjyGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfGhhhjxGhMubjg)}(hsecurity_quota_onh]jm)}(hsecurity_quota_onh]hsecurity_quota_on}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfGhhhjxGhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hdentryh]hdentry}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.security_quota_onasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hdentryh]hdentry}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjfGhhhjxGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbGhhhjxGhMubah}(h]j]Gah ](jjeh"]h$]h&]jj)jhuh1hhjxGhMhj_Ghhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hj*HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'Hhhubah}(h]h ]h"]h$]h&]uh1jhj_GhhhjxGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBHjjBHjjjuh1hhhhj 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)}(hjLHh]h Parameters}(hjNHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFHubj)}(hhh]j)}(h!``struct dentry *dentry`` dentry h](j)}(h``struct dentry *dentry``h]j)}(hjkHh]hstruct dentry *dentry}(hjmHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeHubj)}(hhh]h)}(hdentryh]hdentry}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjeHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjbHubah}(h]h ]h"]h$]h&]uh1jhjFHubh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFHubh)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjHhhhNhNubj)}(h **dentry**h]hdentry}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFHubh)}(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.chMhjFHubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_syslog (C function)c.security_sysloghNtauh1hhj hhhNhNubh)}(hhh](j)}(hint security_syslog (int type)h]j)}(hint security_syslog(int type)h](j )}(hinth]hint}(hj$IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj IhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj3IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Ihhhj2IhMubjg)}(hsecurity_syslogh]jm)}(hsecurity_syslogh]hsecurity_syslog}(hjEIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj Ihhhj2IhMubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjaIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]Iubj)}(h h]h }(hjoIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]Iubjm)}(htypeh]htype}(hj}IhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYIubah}(h]h ]h"]h$]h&]jjuh1jhj Ihhhj2IhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj2IhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhj2IhMhjIhhubj)}(hhh]h)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring is allowed}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhj2IhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj 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)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubj)}(hhh]j)}(h"``int type`` SYSLOG_ACTION_* type h](j)}(h ``int type``h]j)}(hjIh]hint type}(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.chMhjIubj)}(hhh]h)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubh)}(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.chMhjIubh)}(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 }(hj9JhhhNhNubj)}(h**type**h]htype}(hjAJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Jubh values.}(hj9JhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubh)}(h **Return**h]j)}(hj\Jh]hReturn}(hj^JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjrJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_settime64 (C function)c.security_settime64hNtauh1hhj 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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhjJhMubjg)}(hsecurity_settime64h]jm)}(hsecurity_settime64h]hsecurity_settime64}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjJhMubj)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j)}(hconst struct timespec64 *tsh](j)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hj6}h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(h timespec64h]h timespec64}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.security_settime64asbuh1hhjJubj)}(h h]h }(hj7KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjEKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(htsh]hts}(hjRKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hconst struct timezone *tzh](j)}(hjh]hconst}(hjkKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgKubj)}(h h]h }(hjxKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgKubj)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgKubh)}(hhh]jm)}(htimezoneh]htimezone}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]j3Kc.security_settime64asbuh1hhjgKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgKubjm)}(htzh]htz}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgKubeh}(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,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhj 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)Lh]h Parameters}(hj+LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#Lubj)}(hhh](j)}(h)``const struct timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hjHLh]hconst struct timespec64 *ts}(hjJLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBLubj)}(hhh]h)}(hnew timeh]hnew time}(hjaLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]LhMhj^Lubah}(h]h ]h"]h$]h&]uh1jhjBLubeh}(h]h ]h"]h$]h&]uh1jhj]LhMhj?Lubj)}(h'``const struct timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hjLh]hconst struct timezone *tz}(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.chMhj{Lubj)}(hhh]h)}(htimezoneh]htimezone}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhj{Lubeh}(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:283: ./security/security.chMhj#Lubh)}(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 .}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#Lubh)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#Lubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhj 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(MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$MhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj7MhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$Mhhhj6MhMubjg)}(hsecurity_vm_enough_memory_mmh]jm)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjIMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$Mhhhj6MhMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hj6}h]hstruct}(hjeMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMubj)}(h h]h }(hjrMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaMubh)}(hhh]jm)}(h mm_structh]h mm_struct}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jKMsbc.security_vm_enough_memory_mmasbuh1hhjaMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaMubjm)}(hmmh]hmm}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]Mubj)}(h long pagesh](j )}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hpagesh]hpages}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]Mubeh}(h]h ]h"]h$]h&]jjuh1jhj$Mhhhj6MhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj Mhhhj6MhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhj6MhMhjMhhubj)}(hhh]h)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj6MhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5Njj5Njjjuh1hhhhj 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)}(hj?Nh]h Parameters}(hjANhhhNhNubah}(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.chMhj9Nubj)}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hj^Nh]hstruct mm_struct *mm}(hj`NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Nubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXNubj)}(hhh]h)}(h mm structh]h mm struct}(hjwNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsNhMhjtNubah}(h]h ]h"]h$]h&]uh1jhjXNubeh}(h]h ]h"]h$]h&]uh1jhjsNhMhjUNubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hjNh]h long pages}(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.chMhjNubj)}(hhh]h)}(hnumber of pagesh]hnumber of pages}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjUNubeh}(h]h ]h"]h$]h&]uh1jhj9Nubh)}(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.chMhj9Nubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj9Nubh)}(h **Return**h]j)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj9Nubh)}(hKReturns 0 if permission is granted by the LSM infrastructure to the caller.h]hKReturns 0 if permission is granted by the LSM infrastructure to the caller.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj9Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhj hhhNhNubh)}(hhh](j)}(hOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:OhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjMOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:OhhhjLOhMubjg)}(hsecurity_bprm_creds_for_exech]jm)}(hsecurity_bprm_creds_for_exech]hsecurity_bprm_creds_for_exec}(hj_OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[Oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:OhhhjLOhMubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]hstruct}(hj{OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwOubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jaOsbc.security_bprm_creds_for_execasbuh1hhjwOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwOubjm)}(hbprmh]hbprm}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsOubah}(h]h ]h"]h$]h&]jjuh1jhj:OhhhjLOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6OhhhjLOhMubah}(h]j1Oah ](jjeh"]h$]h&]jj)jhuh1hhjLOhMhj3Ohhubj)}(hhh]h)}(h"Prepare the credentials for exec()h]h"Prepare the credentials for exec()}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhj3OhhhjLOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information **Description** If the setup in prepare_exec_creds did not setup **bprm->cred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure. If execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped. This hook must not change current->cred, only **bprm->cred**. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hj Ph]h Parameters}(hj"PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hj?Ph]hstruct linux_binprm *bprm}(hjAPhhhNhNubah}(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.chMhj9Pubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjXPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTPhMhjUPubah}(h]h ]h"]h$]h&]uh1jhj9Pubeh}(h]h ]h"]h$]h&]uh1jhjTPhMhj6Pubah}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjzPh]h Description}(hj|PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubh)}(hXIf the setup in prepare_exec_creds did not setup **bprm->cred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure.h](h1If the setup in prepare_exec_creds did not setup }(hjPhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh properly for executing }(hjPhhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh , update the LSM’s portion of }(hjPhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh 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 }(hjPhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hjPhhhNhNubj)}(h**bprm**h]hbprm}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh% contains the linux_binprm structure.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubh)}(hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped.h](hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and }(hjPhhhNhNubj)}(h**bprm**h]hbprm}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh will always be dropped.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubh)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hjQhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hj"QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubh)}(h **Return**h]j)}(hj=Qh]hReturn}(hj?QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjSQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhj 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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~QhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~QhhhjQhMubjg)}(hsecurity_bprm_creds_from_fileh]jm)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~QhhhjQhMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jQsbc.security_bprm_creds_from_fileasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hbprmh]hbprm}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hj1RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Rubj)}(h h]h }(hj>RhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Rubj)}(hj6}h]hstruct}(hjLRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Rubj)}(h h]h }(hjYRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Rubh)}(hhh]jm)}(hfileh]hfile}(hjjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlRmodnameN classnameNjI jL )}jO ]jQc.security_bprm_creds_from_fileasbuh1hhj-Rubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Rubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Rubjm)}(hfileh]hfile}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhj~QhhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzQhhhjQhMubah}(h]juQah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhjwQhhubj)}(hhh]h)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjRhhhNhNubah}(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&]uh1jhjwQhhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhj 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)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRubj)}(hhh](j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjSh]hstruct linux_binprm *bprm}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hj'ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ShMhj$Subah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhj#ShMhjSubj)}(h,``const struct file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hjGSh]hconst struct file *file}(hjIShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjESubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjASubj)}(hhh]h)}(hassociated fileh]hassociated file}(hj`ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ShMhj]Subah}(h]h ]h"]h$]h&]uh1jhjASubeh}(h]h ]h"]h$]h&]uh1jhj\ShMhjSubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRubh)}(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 }(hjShhhNhNubj)}(h**file**h]hfile}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hjShhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhX 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 }(hjShhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hjShhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhJ any personality flags that should be cleared from current->personality. }(hjShhhNhNubj)}(h**bprm**h]hbprm}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh% contains the linux_binprm structure.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRubh)}(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.chMhjRubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_bprm_check (C function)c.security_bprm_checkhNtauh1hhj 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}(hjHThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjWThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDThhhjVThM ubjg)}(hsecurity_bprm_checkh]jm)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjiThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDThhhjVThM ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE jkTsbc.security_bprm_checkasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hbprmh]hbprm}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}Tubah}(h]h ]h"]h$]h&]jjuh1jhjDThhhjVThM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@ThhhjVThM ubah}(h]j;Tah ](jjeh"]h$]h&]jj)jhuh1hhjVThM hj=Thhubj)}(hhh]h)}(hMediate binary handler searchh]hMediate binary handler search}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUhhubah}(h]h ]h"]h$]h&]uh1jhj=ThhhjVThM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Ujj Ujjjuh1hhhhj 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)}(hj*Uh]h Parameters}(hj,UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$Uubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjIUh]hstruct linux_binprm *bprm}(hjKUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCUubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjbUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^UhM hj_Uubah}(h]h ]h"]h$]h&]uh1jhjCUubeh}(h]h ]h"]h$]h&]uh1jhj^UhM hj@Uubah}(h]h ]h"]h$]h&]uh1jhj$Uubh)}(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 hj$Uubh)}(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 }(hjUhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hjUhhhNhNubj)}(h**bprm**h]hbprm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubhC. This hook may be called multiple times during a single execve. }(hjUhhhNhNubj)}(h**bprm**h]hbprm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh% contains the linux_binprm structure.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$Uubh)}(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.chMhj$Uubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhj 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}(hj&VhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"VhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj5VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"Vhhhj4VhMubjg)}(hsecurity_bprm_committing_credsh]jm)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjGVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"Vhhhj4VhMubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjcVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Vubj)}(h h]h }(hjpVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_Vubj)}(hj6}h]hstruct}(hj~VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Vubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_Vubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jIVsb c.security_bprm_committing_credsasbuh1hhj_Vubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_Vubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Vubjm)}(hbprmh]hbprm}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[Vubah}(h]h ]h"]h$]h&]jjuh1jhj"Vhhhj4VhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhj4VhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhj4VhMhjVhhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhj4VhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj hNhNubj)}(hXg**Parameters** ``const struct linux_binprm *bprm`` binary program information **Description** Prepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by **current->cred** and the information set in **bprm->cred** by the bprm_creds_for_exec hook. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().h](h)}(h**Parameters**h]j)}(hj#Wh]h Parameters}(hj%WhhhNhNubah}(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.chMhjWubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjBWh]hconst struct linux_binprm *bprm}(hjDWhhhNhNubah}(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.chMhjcred** 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 }(hjWhhhNhNubj)}(h**current->cred**h]h current->cred}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh and the information set in }(hjWhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh# by the bprm_creds_for_exec hook. }(hjWhhhNhNubj)}(h**bprm**h]hbprm}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhX  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().}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhj 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}(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 }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjXhM+ubjg)}(hsecurity_bprm_committed_credsh]jm)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjXhM+ubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hj5XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Xubj)}(h h]h }(hjBXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Xubj)}(hj6}h]hstruct}(hjPXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Xubj)}(h h]h }(hj]XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Xubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjnXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpXmodnameN classnameNjI jL )}jO ]jR )}jE jXsbc.security_bprm_committed_credsasbuh1hhj1Xubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Xubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Xubjm)}(hbprmh]hbprm}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Xubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjXhM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjXhM+ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjXhM+hjWhhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjXhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhj 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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjXubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjYh]hconst struct linux_binprm *bprm}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjYubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hj-YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)YhM,hj*Yubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhj)YhM,hj Yubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h**Description**h]j)}(hjOYh]h Description}(hjQYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjXubh)}(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 }(hjeYhhhNhNubj)}(h**current->cred**h]h current->cred}(hjmYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeYubh. }(hjeYhhhNhNubj)}(h**bprm**h]hbprm}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeYubh 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().}(hjeYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhj 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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjYhM;ubjg)}(hsecurity_fs_context_submounth]jm)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjYhM;ubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_fs_context_submountasbuh1hhjYubj)}(h h]h }(hj3ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjAZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hfch]hfc}(hjNZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct super_block *referenceh](j)}(hj6}h]hstruct}(hjgZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcZubj)}(h h]h }(hjtZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcZubh)}(hhh]jm)}(h super_blockh]h super_block}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]j/Zc.security_fs_context_submountasbuh1hhjcZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcZubjm)}(h referenceh]h reference}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhM;ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhM;hjYhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` new filesystem context ``struct super_block *reference`` dentry reference for submount/remount **Description** Fill out the ->security field for a new fs_context. **Return** Returns 0 on success or negative error code on failure.h](h)}(h**Parameters**h]j)}(hj [h]h Parameters}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hj[ubj)}(hhh](j)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hj)[h]hstruct fs_context *fc}(hj+[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hj#[ubj)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hjB[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>[hM<hj?[ubah}(h]h ]h"]h$]h&]uh1jhj#[ubeh}(h]h ]h"]h$]h&]uh1jhj>[hM<hj [ubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hjb[h]hstruct super_block *reference}(hjd[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hj\[ubj)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hj{[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw[hM=hjx[ubah}(h]h ]h"]h$]h&]uh1jhj\[ubeh}(h]h ]h"]h$]h&]uh1jhjw[hM=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)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(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)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhj 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}(hj \hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhj\hMIubjg)}(hsecurity_fs_context_duph]jm)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hj*\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hMIubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fch](j)}(hj6}h]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 fs_contexth]h fs_context}(hjd\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjf\modnameN classnameNjI jL )}jO ]jR )}jE j,\sbc.security_fs_context_dupasbuh1hhjB\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)}(hfch]hfc}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>\ubj)}(hstruct fs_context *src_fch](j)}(hj6}h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]j\c.security_fs_context_dupasbuh1hhj\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)}(hsrc_fch]hsrc_fc}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>\ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj\hMIubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMIhj[hhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hj9]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhj6]hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj\hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ]jjQ]jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` destination filesystem context ``struct fs_context *src_fc`` source filesystem context **Description** Allocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. **fc** indicates the new filesystem context. **src_fc** indicates the original filesystem context. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj[]h]h Parameters}(hj]]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjU]ubj)}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjz]h]hstruct fs_context *fc}(hj|]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjt]ubj)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMJhj]ubah}(h]h ]h"]h$]h&]uh1jhjt]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMJhjq]ubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hj]h]hstruct fs_context *src_fc}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhj]ubj)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMKhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMKhjq]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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjU]ubh)}(hAllocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. **fc** indicates the new filesystem context. **src_fc** indicates the original filesystem context.h](hoAllocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. }(hj^hhhNhNubj)}(h**fc**h]hfc}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh' indicates the new filesystem context. }(hj^hhhNhNubj)}(h **src_fc**h]hsrc_fc}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh+ indicates the original filesystem context.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjU]ubh)}(h **Return**h]j)}(hj9^h]hReturn}(hj;^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjU]ubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjO^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjU]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhj 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}(hj~^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjz^hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz^hhhj^hMYubjg)}(hsecurity_fs_context_parse_paramh]jm)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjz^hhhj^hMYubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(h fs_contexth]h fs_context}(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_fs_context_parse_paramasbuh1hhj^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)}(hfch]hfc}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct fs_parameter *paramh](j)}(hj6}h]hstruct}(hj-_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)_ubj)}(h h]h }(hj:_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)_ubh)}(hhh]jm)}(h fs_parameterh]h fs_parameter}(hjK_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjM_modnameN classnameNjI jL )}jO ]j^!c.security_fs_context_parse_paramasbuh1hhj)_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)}(hparamh]hparam}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhjz^hhhj^hMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjv^hhhj^hMYubah}(h]jq^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMYhjs^hhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj_hhubah}(h]h ]h"]h$]h&]uh1jhjs^hhhj^hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` filesystem context ``struct fs_parameter *param`` filesystem parameter **Description** Userspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere. **Return** If the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj_ubj)}(hhh](j)}(h-``struct fs_context *fc`` filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hj_h]hstruct fs_context *fc}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj_ubj)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMZhj`ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj`hMZhj_ubj)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hj(`h]hstruct fs_parameter *param}(hj*`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj"`ubj)}(hhh]h)}(hfilesystem parameterh]hfilesystem parameter}(hjA`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)}(hjc`h]h Description}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj_ubh)}(hUserspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere.h]hUserspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere.}(hjy`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)}(hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h]hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhj 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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`hhhj`hMvubjg)}(hsecurity_sb_alloch]jm)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hMvubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h super_blockh]h super_block}(hj*ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,amodnameN classnameNjI jL )}jO ]jR )}jE j`sbc.security_sb_allocasbuh1hhjaubj)}(h h]h }(hjJahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjXahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hsbh]hsb}(hjeahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj`hhhj`hMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj`hMvubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMvhj`hhubj)}(hhh]h)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj 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)}(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.chMzhjaubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjah]hstruct super_block *sb}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjaubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMwhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMwhjaubah}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hj bh]h Description}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjaubh)}(hAllocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. **sb** contains the super_block structure to be modified.h](hAllocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. }(hj!bhhhNhNubj)}(h**sb**h]hsb}(hj)bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!bubh3 contains the super_block structure to be modified.}(hj!bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjaubh)}(h **Return**h]j)}(hjDbh]hReturn}(hjFbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBbubah}(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 operation was successful.h]h&Returns 0 if operation was successful.}(hjZbhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhj 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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhMubjg)}(hsecurity_sb_deleteh]jm)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(h super_blockh]h super_block}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE jbsbc.security_sb_deleteasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hsbh]hsb}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMubah}(h]j|bah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhj~bhhubj)}(hhh]h)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(hjIchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFchhubah}(h]h ]h"]h$]h&]uh1jhj~bhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjacjjacjjjuh1hhhhj 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)}(hjkch]h Parameters}(hjmchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjicubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjecubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjch]hstruct super_block *sb}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjecubh)}(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.chMhjecubh)}(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). }(hjchhhNhNubj)}(h**sb**h]hsb}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh3 contains the super_block structure being released.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjecubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_free (C function)c.security_sb_freehNtauh1hhj 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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj+dhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhj*dhMubjg)}(hsecurity_sb_freeh]jm)}(hsecurity_sb_freeh]hsecurity_sb_free}(hj=dhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhj*dhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hjYdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUdubj)}(h h]h }(hjfdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUdubh)}(hhh]jm)}(h super_blockh]h super_block}(hjwdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjydmodnameN classnameNjI jL )}jO ]jR )}jE j?dsbc.security_sb_freeasbuh1hhjUdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUdubjm)}(hsbh]hsb}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQdubah}(h]h ]h"]h$]h&]jjuh1jhjdhhhj*dhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhj*dhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhj*dhMhjdhhubj)}(hhh]h)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj*dhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj 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)}(hjdh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjeh]hstruct super_block *sb}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj6ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ehMhj3eubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhj2ehMhjeubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjXeh]h Description}(hjZehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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. }(hjnehhhNhNubj)}(h**sb**h]hsb}(hjvehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjneubh3 contains the super_block structure to be modified.}(hjnehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhj 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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjehMubjg)}(hsecurity_sb_kern_mounth]jm)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjehMubj)}(h(const struct super_block *sb)h]j)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(h super_blockh]h super_block}(hj%fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"fubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'fmodnameN classnameNjI jL )}jO ]jR )}jE jesbc.security_sb_kern_mountasbuh1hhjeubj)}(h h]h }(hjEfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjSfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hsbh]hsb}(hj`fhhhNhNubah}(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)}(h"Check if a kernel mount is allowedh]h"Check if a kernel mount is allowed}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhj hNhNubj)}(h**Parameters** ``const struct super_block *sb`` filesystem superblock **Description** Mount this **sb** if allowed by permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(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)}(h7``const struct super_block *sb`` filesystem superblock h](j)}(h ``const struct super_block *sb``h]j)}(hjfh]hconst struct super_block *sb}(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)}(hfilesystem superblockh]hfilesystem superblock}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubah}(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)}(h,Mount this **sb** if allowed by permissions.h](h Mount this }(hjghhhNhNubj)}(h**sb**h]hsb}(hj$ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh if allowed by permissions.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h **Return**h]j)}(hj?gh]hReturn}(hjAghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=gubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjUghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhj hhhNhNubh)}(hhh](j)}(hIint security_sb_show_options (struct seq_file *m, struct super_block *sb)h]j)}(hHint security_sb_show_options(struct seq_file *m, struct super_block *sb)h](j )}(hinth]hint}(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_sb_show_optionsh]jm)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghMubj)}(h,(struct seq_file *m, struct super_block *sb)h](j)}(hstruct seq_file *mh](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_sb_show_optionsasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hj hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hjh]hm}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hj2hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hubj)}(h h]h }(hj?hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hubh)}(hhh]jm)}(h super_blockh]h super_block}(hjPhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRhmodnameN classnameNjI jL )}jO ]jgc.security_sb_show_optionsasbuh1hhj.hubj)}(h h]h }(hjnhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hubj)}(hjh]h*}(hj|hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hubjm)}(hsbh]hsb}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|ghhhjghMubah}(h]jwgah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjyghhubj)}(hhh]h)}(h)Output the mount options for a superblockh]h)Output the mount options for a superblock}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjyghhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct seq_file *m`` output file ``struct super_block *sb`` filesystem superblock **Description** Show (print on **m**) mount options for this **sb**. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j)}(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)}(h#``struct seq_file *m`` output file h](j)}(h``struct seq_file *m``h]j)}(hjhh]hstruct seq_file *m}(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)}(h output fileh]h output file}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ihMhj iubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj ihMhjhubj)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hj-ih]hstruct super_block *sb}(hj/ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'iubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjFihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBihMhjCiubah}(h]h ]h"]h$]h&]uh1jhj'iubeh}(h]h ]h"]h$]h&]uh1jhjBihMhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjhih]h Description}(hjjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hj~ihhhNhNubj)}(h**m**h]hm}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~iubh) mount options for this }(hj~ihhhNhNubj)}(h**sb**h]hsb}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~iubh.}(hj~ihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(h **Return**h]j)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_statfs (C function)c.security_sb_statfshNtauh1hhj hhhNhNubh)}(hhh](j)}(h.int security_sb_statfs (struct dentry *dentry)h]j)}(h-int security_sb_statfs(struct dentry *dentry)h](j )}(hinth]hint}(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 }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhjjhMubjg)}(hsecurity_sb_statfsh]jm)}(hsecurity_sb_statfsh]hsecurity_sb_statfs}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj5jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1jubj)}(h h]h }(hjBjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1jubh)}(hhh]jm)}(hdentryh]hdentry}(hjSjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUjmodnameN classnameNjI jL )}jO ]jR )}jE jjsbc.security_sb_statfsasbuh1hhj1jubj)}(h h]h }(hjsjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1jubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1jubjm)}(hdentryh]hdentry}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-jubah}(h]h ]h"]h$]h&]jjuh1jhjihhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjihhubj)}(hhh]h)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats is allowed}(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&]uh1jhjihhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` superblock handle **Description** Check permission before obtaining filesystem statistics for the **mnt** mountpoint. **dentry** is a handle on the superblock for the filesystem. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMhjjubj)}(hhh]j)}(h,``struct dentry *dentry`` superblock handle h](j)}(h``struct dentry *dentry``h]j)}(hjjh]hstruct dentry *dentry}(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)}(hsuperblock handleh]hsuperblock handle}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]j)}(hj4kh]h Description}(hj6khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubh)}(hCheck permission before obtaining filesystem statistics for the **mnt** mountpoint. **dentry** is a handle on the superblock for the filesystem.h](h@Check permission before obtaining filesystem statistics for the }(hjJkhhhNhNubj)}(h**mnt**h]hmnt}(hjRkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJkubh mountpoint. }(hjJkhhhNhNubj)}(h **dentry**h]hdentry}(hjdkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJkubh2 is a handle on the superblock for the filesystem.}(hjJkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubh)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubh)}(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.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_mount (C function)c.security_sb_mounthNtauh1hhj hhhNhNubh)}(hhh](j)}(hxint security_sb_mount (const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h]j)}(hwint security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhjkhMubjg)}(hsecurity_sb_mounth]jm)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhjkhMubj)}(hb(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j)}(hconst char *dev_nameh](j)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj )}(hcharh]hchar}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hj*lhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hj8lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hdev_nameh]hdev_name}(hjElhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hj^lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZlubj)}(h h]h }(hjklhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZlubj)}(hj6}h]hstruct}(hjylhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZlubh)}(hhh]jm)}(hpathh]hpath}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE jksbc.security_sb_mountasbuh1hhjZlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZlubjm)}(hpathh]hpath}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst char *typeh](j)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hj"mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjm)}(htypeh]htype}(hj/mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjHmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDmubj)}(h h]h }(hjVmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDmubj )}(hlongh]hlong}(hjdmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDmubj)}(h h]h }(hjrmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDmubjm)}(hflagsh]hflags}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h void *datah](j )}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hdatah]hdata}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(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*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const char *dev_name`` filesystem backing device ``const struct path *path`` mount point ``const char *type`` filesystem type ``unsigned long flags`` mount flags ``void *data`` filesystem specific data **Description** Check permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubj)}(hhh](j)}(h3``const char *dev_name`` filesystem backing device h](j)}(h``const char *dev_name``h]j)}(hj-nh]hconst char *dev_name}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+nubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'nubj)}(hhh]h)}(hfilesystem backing deviceh]hfilesystem backing device}(hjFnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBnhMhjCnubah}(h]h ]h"]h$]h&]uh1jhj'nubeh}(h]h ]h"]h$]h&]uh1jhjBnhMhj$nubj)}(h(``const struct path *path`` mount point h](j)}(h``const struct path *path``h]j)}(hjfnh]hconst struct path *path}(hjhnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`nubj)}(hhh]h)}(h mount pointh]h mount point}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{nhMhj|nubah}(h]h ]h"]h$]h&]uh1jhj`nubeh}(h]h ]h"]h$]h&]uh1jhj{nhMhj$nubj)}(h%``const char *type`` filesystem type h](j)}(h``const char *type``h]j)}(hjnh]hconst char *type}(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.chMhjnubj)}(hhh]h)}(hfilesystem typeh]hfilesystem type}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj$nubj)}(h$``unsigned long flags`` mount flags h](j)}(h``unsigned long flags``h]j)}(hjnh]hunsigned long flags}(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.chMhjnubj)}(hhh]h)}(h mount flagsh]h mount flags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj$nubj)}(h(``void *data`` filesystem specific data h](j)}(h``void *data``h]j)}(hjoh]h void *data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj oubj)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hj*ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ohMhj'oubah}(h]h ]h"]h$]h&]uh1jhj oubeh}(h]h ]h"]h$]h&]uh1jhj&ohMhj$nubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hjLoh]h Description}(hjNohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(hXCheck permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted.h](h/Check permission before an object specified by }(hjbohhhNhNubj)}(h **dev_name**h]hdev_name}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh( is mounted on the mount point named by }(hjbohhhNhNubj)}(h**nd**h]hnd}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh. For an ordinary mount, }(hjbohhhNhNubj)}(h **dev_name**h]hdev_name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubhP identifies a device if the file system type requires a device. For a remount (}(hjbohhhNhNubj)}(h **flags**h]hflags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh & MS_REMOUNT), }(hjbohhhNhNubj)}(h **dev_name**h]hdev_name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh, is irrelevant. For a loopback/bind mount (}(hjbohhhNhNubj)}(h **flags**h]hflags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh & MS_BIND), }(hjbohhhNhNubj)}(h **dev_name**h]hdev_name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubh5 identifies the pathname of the object being mounted.}(hjbohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_umount (C function)c.security_sb_umounthNtauh1hhj hhhNhNubh)}(hhh](j)}(h8int security_sb_umount (struct vfsmount *mnt, int flags)h]j)}(h7int security_sb_umount(struct vfsmount *mnt, int flags)h](j )}(hinth]hint}(hj6phhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2phhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&ubj)}(h h]h }(hjEphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2phhhjDphM&ubjg)}(hsecurity_sb_umounth]jm)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hjWphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2phhhjDphM&ubj)}(h!(struct vfsmount *mnt, int flags)h](j)}(hstruct vfsmount *mnth](j)}(hj6}h]hstruct}(hjsphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjopubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjopubh)}(hhh]jm)}(hvfsmounth]hvfsmount}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE jYpsbc.security_sb_umountasbuh1hhjopubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjopubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjopubjm)}(hmnth]hmnt}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjopubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkpubj)}(h int flagsh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hflagsh]hflags}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkpubeh}(h]h ]h"]h$]h&]jjuh1jhj2phhhjDphM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.phhhjDphM&ubah}(h]j)pah ](jjeh"]h$]h&]jj)jhuh1hhjDphM&hj+phhubj)}(hhh]h)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hj+qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj(qhhubah}(h]h ]h"]h$]h&]uh1jhj+phhhjDphM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCqjjCqjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct vfsmount *mnt`` mounted filesystem ``int flags`` unmount flags **Description** Check permission before the **mnt** file system is unmounted. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjMqh]h Parameters}(hjOqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjGqubj)}(hhh](j)}(h,``struct vfsmount *mnt`` mounted filesystem h](j)}(h``struct vfsmount *mnt``h]j)}(hjlqh]hstruct vfsmount *mnt}(hjnqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjfqubj)}(hhh]h)}(hmounted filesystemh]hmounted filesystem}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM'hjqubah}(h]h ]h"]h$]h&]uh1jhjfqubeh}(h]h ]h"]h$]h&]uh1jhjqhM'hjcqubj)}(h``int flags`` unmount flags h](j)}(h ``int flags``h]j)}(hjqh]h int flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjqubj)}(hhh]h)}(h unmount flagsh]h unmount flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM(hjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhM(hjcqubeh}(h]h ]h"]h$]h&]uh1jhjGqubh)}(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.chM*hjGqubh)}(h=Check permission before the **mnt** file system is unmounted.h](hCheck permission before the }(hjqhhhNhNubj)}(h**mnt**h]hmnt}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh file system is unmounted.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjGqubh)}(h **Return**h]j)}(hjrh]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjGqubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj/rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjGqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhj hhhNhNubh)}(hhh](j)}(hTint security_sb_pivotroot (const struct path *old_path, const struct path *new_path)h]j)}(hSint security_sb_pivotroot(const struct path *old_path, const struct path *new_path)h](j )}(hinth]hint}(hj^rhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4ubj)}(h h]h }(hjmrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZrhhhjlrhM4ubjg)}(hsecurity_sb_pivotrooth]jm)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZrhhhjlrhM4ubj)}(h:(const struct path *old_path, const struct path *new_path)h](j)}(hconst struct path *old_pathh](j)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hj6}h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hpathh]hpath}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jrsbc.security_sb_pivotrootasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hold_pathh]hold_path}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hconst struct path *new_pathh](j)}(hjh]hconst}(hj(shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$subj)}(h h]h }(hj5shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$subj)}(hj6}h]hstruct}(hjCshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$subj)}(h h]h }(hjPshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$subh)}(hhh]jm)}(hpathh]hpath}(hjashhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcsmodnameN classnameNjI jL )}jO ]jrc.security_sb_pivotrootasbuh1hhj$subj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$subj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$subjm)}(hnew_pathh]hnew_path}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$subeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhjZrhhhjlrhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVrhhhjlrhM4ubah}(h]jQrah ](jjeh"]h$]h&]jj)jhuh1hhjlrhM4hjSrhhubj)}(hhh]h)}(h)Check permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjshhubah}(h]h ]h"]h$]h&]uh1jhjSrhhhjlrhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const struct path *old_path`` new location for current rootfs ``const struct path *new_path`` location of the new rootfs **Description** Check permission before pivoting the root filesystem. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chM8hjsubj)}(hhh](j)}(h@``const struct path *old_path`` new location for current rootfs h](j)}(h``const struct path *old_path``h]j)}(hjth]hconst struct path *old_path}(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.chM5hjsubj)}(hhh]h)}(hnew location for current rootfsh]hnew location for current rootfs}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM5hjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthM5hjsubj)}(h;``const struct path *new_path`` location of the new rootfs h](j)}(h``const struct path *new_path``h]j)}(hj>th]hconst struct path *new_path}(hj@thhhNhNubah}(h]h ]h"]h$]h&]uh1jhji_security**. The i_security field is initialized to NULL when the inode structure is allocated. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hj{h]hstruct inode *inode}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]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{ubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj{h]h gfp_t gfp}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hj |hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hj-|h]h Description}(hj/|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubh)}(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 }(hjC|hhhNhNubj)}(h**inode->i_security**h]hinode->i_security}(hjK|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC|ubhU. The i_security field is initialized to NULL when the inode structure is allocated.}(hjC|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)}(hjf|h]hReturn}(hjh|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj||hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_inode_free (C function)c.security_inode_freehNtauh1hhj 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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hMubjg)}(hsecurity_inode_freeh]jm)}(hsecurity_inode_freeh]hsecurity_inode_free}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(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.security_inode_freeasbuh1hhj|ubj)}(h h]h }(hj&}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj4}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hinodeh]hinode}(hjA}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhj|hhubj)}(hhh]h)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hjk}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjh}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhj 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)}(hj}h]hstruct inode *inode}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}ubj)}(hhh]h)}(h 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)}(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)}(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 }(hj}hhhNhNubj)}(h **inode**h]hinode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, 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.}(hj}hhhNhNubeh}(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(), }(hj~hhhNhNubj)}(h **inode**h]hinode}(hj&~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhX may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhj 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}(hj_~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFubj)}(h h]h }(hjn~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[~hhhjm~hMFubjg)}(h!security_inode_init_security_anonh]jm)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[~hhhjm~hMFubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(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~sb#c.security_inode_init_security_anonasbuh1hhj~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)}(hconst struct qstr *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hqstrh]hqstr}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]j~#c.security_inode_init_security_anonasbuh1hhj ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h!const struct inode *context_inodeh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j~#c.security_inode_init_security_anonasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h context_inodeh]h context_inode}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhj[~hhhjm~hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjW~hhhjm~hMFubah}(h]jR~ah ](jjeh"]h$]h&]jj)jhuh1hhjm~hMFhjT~hhubj)}(hhh]h)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhj2hhubah}(h]h ]h"]h$]h&]uh1jhjT~hhhjm~hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj 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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjQubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjvh]hstruct inode *inode}(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.chMGhjpubj)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjmubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hjh]hconst struct qstr *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubj)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hjȀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjĀhMHhjŀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjĀhMHhjmubj)}(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.chMIhjubj)}(hhh]h)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjmubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(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.chMKhjQubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjQubh)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjQubh)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhj hhhNhNubh)}(hhh](j)}(hNvoid security_path_post_mknod (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hMvoid security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMpubjg)}(hsecurity_path_post_mknodh]jm)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMpubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȁubj)}(h h]h }(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 jsbc.security_path_post_mknodasbuh1hhjȁubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȁubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȁubjm)}(hidmaph]hidmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȁubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjāubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hdentryh]hdentry}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jc.security_path_post_mknodasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjāubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjhhubj)}(hhh]h)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjׂjjׂjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` new file **Description** Update inode security field after a regular file has been created.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߂ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjۂ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.chMqhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hj9h]hstruct dentry *dentry}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhj3ubj)}(hhh]h)}(hnew fileh]hnew file}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMrhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMrhjubeh}(h]h ]h"]h$]h&]uh1jhjۂubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjۂubh)}(hBUpdate inode security field after a regular file has been created.h]hBUpdate inode security field after a regular file has been created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjۂubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhj 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}(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_rmdirh]jm)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjڃhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjփubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjǃhMubj)}(h/(const struct path *dir, struct dentry *dentry)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j܃sbc.security_path_rmdirasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jKc.security_path_rmdirasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj̈́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjڄhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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 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&]uh1jhjhhhjǃhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(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 *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjEh]hconst struct path *dir}(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)}(hparent directoryh]hparent directory}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(h.``struct dentry *dentry`` directory to remove h](j)}(h``struct dentry *dentry``h]j)}(hj~h]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj)}(hhh]h)}(hdirectory to removeh]hdirectory to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjυhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޅubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhj 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}(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_path_symlinkh]jm)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hMubj)}(hE(const struct path *dir, struct dentry *dentry, const char *old_name)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hj6}h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.security_path_symlinkasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjɆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hdirh]hdir}(hjֆhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_symlinkasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hconst char *old_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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hold_nameh]hold_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhjhhubj)}(hhh]h)}(h,Check if creating a symbolic link is allowedh]h,Check if creating a symbolic link is allowed}(hj͇hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjʇhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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&]uh1jhj ubah}(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}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h(``struct dentry *dentry`` symbolic link h](j)}(h``struct dentry *dentry``h]j)}(hjGh]hstruct dentry *dentry}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubj)}(hhh]h)}(h symbolic linkh]h symbolic link}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjzubj)}(hhh]h)}(h file pathnameh]h file pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(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)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjшhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_path_link (C function)c.security_path_linkhNtauh1hhj 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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hMubjg)}(hsecurity_path_linkh]jm)}(hsecurity_path_linkh]hsecurity_path_link}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.security_path_linkasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hj։hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҉ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj҉ubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҉ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj҉ubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_linkasbuh1hhj҉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)}(hnew_dirh]hnew_dir}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj҉ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hstruct dentry *new_dentryh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_linkasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhjhhubj)}(hhh]h)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjߊhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``const struct path *new_dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``struct dentry *old_dentry`` existing file h](j)}(h``struct dentry *old_dentry``h]j)}(hj#h]hstruct dentry *old_dentry}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h existing fileh]h existing file}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h4``const struct path *new_dir`` new parent directory h](j)}(h``const struct path *new_dir``h]j)}(hj\h]hconst struct path *new_dir}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubj)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h'``struct dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hjh]hstruct dentry *new_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnew linkh]hnew link}(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 creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_path_truncate (C function)c.security_path_truncatehNtauh1hhj 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 hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhMubjg)}(hsecurity_path_truncateh]jm)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhMubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j_sbc.security_path_truncateasbuh1hhjuubj)}(h h]h }(hjҌhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhMhj1hhubj)}(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&]uh1jhj1hhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhj 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)}(hj9h]h Parameters}(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.chMhj3ubj)}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjXh]hconst struct path *path}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRubj)}(hhh]h)}(hfileh]hfile}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj3ubh)}(hCheck permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook.h]hCheck permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj3ubh)}(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.chMhj3ubh)}(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.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chmod (C function)c.security_path_chmodhNtauh1hhj 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&]uh1jhjhhhj hMubjg)}(hsecurity_path_chmodh]jm)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h'(const struct path *path, umode_t mode)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hpathh]hpath}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE j"sbc.security_path_chmodasbuh1hhj8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hj̎hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɎubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjΎmodnameN classnameNjI jL )}jO ]jc.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&]noemphjjuh1jhj4ubeh}(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 changing the file's mode is allowedh]h.Check if changing the file’s mode is allowed}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhj 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)}(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!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjch]hconst struct path *path}(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)}(hfileh]hfile}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(h``umode_t mode`` new mode h](j)}(h``umode_t mode``h]j)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnew modeh]hnew mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(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 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)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chown (C function)c.security_path_chownhNtauh1hhj 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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(hsecurity_path_chownh]jm)}(hsecurity_path_chownh]hsecurity_path_chown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjuhMubj)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̐hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjݐhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڐubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjߐmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chownasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h kuid_t uidh](h)}(hhh]jm)}(hkuid_th]hkuid_t}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(huidh]huid}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h kgid_t gidh](h)}(hhh]jm)}(hkgid_th]hkgid_t}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(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)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjґhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjϑhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chMhj ubj)}(hhh]h)}(hfileh]hfile}(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``kuid_t uid`` file owner h](j)}(h``kuid_t uid``h]j)}(hjLh]h kuid_t uid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubj)}(hhh]h)}(h file ownerh]h file owner}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhj ubj)}(h``kgid_t gid`` file group h](j)}(h``kgid_t gid``h]j)}(hjh]h kgid_t gid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h file grouph]h file group}(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}(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)}(hBCheck for permission to change owner/group of a file or directory.h]hBCheck for permission to change owner/group of a file or directory.}(hj֒hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_chroot (C function)c.security_path_chroothNtauh1hhj 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}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj:hM$ubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjhhhNhNubah}(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 ]jR )}jE jOsbc.security_path_chrootasbuh1hhjeubj)}(h h]h }(hj“hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjГhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hpathh]hpath}(hjݓhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj:hM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj:hM$hj!hhubj)}(hhh]h)}(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&]uh1jhj!hhhj:hM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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&]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`` directory h](j)}(h``const struct path *path``h]j)}(hjHh]hconst struct path *path}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hjBubj)}(hhh]h)}(h directoryh]h directory}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM%hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM%hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hj#ubh)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj#ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hj#ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhj 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.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMEubjg)}(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&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMEubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsb$c.security_inode_post_create_tmpfileasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jf$c.security_inode_post_create_tmpfileasbuh1hhjubj)}(h h]h }(hjڕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj)}(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.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj 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)}(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.chMIhj;ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hj`h]hstruct mnt_idmap *idmap}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjZubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMFhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMFhjWubj)}(h1``struct inode *inode`` inode of the new tmpfile h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjubj)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hjԖh]h Description}(hj֖hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҖubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhj;ubh)}(hah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhj@hhubj)}(hhh]h)}(h(Check if removing a directory is allowedh]h(Check if removing a directory is allowed}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` directory to be removed **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjՠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѠhMhjҠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѠhMhjubj)}(h2``struct dentry *dentry`` directory to be removed h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hdirectory to be removedh]hdirectory to be removed}(hjhhhNhNubah}(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)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjWh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhj 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}(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_mknodh]jm)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j)}(hstruct inode *dirh](j)}(hj6}h]hstruct}(hj١hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjաubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjաubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_mknodasbuh1hhjաubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjաubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjաubjm)}(hdirh]hdir}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjաubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѡubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hdentryh]hdentry}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jc.security_inode_mknodasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѡubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_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 }(hjܢhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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.security_inode_mknodasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѡubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj 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)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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`` new file h](j)}(h``struct dentry *dentry``h]j)}(hj֣h]hstruct dentry *dentry}(hjأhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԣubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjУubj)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjУubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``umode_t mode`` new file mode h](j)}(h``umode_t mode``h]j)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 new file modeh]h new file mode}(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``dev_t dev`` device number h](j)}(h ``dev_t dev``h]j)}(hjHh]h dev_t dev}(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 device numberh]h device number}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.h]hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_inode_rename (C function)c.security_inode_renamehNtauh1hhj 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&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hx(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j)}(hstruct inode *old_dirh](j)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(hinodeh]hinode}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_renameasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hold_dirh]hold_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct dentry *old_dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jfc.security_inode_renameasbuh1hhjubj)}(h h]h }(hjڥhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct inode *new_dirh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hinodeh]hinode}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jfc.security_inode_renameasbuh1hhj ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnew_dirh]hnew_dir}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct dentry *new_dentryh](j)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jfc.security_inode_renameasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjȦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(h new_dentryh]h new_dentry}(hjզhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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 renaming a file is allowedh]h#Check if renaming a file 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj 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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj)}(hhh](j)}(h;``struct inode *old_dir`` parent directory of the old file h](j)}(h``struct inode *old_dir``h]j)}(hjh]hstruct inode *old_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h parent directory of the old fileh]h parent directory of the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``struct dentry *old_dentry`` the old file h](j)}(h``struct dentry *old_dentry``h]j)}(hjʧh]hstruct dentry *old_dentry}(hj̧hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȧubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjħubj)}(hhh]h)}(h the old fileh]h the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߧhMhjubah}(h]h ]h"]h$]h&]uh1jhjħubeh}(h]h ]h"]h$]h&]uh1jhjߧhMhjubj)}(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&]uh1jhjhMhjubj)}(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.chMhj6ubj)}(hhh]h)}(h the new fileh]h the new file}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(h``unsigned int flags`` flags h](j)}(h``unsigned int flags``h]j)}(hjuh]hunsigned int flags}(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)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(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.chMhjlubh)}(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.chMhjlubh)}(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.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhj 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&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hdentryh]hdentry}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j?sbc.security_inode_readlinkasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj)}(hhh]h)}(h+Check if reading a symbolic link is allowedh]h+Check if reading a symbolic link is allowed}(hjܩhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj٩hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhj 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 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_follow_linkh]jm)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҪhMubj)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_follow_linkasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hj6}h]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 ]j;c.security_inode_follow_linkasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hinodeh]hinode}(hjʫhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool rcuh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj߫ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj߫ubjm)}(hrcuh]hrcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj߫ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjҪhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjҪhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjҪhMhjhhubj)}(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.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjҪhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhj 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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubj)}(hhh](j)}(h&``struct dentry *dentry`` link dentry 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.chMhjcubj)}(hhh]h)}(h link dentryh]h link dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(h#``struct inode *inode`` link inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h link inodeh]h link inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj`ubj)}(h&``bool rcu`` true if in RCU-walk mode h](j)}(h ``bool rcu``h]j)}(hj۬h]hbool rcu}(hjݬhhhNhNubah}(h]h ]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)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(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&]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.chMhjDubh)}(htCheck permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable.h](hKCheck permission to follow a symbolic link when looking up a pathname. If }(hj,hhhNhNubj)}(h**rcu**h]hrcu}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh is true, }(hj,hhhNhNubj)}(h **inode**h]hinode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh is not stable.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubh)}(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.chMhjDubh)}(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.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhj 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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j߯sbc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j3c.security_inode_post_setattrasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hdentryh]hdentry}(hj°hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int ia_validh](j )}(hinth]hint}(hj۰hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjװubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjװubjm)}(hia_validh]hia_valid}(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*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʯhM. ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj 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)}(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.chM2 hj=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.chM/ hj\ubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM/ hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM/ hjYubj)}(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.chM0 hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0 hjYubj)}(h%``int ia_valid`` file attributes set h](j)}(h``int ia_valid``h]j)}(hjԱh]h int ia_valid}(hjֱhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjұubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hjαubj)}(hhh]h)}(hfile attributes seth]hfile attributes set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1 hjubah}(h]h ]h"]h$]h&]uh1jhjαubeh}(h]h ]h"]h$]h&]uh1jhjhM1 hjYubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hj=ubh)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhj 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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhM> ubjg)}(hsecurity_inode_getattrh]jm)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhM> 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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjʲhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj̲modnameN classnameNjI jL )}jO ]jR )}jE jwsbc.security_inode_getattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhM> ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhM> ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhM> hjIhhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hj,hhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj 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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjKubj)}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjph]hconst struct path *path}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjjubj)}(hhh]h)}(hfileh]hfile}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjKubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hjKubh)}(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.chMB hjKubh)}(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.chMC hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhj 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.chMM ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj%hMM ubjg)}(hsecurity_inode_setxattrh]jm)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMM ubj)}(hm(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE j:sbc.security_inode_setxattrasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjƴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj´ubj)}(h h]h }(hjӴhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj´ubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.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&]noemphjjuh1jhjLubj)}(hconst char *nameh](j)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj )}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnameh]hname}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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*}(hjʵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hj׵hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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_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&]noemphjjuh1jhjLubj)}(h int flagsh](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hflagsh]hflags}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMM hj hhubj)}(hhh]h)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMM hj{hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name ``const void *value`` xattr value ``size_t size`` size of xattr value ``int flags`` flags **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMN hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjضhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԶhMN hjնubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԶhMN hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMO hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMO hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMO hjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj1h]hconst char *name}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMP hj+ubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMP hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMP hjubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjjh]hconst void *value}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjdubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQ hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMQ hjubj)}(h$``size_t size`` size of xattr value h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjubj)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(h``int flags`` 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.chMS hjַubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjַubeh}(h]h ]h"]h$]h&]uh1jhjhMS 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.chMU hjubh)}(hX%This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.h](hdThis hook performs the desired permission checks before setting the extended attributes (xattrs) on }(hj-hhhNhNubj)}(h **dentry**h]hdentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjubh)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMY hjubh)}(h **Return**h]j)}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM{ ubjg)}(hsecurity_inode_set_aclh]jm)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hjŸhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM{ ubj)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݸubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݸubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jǸsbc.security_inode_set_aclasbuh1hhjݸubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݸubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݸubjm)}(hidmaph]hidmap}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݸubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٸubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hdentryh]hdentry}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jc.security_inode_set_aclasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٸubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjùhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٸubj)}(hstruct posix_acl *kaclh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(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}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(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*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjwhhhNhNubah}(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 setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjܺubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM| hjubah}(h]h ]h"]h$]h&]uh1jhjܺubeh}(h]h ]h"]h$]h&]uh1jhjhM| hjٺubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM} hjubj)}(hhh]h)}(hfileh]hfile}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM} hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM} hjٺubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjTh]hconst char *acl_name}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjNubj)}(hhh]h)}(hacl nameh]hacl name}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM~ hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM~ hjٺubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjh]hstruct posix_acl *kacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h acl structh]h acl struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjٺubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjȻh]h Description}(hjʻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƻubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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 }(hj޻hhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޻ubh are identified by }(hj޻hhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޻ubh.}(hj޻hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhj 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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhM ubjg)}(hsecurity_inode_post_set_aclh]jm)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhM ubj)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j{sbc.security_inode_post_set_aclasbuh1hhjubj)}(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)}(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&]noemphjjuh1jhjubj)}(hstruct posix_acl *kaclh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(h posix_aclh]h posix_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jϼc.security_inode_post_set_aclasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hkaclh]hkacl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhM ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhM hjMhhubj)}(hhh]h)}(h)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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj&h]hstruct dentry *dentry}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj)}(hhh]h)}(hfileh]hfile}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hj_h]hconst char *acl_name}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjYubj)}(hhh]h)}(hacl nameh]hacl name}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM hjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjh]hstruct posix_acl *kacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h acl structh]h acl struct}(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)}(hUpdate inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](hDUpdate inode security data after successfully setting posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The posix acls in }(hjhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhj 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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj\hM ubjg)}(hsecurity_inode_get_aclh]jm)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj\hM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 jqsbc.security_inode_get_aclasbuh1hhjubj)}(h h]h }(hjɿhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj׿hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 ]jſc.security_inode_get_aclasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj )}(hcharh]hchar}(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)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj\hM ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj\hM hjChhubj)}(hhh]h)}(h&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjUh]hstruct dentry *dentry}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjOubj)}(hhh]h)}(hfileh]hfile}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hYCheck permission before getting osix acls, the posix acls are identified by **acl_name**.h](hLCheck permission before getting osix acls, the posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhj 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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjUhM ubjg)}(hsecurity_inode_remove_aclh]jm)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjUhM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 jjsbc.security_inode_remove_aclasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_remove_aclasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhM ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hj<hhubj)}(hhh]h)}(h(Check if removing a posix acl is allowedh]h(Check if removing a posix acl is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM hj ubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjNh]hstruct dentry *dentry}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubj)}(hhh]h)}(hfileh]hfile}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hj ubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h[Check permission before removing posix acls, the posix acls are identified by **acl_name**.h](hNCheck permission before removing posix acls, the posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhj 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}(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 }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjNhM ubjg)}(hsecurity_inode_post_remove_aclh]jm)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjNhM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(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 jcsb c.security_inode_post_remove_aclasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.security_inode_post_remove_aclasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hconst char *acl_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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhM ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhM hj5hhubj)}(hhh]h)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hidmap of the mounth]hidmap of the mount}(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``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjGh]hstruct dentry *dentry}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubj)}(hhh]h)}(hfileh]hfile}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hUpdate inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](hEUpdate inode security data after successfully removing posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in }(hjhhhNhNubj)}(h **idmap**h]hidmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh#. The posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhj 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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjDhM ubjg)}(hsecurity_inode_post_setxattrh]jm)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhM ubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_inode_post_setxattrasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst void *valueh](j)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj )}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(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_post_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&]noemphjjuh1jhjkubj)}(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&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhM ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhM hj+hhubj)}(hhh]h)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj*hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj 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)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjnh]hstruct dentry *dentry}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM hjeubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjeubj)}(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.chM hjubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjeubj)}(h!``size_t size`` xattr value size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjeubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjRh]h int flags}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjLubj)}(hhh]h)}(hflagsh]hflags}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM hjeubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubh)}(h@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_getxattrh]jm)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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_getxattrasbuh1hhj 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}(hjhhhhNhNubah}(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&]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 xattr access is allowedh]h Check if xattr access is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Check permission before obtaining the extended attributes identified by **name** for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj0h]hstruct dentry *dentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj*ubj)}(hhh]h)}(hfileh]hfile}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hj'ubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjih]hconst char *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.chM hjcubj)}(hhh]h)}(h xattr nameh]h xattr name}(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**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]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`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhj hhhNhNubh)}(hhh](j)}(h4int security_inode_listxattr (struct dentry *dentry)h]j)}(h3int security_inode_listxattr(struct dentry *dentry)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.chM ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhjBhM ubjg)}(hsecurity_inode_listxattrh]jm)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhM ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.security_inode_listxattrasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(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)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj 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.chM hjubj)}(hhh]j)}(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.chM hj/ubj)}(hhh]h)}(hfileh]hfile}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM hj,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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hVCheck permission before obtaining the list of extended attribute names for **dentry**.h](hKCheck permission before obtaining the list of extended attribute names for }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhj 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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_removexattrh]jm)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_removexattrasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jec.security_inode_removexattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]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 removing an xattr is allowedh]h%Check if removing an xattr 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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXU**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj.h]hconst char *name}(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 xattr nameh]h xattr name}(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)}(hX%This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.h](hdThis hook performs the desired permission checks before setting the extended attributes (xattrs) on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhj 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.chM4 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM4 ubjg)}(hsecurity_inode_post_removexattrh]jm)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM4 ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hdentryh]hdentry}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.security_inode_post_removexattrasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(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&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM4 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM4 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM4 hjhhubj)}(hhh]h)}(h'Update the inode after a removexattr oph]h'Update the inode after a removexattr op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj 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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hj/ubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjTh]hstruct dentry *dentry}(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.chM5 hjNubj)}(hhh]h)}(hfileh]hfile}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM5 hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM5 hjKubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6 hjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hj/ubh)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7 hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhj 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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/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&]uh1jhj hhhjhMB ubjg)}(hsecurity_inode_file_setattrh]jm)}(hsecurity_inode_file_setattrh]hsecurity_inode_file_setattr}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMB ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE j0sbc.security_inode_file_setattrasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct file_kattr *fah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_file_setattrasbuh1hhjubj)}(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&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMB ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMB ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMB hjhhubj)}(hhh]h)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMB ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhj 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)}(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.chMF hjYubj)}(hhh](j)}(hH``struct dentry *dentry`` file to set filesystem extended attributes on h](j)}(h``struct dentry *dentry``h]j)}(hj~h]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hjxubj)}(hhh]h)}(h-file to set filesystem extended attributes onh]h-file to set filesystem extended attributes on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMC hjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjuubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode h](j)}(h``struct file_kattr *fa``h]j)}(hjh]hstruct file_kattr *fa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjubj)}(hhh]h)}(h'extended attributes to set on the inodeh]h'extended attributes to set on the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMD hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMD 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hjYubh)}(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.chME hjYubh)}(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.chMH hjYubh)}(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.chMI hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhj 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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhMQ ubjg)}(hsecurity_inode_file_getattrh]jm)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhMQ ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_file_getattrasbuh1hhjubj)}(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)}(hstruct file_kattr *fah](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jc.security_inode_file_getattrasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hfah]hfa}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMQ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhMQ ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMQ hjShhubj)}(hhh]h)}(h&check if retrieving fsxattr is allowedh]h&check if retrieving fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMQ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX.**Parameters** ``struct dentry *dentry`` file to retrieve filesystem extended attributes from ``struct file_kattr *fa`` extended attributes to get **Description** Called when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjubj)}(hhh](j)}(hO``struct dentry *dentry`` file to retrieve filesystem extended attributes from h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjubj)}(hhh]h)}(h4file to retrieve filesystem extended attributes fromh]h4file to retrieve filesystem extended attributes from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(h5``struct file_kattr *fa`` extended attributes to get h](j)}(h``struct file_kattr *fa``h]j)}(hjh]hstruct file_kattr *fa}(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.chMS hjubj)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS hjubeh}(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.chMU hjubh)}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMX hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM` ubjg)}(hsecurity_inode_need_killprivh]jm)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM` ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_need_killprivasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM` ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM` ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM` hjhhubj)}(hhh]h)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXw**Parameters** ``struct dentry *dentry`` associated dentry **Description** Called when an inode has been changed to determine if security_inode_killpriv() should be called. **Return** Return <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjubj)}(hhh]j)}(h,``struct dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMa hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMa 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.chMc hjubh)}(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.chMb 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.chMe hjubh)}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhj 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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjehMp ubjg)}(hsecurity_inode_killprivh]jm)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjehMp ubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jzsbc.security_inode_killprivasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(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_killprivasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjehMp ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjehMp ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMp hjLhhubj)}(hhh]h)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMp ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXq**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` associated dentry **Description** The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held. **Return** Return 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMq hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMq hjubj)}(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.chMr hjubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMr hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMr 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.chMt hjubh)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.h](hThe }(hjRhhhNhNubj)}(h **dentry**h]hdentry}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hjRhhhNhNubeh}(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)}(hjuh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hjubh)}(hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h]hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_getsecurityh]jm)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getsecurityasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(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 inode *inodeh](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j1c.security_inode_getsecurityasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void **bufferh](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&]uh1jhj2ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hbufferh]hbuffer}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool alloch](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halloch]halloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hj h]hstruct mnt_idmap *idmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(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``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjDh]hstruct inode *inode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj>ubj)}(hhh]h)}(hinodeh]hinode}(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 *name`` xattr 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.chM hjwubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hjh]h void **buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``bool alloc`` allocation flag h](j)}(h``bool alloc``h]j)}(hjh]h bool alloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hallocation flagh]hallocation flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]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)}(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 }(hj@hhhNhNubj)}(h**name**h]hname}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh for }(hj@hhhNhNubj)}(h **inode**h]hinode}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh via }(hj@hhhNhNubj)}(h **buffer**h]hbuffer}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh . Note that }(hj@hhhNhNubj)}(h**name**h]hname}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhT is the remainder of the attribute name after the security prefix has been removed. }(hj@hhhNhNubj)}(h **alloc**h]halloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhj 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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_setsecurityh]jm)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(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}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setsecurityasbuh1hhj)ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jgc.security_inode_setsecurityasbuh1hhjUubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(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&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Set the xattr security label of an inodeh]h(Set the xattr security label of an inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct 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.chM hj"ubj)}(hhh]h)}(hinodeh]hinode}(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 ``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.chM hj[ubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM hjubj)}(h%``const void *value`` security label h](j)}(h``const void *value``h]j)}(hjh]hconst void *value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h)``size_t size`` length of security label h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hlength of security labelh]hlength of security label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hj h]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hflagsh]hflags}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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 hjubh)}(hX=Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed.h](h'Set the security label associated with }(hj]hhhNhNubj)}(h**name**h]hname}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh for }(hj]hhhNhNubj)}(h **inode**h]hinode}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh# from the extended attribute value }(hj]hhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh. }(hj]hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh indicates the size of the }(hj]hhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh in bytes. }(hj]hhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hj]hhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubhT is the remainder of the attribute name after the security. prefix has been removed.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhj 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}(hj1hhhNhNubah}(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_inode_getlsmproph]jm)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj?hM ubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jTsbc.security_inode_getlsmpropasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct lsm_prop *proph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_getlsmpropasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hproph]hprop}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj?hM ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj?hM hj&hhubj)}(hhh]h)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjahhhNhNubah}(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&]jjjjyjjyjjjuh1hhhhj 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.chM hj}ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h=``struct lsm_prop *prop`` lsm specific information to return h](j)}(h``struct lsm_prop *prop``h]j)}(hjh]hstruct lsm_prop *prop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]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)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhj 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}(hj[hhhNhNubah}(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 }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjihM ubjg)}(hsecurity_kernfs_init_securityh]jm)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjihM ubj)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j)}(hstruct kernfs_node *kn_dirh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kernfs_nodeh]h kernfs_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j~sbc.security_kernfs_init_securityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkn_dirh]hkn_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct kernfs_node *knh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kernfs_nodeh]h kernfs_node}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jc.security_kernfs_init_securityasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hknh]hkn}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjihM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjihM ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihM hjPhhubj)}(hhh]h)}(h"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjihM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX/**Parameters** ``struct kernfs_node *kn_dir`` parent kernfs node ``struct kernfs_node *kn`` the kernfs node to initialize **Description** Initialize the security context of a newly created kernfs node based on its own and its parent's attributes. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hjh]hstruct kernfs_node *kn_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h9``struct kernfs_node *kn`` the kernfs node to initialize h](j)}(h``struct kernfs_node *kn``h]j)}(hjh]hstruct kernfs_node *kn}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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.}(hjVhhhNhNubah}(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)}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_permission (C function)c.security_file_permissionhNtauh1hhj 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}(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_permissionh]jm)}(hsecurity_file_permissionh]hsecurity_file_permission}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM& ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_permissionasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint maskh](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubjm)}(hmaskh]hmask}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM& ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM& ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM& hjhhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM& hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM& ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct file *file`` file ``int mask`` requested permissions **Description** Check file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hjubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM' hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM' hjubj)}(h#``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}(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)}(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.}(hjlhhhNhNubah}(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}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_file_alloc (C function)c.security_file_allochNtauh1hhj 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}(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_alloch]jm)}(hsecurity_file_alloch]hsecurity_file_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM> ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(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 }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjXhhhNhNubah}(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#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.chM> hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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 hjubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]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)}(hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.h]hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ 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.chMC hjubh)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_release (C function)c.security_file_releasehNtauh1hhj 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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhMS ubjg)}(hsecurity_file_releaseh]jm)}(hsecurity_file_releaseh]hsecurity_file_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhMS ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_releaseasbuh1hhjubj)}(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&]jjuh1jhjfhhhjxhMS ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhMS ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhMS hj_hhubj)}(hhh]h)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hj'hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMS ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhj 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)}(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.chMW hjFubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjkh]hstruct file *file}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjeubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMT hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMT hjbubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV hjFubh)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_free (C function)c.security_file_freehNtauh1hhj 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.chM^ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM^ ubjg)}(hsecurity_file_freeh]jm)}(hsecurity_file_freeh]hsecurity_file_free}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM^ ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hfileh]hfile}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_freeasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM^ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM^ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM^ hjhhubj)}(hhh]h)}(hFree a file's LSM blobh]hFree 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.chM^ hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Deallocate and free any security structures stored in file->f_security.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_ hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjubh)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhj 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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhM ubjg)}(hsecurity_mmap_fileh]jm)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhM ubj)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_mmap_fileasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hunsigned long proth](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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hproth]hprot}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhM ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhM hjahhubj)}(hhh]h)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj)}(hhh]h)}(hfileh]hfile}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hjubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hjHh]hunsigned long prot}(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 protection applied by the kernelh]h protection applied by the kernel}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM hjubj)}(h``unsigned long flags`` flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hdCheck permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory.h](h-Check permissions for a mmap operation. The }(hjhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ may be NULL, e.g. if mapping anonymous memory.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_addr (C function)c.security_mmap_addrhNtauh1hhj hhhNhNubh)}(hhh](j)}(h+int security_mmap_addr (unsigned long addr)h]j)}(h*int security_mmap_addr(unsigned long addr)h](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhX/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&]uh1jhj6hhhjHhM ubjg)}(hsecurity_mmap_addrh]jm)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhjHhM ubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](j )}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhM ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhM hj/hhubj)}(hhh]h)}(h'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjubah}(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.chM hjubh)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hjkhhhNhNubj)}(h**addr**h]haddr}(hjshhhNhNubah}(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.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhj 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}(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_mprotecth]jm)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(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 reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_mprotectasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hvmah]hvma}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long reqproth](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)}(hreqproth]hreqprot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections is allowed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj 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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQubj)}(hhh](j)}(h-``struct vm_area_struct *vma`` memory region h](j)}(h``struct vm_area_struct *vma``h]j)}(hjvh]hstruct vm_area_struct *vma}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjpubj)}(hhh]h)}(h memory regionh]h memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM hjmubj)}(h;``unsigned long reqprot`` application requested protection h](j)}(h``unsigned long reqprot``h]j)}(hjh]hunsigned long reqprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h application requested protectionh]h application requested protection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjmubj)}(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 hjmubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQubh)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hcmdh]hcmd}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(hCheck if a file lock is allowedh]hCheck if a file lock is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX$**Parameters** ``struct file *file`` file ``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) **Description** Check permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h<``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) h](j)}(h``unsigned int cmd``h]j)}(hjh]hunsigned int cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h&lock operation (e.g. F_RDLCK, F_WRLCK)h]h&lock operation (e.g. F_RDLCK, F_WRLCK)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjubeh}(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.chM hjubh)}(huCheck permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks.h]huCheck permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_file_fcntl (C function)c.security_file_fcntlhNtauh1hhj hhhNhNubh)}(hhh](j)}(hPint security_file_fcntl (struct file *file, unsigned int cmd, unsigned long arg)h]j)}(hOint security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_fcntlh]jm)}(hsecurity_file_fcntlh]hsecurity_file_fcntl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_fcntlasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cmdh](j )}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubjm)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long argh](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)}(hargh]harg}(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)}(hCheck if fcntl() op is allowedh]hCheck if fcntl() op is allowed}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct file *file`` file ``unsigned int cmd`` fcntl command ``unsigned long arg`` command argument **Description** Check permission before allowing the file operation specified by **cmd** from being performed on the file **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj?ubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjdh]hstruct file *file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubj)}(hhh]h)}(hfileh]hfile}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM hj[ubj)}(h#``unsigned int cmd`` fcntl command h](j)}(h``unsigned int cmd``h]j)}(hjh]hunsigned int cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h fcntl commandh]h fcntl command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj[ubj)}(h'``unsigned long arg`` command argument h](j)}(h``unsigned long arg``h]j)}(hjh]hunsigned long arg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hcommand argumenth]hcommand argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj?ubh)}(hXBCheck permission before allowing the file operation specified by **cmd** from being performed on the file **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module.h](hACheck permission before allowing the file operation specified by }(hj'hhhNhNubj)}(h**cmd**h]hcmd}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh" from being performed on the file }(hj'hhhNhNubj)}(h**file**h]hfile}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh . Note that }(hj'hhhNhNubj)}(h**arg**h]harg}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hj'hhhNhNubj)}(h**arg**h]harg}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhQ represents a user space pointer, it should never be used by the security module.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj?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.chM hj?ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhj hhhNhNubh)}(hhh](j)}(h1void security_file_set_fowner (struct file *file)h]j)}(h0void security_file_set_fowner(struct file *file)h](j )}(hvoidh]hvoid}(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_set_fownerh]jm)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_set_fownerasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h'Set the file owner info in the LSM blobh]h'Set the file owner info in the LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct file *file`` the file **Description** Save owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook. This hook is called with file->f_owner.lock held. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]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)}(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 hjubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhj 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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhM ubjg)}(hsecurity_file_send_sigiotaskh]jm)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhM ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_send_sigiotaskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct fown_struct *fownh](j)}(hj6}h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(h fown_structh]h fown_struct}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jc.security_file_send_sigiotaskasbuh1hhj'ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hfownh]hfown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint sigh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsigh]hsig}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhM ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjqhhubj)}(hhh]h)}(h(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG 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&]uh1jhjqhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hj"h]hstruct task_struct *tsk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h target taskh]h target task}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjubj)}(h+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hj[h]hstruct fown_struct *fown}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubj)}(hhh]h)}(h signal senderh]h signal sender}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM hjubj)}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j)}(h ``int sig``h]j)}(hjh]hint sig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_receive (C function)c.security_file_receivehNtauh1hhj 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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhX/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&]uh1jhjmhhhjhM, ubjg)}(hsecurity_file_receiveh]jm)}(hsecurity_file_receiveh]hsecurity_file_receive}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhjhM, ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_receiveasbuh1hhjubj)}(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&]jjuh1jhjmhhhjhM, ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhM, ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhM, hjfhhubj)}(hhh]h)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hj1hhhNhNubah}(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&]uh1jhjfhhhjhM, ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj 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)}(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.chM0 hjMubj)}(hhh]j)}(h*``struct file *file`` file being received h](j)}(h``struct file *file``h]j)}(hjrh]hstruct file *file}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hjlubj)}(hhh]h)}(hfile being receivedh]hfile being received}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM- hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM- hjiubah}(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.chM/ hjMubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjMubh)}(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.chM1 hjMubh)}(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.chM2 hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_open (C function)c.security_file_openhNtauh1hhj 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 }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hM: ubjg)}(hsecurity_file_openh]jm)}(hsecurity_file_openh]hsecurity_file_open}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hM: ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hfileh]hfile}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE j<sbc.security_file_openasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(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.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(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&]jjjjjjjjjuh1hhhhj 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.chM> 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.chM@ hjubh)}(h**Description**h]j)}(hj+h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= hjubh)}(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.}(hjAhhhNhNubah}(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 .}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjubh)}(h **Return**h]j)}(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.chMC 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.chMD hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_truncate (C function)c.security_file_truncatehNtauh1hhj 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}(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_truncateh]jm)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM] ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_truncateasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM] ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM] ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM] hjhhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM] hjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM] ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct file *file`` file **Description** Check permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa 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^ 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)}(hCheck permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook.h](hCheck permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the }(hjhhhNhNubj)}(h**path_truncate**h]h path_truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh hook.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_alloc (C function)c.security_task_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(hMint security_task_alloc (struct task_struct *task, unsigned long clone_flags)h]j)}(hLint security_task_alloc(struct task_struct *task, unsigned long clone_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.chMl ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhjnhMl ubjg)}(hsecurity_task_alloch]jm)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhjnhMl ubj)}(h5(struct task_struct *task, unsigned long clone_flags)h](j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_task_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long clone_flagsh](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 clone_flagsh]h clone_flags}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjnhMl ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhMl ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMl hjUhhubj)}(hhh]h)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hjnhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMl ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct task_struct *task`` the task ``unsigned long 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjubj)}(hhh](j)}(h&``struct task_struct *task`` the task h](j)}(h``struct task_struct *task``h]j)}(hjh]hstruct task_struct *task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMm hjubj)}(hhh]h)}(hthe taskh]hthe task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMm hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMm hjubj)}(hD``unsigned long clone_flags`` flags indicating what is being shared h](j)}(h``unsigned long clone_flags``h]j)}(hjh]hunsigned long clone_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.chMn hjubj)}(hhh]h)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMn hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(bh]h ]h"]h$]h&]uh1jhj hMn 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.chMp hjubh)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMo hjubh)}(h **Return**h]j)}(hjM h]hReturn}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjubh)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_free (C function)c.security_task_freehNtauh1hhj hhhNhNubh)}(hhh](j)}(h2void security_task_free (struct task_struct *task)h]j)}(h1void security_task_free(struct task_struct *task)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(hsecurity_task_freeh]jm)}(hsecurity_task_freeh]hsecurity_task_free}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_task_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)}(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 hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM hj hhubj)}(hhh]h)}(h,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjO hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj jjj jjjuh1hhhhj 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)}(hjt h]h Parameters}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn ubj)}(hhh]j)}(h"``struct task_struct *task`` task h](j)}(h``struct task_struct *task``h]j)}(hj h]hstruct task_struct *task}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj)}(hhh]h)}(htaskh]htask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjn ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn ubh)}(h_Handle release of task-related resources. Note that this can be called from interrupt context.h]h_Handle release of task-related resources. Note that this can be called from interrupt context.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhj hhhNhNubh)}(hhh](j)}(hsecurity field in a set of credentials.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj*ubj)}(hhh]j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hjOh]hstruct cred *cred}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubj)}(hhh]h)}(h credentialsh]h credentials}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjFubah}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhj 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}(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_prepare_credsh]jm)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_prepare_credsasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jFc.security_prepare_credsasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jFc.security_prepare_credsasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(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&]jjjjzjjzjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj)}(hhh](j)}(h%``struct cred *new`` new credentials h](j)}(h``struct cred *new``h]j)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]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)}(horiginal credentialsh]horiginal credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(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)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.}(hjfhhhNhNubah}(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)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhj 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}(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_transfer_credsh]jm)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_transfer_credsasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j3c.security_transfer_credsasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(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)}(hTransfer credsh]hTransfer creds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjHh]hstruct cred *new}(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)}(htarget credentialsh]htarget credentials}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM hj?ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]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)}(horiginal credentialsh]horiginal credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM hj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#ubh)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhj 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}(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_kernel_act_ash]jm)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct cred *new, u32 secid)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hcredh]hcred}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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 ]jxc.security_kernel_act_asasbuh1hhjubj)}(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&]noemphjjuh1jhj6ubeh}(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 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 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhj 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)}(hjJh]hstruct cred *new}(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.chM hjDubj)}(hhh]h)}(h credentialsh]h credentials}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM hjAubj)}(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.chM hj}ubj)}(hhh]h)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjAubeh}(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)}(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 }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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 if successful.h]hReturns 0 if successful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhj 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 hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhM ubjg)}(hsecurity_kernel_create_files_ash]jm)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhM ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j_sb!c.security_kernel_create_files_asasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j!c.security_kernel_create_files_asasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhM hj1hhubj)}(hhh]h)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjihhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hreference inodeh]hreference inode}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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 }(hj7hhhNhNubj)}(h **inode**h]hinode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhj 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}(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_kernel_module_requesth]jm)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(char *kmod_name)h]j)}(hchar *kmod_nameh](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)}(h kmod_nameh]h kmod_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h$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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj 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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKubj)}(hhh]j)}(h ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hjph]hchar *kmod_name}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjubj)}(hhh]h)}(h module nameh]h module name}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKubh)}(h **Return**h]j)}(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! hjKubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj%hMt ubjg)}(hsecurity_task_fix_setuidh]jm)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMt ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(hcredh]hcred}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE j:sbc.security_task_fix_setuidasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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_task_fix_setuidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMt ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMt ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMt hj hhubj)}(hhh]h)}(h&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMt ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hjubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hjubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMu hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMu hjubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hj ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMv hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMv hjubj)}(h&``int flags`` LSM_SETID_* flag values h](j)}(h ``int flags``h]j)}(hjJh]h int flags}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjDubj)}(hhh]h)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMw hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMw 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.chMy hjubh)}(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 }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjhhhNhNubj)}(h**current->cred**h]h current->cred}(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.chMx hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhj 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}(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 }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hM ubjg)}(hsecurity_task_fix_setgidh]jm)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.security_task_fix_setgidasbuh1hhj`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&]noemphjjuh1jhj\ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_task_fix_setgidasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(h int flagsh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hflagsh]hflags}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hM hjhhubj)}(hhh]h)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hjZh]h int flags}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjTubj)}(hhh]h)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM 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)}(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 E}(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK parameter indicates which of the set*gid system calls invoked this hook. }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjhhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhj 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}(hj7 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3 hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjF hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3 hhhjE hM ubjg)}(hsecurity_task_fix_setgroupsh]jm)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hjX hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3 hhhjE hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj6}h]hstruct}(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp 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 jZ sbc.security_task_fix_setgroupsasbuh1hhjp ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp ubjm)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjl ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hcredh]hcred}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!!modnameN classnameNjI jL )}jO ]j c.security_task_fix_setgroupsasbuh1hhj 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)}(holdh]hold}(hjX!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjl ubeh}(h]h ]h"]h$]h&]jjuh1jhj3 hhhjE hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/ hhhjE hM ubah}(h]j* ah ](jjeh"]h$]h&]jj)jhuh1hhjE hM hj, hhubj)}(hhh]h)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!hhubah}(h]h ]h"]h$]h&]uh1jhj, hhhjE hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced **Description** Update the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(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)}(hupdated credentialsh]hupdated 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)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj!h]hconst struct cred *old}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM hj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hj7"h]h Description}(hj9"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubh)}(hUpdate the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](hoUpdate the module’s state after setting the supplementary group identity attributes of the current process. }(hjM"hhhNhNubj)}(h**new**h]hnew}(hjU"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM"ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjM"hhhNhNubj)}(h**current->cred**h]h current->cred}(hjg"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:283: ./security/security.chM hj!ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhj hhhNhNubh)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(h#c.security_task_setpgidasbuh1hhjq#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq#ubjm)}(hpgidh]hpgid}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hM ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hM hj"hhubj)}(hhh]h)}(h$Check if setting the pgid is allowedh]h$Check if setting the pgid 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#jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *p`` task being modified ``pid_t pgid`` new pgid **Description** Check permission before setting the process group identifier of the process **p** to **pgid**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#ubj)}(hhh](j)}(h.``struct task_struct *p`` task being modified 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)}(htask being modifiedh]htask being modified}(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``pid_t pgid`` new pgid h](j)}(h``pid_t pgid``h]j)}(hjH$h]h pid_t pgid}(hjJ$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjB$ubj)}(hhh]h)}(hnew pgidh]hnew pgid}(hja$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]$hM hj^$ubah}(h]h ]h"]h$]h&]uh1jhjB$ubeh}(h]h ]h"]h$]h&]uh1jhj]$hM hj$ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#ubh)}(h^Check permission before setting the process group identifier of the process **p** to **pgid**.h](hLCheck permission before setting the process group identifier of the process }(hj$hhhNhNubj)}(h**p**h]hp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh to }(hj$hhhNhNubj)}(h**pgid**h]hpgid}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_getpgid (C function)c.security_task_getpgidhNtauh1hhj hhhNhNubh)}(hhh](j)}(h1int security_task_getpgid (struct task_struct *p)h]j)}(h0int security_task_getpgid(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_getpgidh]jm)}(hsecurity_task_getpgidh]hsecurity_task_getpgid}(hj4%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj!%hM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hjP%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL%ubj)}(h h]h }(hj]%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL%ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjn%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp%modnameN classnameNjI jL )}jO ]jR )}jE j6%sbc.security_task_getpgidasbuh1hhjL%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)}(hjh]hp}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjH%ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj!%hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj %hhhj!%hM ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj!%hM hj%hhubj)}(hhh]h)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid 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%jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the process group identifier of the process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj&h]hstruct task_struct *p}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj &ubj)}(hhh]h)}(htaskh]htask}(hj,&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(&hM hj)&ubah}(h]h ]h"]h$]h&]uh1jhj &ubeh}(h]h ]h"]h$]h&]uh1jhj(&hM hj &ubah}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hjN&h]h Description}(hjP&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(hRCheck permission before getting the process group identifier of the process **p**.h](hLCheck permission before getting the process group identifier of the process }(hjd&hhhNhNubj)}(h**p**h]hp}(hjl&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd&ubh.}(hjd&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(h **Return**h]j)}(hj&h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_task_getsid (C function)c.security_task_getsidhNtauh1hhj hhhNhNubh)}(hhh](j)}(h0int security_task_getsid (struct task_struct *p)h]j)}(h/int security_task_getsid(struct task_struct *p)h](j )}(hinth]hint}(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_getsidh]jm)}(hsecurity_task_getsidh]hsecurity_task_getsid}(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)}(hj6}h]hstruct}(hj 'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj''hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)'modnameN classnameNjI jL )}jO ]jR )}jE j&sbc.security_task_getsidasbuh1hhj'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)}(hjh]hp}(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*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the session identifier of the process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj'h]hstruct task_struct *p}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'ubj)}(hhh]h)}(htaskh]htask}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hj(h]h Description}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'ubh)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session identifier of the process }(hj(hhhNhNubj)}(h**p**h]hp}(hj%(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'ubh)}(h **Return**h]j)}(hj@(h]hReturn}(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)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjV(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setnice (C function)c.security_task_setnicehNtauh1hhj 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}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj(hM ubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE j(sbc.security_task_setniceasbuh1hhj(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)}(hint niceh](j )}(hinth]hint}(hj3)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/)ubj)}(h h]h }(hjA)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/)ubjm)}(hniceh]hnice}(hjO)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]jx(ah ](jjeh"]h$]h&]jj)jhuh1hhj(hM hjz(hhubj)}(hhh]h)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value is allowed}(hjy)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjv)hhubah}(h]h ]h"]h$]h&]uh1jhjz(hhhj(hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhj 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)}(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 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 hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hj.*h]h Description}(hj0*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,*ubah}(h]h ]h"]h$]h&]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 }(hjD*hhhNhNubj)}(h**p**h]hp}(hjL*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD*ubh to }(hjD*hhhNhNubj)}(h**nice**h]hnice}(hj^*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD*ubh.}(hjD*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)}(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.chM hj)ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhj hhhNhNubh)}(hhh](j)}(h?int security_task_setioprio (struct task_struct *p, int ioprio)h]j)}(h>int security_task_setioprio(struct task_struct *p, int ioprio)h](j )}(hinth]hint}(hj*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_task_setioprioh]jm)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj*hMubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE j*sbc.security_task_setioprioasbuh1hhj*ubj)}(h h]h }(hj9+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjG+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hjh]hp}(hjT+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(h int ioprioh](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)}(hioprioh]hioprio}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhj*hhubj)}(hhh]h)}(h+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj 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)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubj)}(hhh](j)}(h&``struct task_struct *p`` 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.chMhj+ubj)}(hhh]h)}(h target taskh]h target task}(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 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.chMhj&,ubj)}(hhh]h)}(h ioprio valueh]h ioprio value}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA,hMhjB,ubah}(h]h ]h"]h$]h&]uh1jhj&,ubeh}(h]h ]h"]h$]h&]uh1jhjA,hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h**Description**h]j)}(hjg,h]h Description}(hji,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+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.chMhj+ubh)}(h **Return**h]j)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhj 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.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj-hMubjg)}(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-hMubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj4-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0-ubj)}(h h]h }(hjA-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0-ubh)}(hhh]jm)}(h task_structh]h task_struct}(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_task_getioprioasbuh1hhj0-ubj)}(h h]h }(hjr-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0-ubjm)}(hjh]hp}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,-ubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj-hMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhj,hhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the ioprio value of **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-ubj)}(hhh]j)}(h``struct task_struct *p`` 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.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&]uh1jhj-ubh)}(h**Description**h]j)}(hj2.h]h Description}(hj4.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-ubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hjH.hhhNhNubj)}(h**p**h]hp}(hjP.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH.ubh.}(hjH.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)}(hjk.h]hReturn}(hjm.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhj 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}(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_task_prlimith]jm)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hMubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hj6}h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(hcredh]hcred}(hj&/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(/modnameN classnameNjI jL )}jO ]jR )}jE j.sbc.security_task_prlimitasbuh1hhj.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)}(hcredh]hcred}(hja/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hconst struct cred *tcredh](j)}(hjh]hconst}(hjz/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv/ubj)}(hj6}h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv/ubh)}(hhh]jm)}(hcredh]hcred}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jB/c.security_task_prlimitasbuh1hhjv/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv/ubjm)}(htcredh]htcred}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hinth]hint}(hj!0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj/0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubjm)}(hflagsh]hflags}(hj=0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(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)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjg0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjd0hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj 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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj0ubj)}(hhh](j)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hj0h]hconst struct cred *cred}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hj0h]hconst struct cred *tcred}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj)}(hhh]h)}(htarget task credentialsh]htarget task credentials}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hj1h]hunsigned int flags}(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)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hj31hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/1hM hj01ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj/1hM hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hjU1h]h Description}(hjW1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj0ubh)}(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.}(hjk1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj0ubh)}(h **Return**h]j)}(hj|1h]hReturn}(hj~1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hj0ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhj 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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hM.ubjg)}(hsecurity_task_setrlimith]jm)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hM.ubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj 2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.security_task_setrlimitasbuh1hhj1ubj)}(h h]h }(hj<2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjJ2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hjh]hp}(hjW2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hunsigned int resourceh](j )}(hunsignedh]hunsigned}(hjo2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjk2ubj)}(h h]h }(hj}2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk2ubj )}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjk2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk2ubjm)}(hresourceh]hresource}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct rlimit *new_rlimh](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hrlimith]hrlimit}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]j82c.security_task_setrlimitasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnew_rlimh]hnew_rlim}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(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)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjA3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj>3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY3jjY3jjjuh1hhhhj 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)}(hjc3h]h Parameters}(hje3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj]3ubj)}(hhh](j)}(h5``struct task_struct *p`` target task's group leader h](j)}(h``struct task_struct *p``h]j)}(hj3h]hstruct task_struct *p}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hj|3ubj)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM/hj3ubah}(h]h ]h"]h$]h&]uh1jhj|3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM/hjy3ubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hj3h]hunsigned int resource}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj3ubj)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM0hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM0hjy3ubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hj3h]hstruct rlimit *new_rlim}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj3ubj)}(hhh]h)}(hnew resource limith]hnew resource limit}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 4hM1hj 4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj 4hM1hjy3ubeh}(h]h ]h"]h$]h&]uh1jhj]3ubh)}(h**Description**h]j)}(hj/4h]h Description}(hj14hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hj]3ubh)}(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 }(hjE4hhhNhNubj)}(h**p**h]hp}(hjM4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE4ubh for }(hjE4hhhNhNubj)}(h **resource**h]hresource}(hj_4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE4ubh to }(hjE4hhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjq4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE4ubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjE4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj]3ubh)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hj]3ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hj]3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhj 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}(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)}(hsecurity_task_setschedulerh]jm)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj4hM@ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 5ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj,5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.5modnameN classnameNjI jL )}jO ]jR )}jE j4sbc.security_task_setschedulerasbuh1hhj 5ubj)}(h h]h }(hjL5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 5ubj)}(hjh]h*}(hjZ5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 5ubjm)}(hjh]hp}(hjg5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj4hM@ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hM@hj4hhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(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&]uh1jhj4hhhj4hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhj 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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhj5ubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj5h]hstruct task_struct *p}(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.chMAhj5ubj)}(hhh]h)}(h target taskh]h target task}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMAhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMAhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hj 6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChj5ubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hj"6hhhNhNubj)}(h**p**h]hp}(hj*6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"6ubh.}(hj"6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhj5ubh)}(h **Return**h]j)}(hjE6h]hReturn}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj5ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj[6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhj 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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj6hMNubjg)}(hsecurity_task_getschedulerh]jm)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj6hMNubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE j6sbc.security_task_getschedulerasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hjh]hp}(hj 7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hMNubah}(h]j}6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMNhj6hhubj)}(hhh]h)}(h+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hjI7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjF7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjja7jja7jjjuh1hhhhj 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)}(hjk7h]h Parameters}(hjm7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhje7ubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj7h]hstruct task_struct *p}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj7ubj)}(hhh]h)}(h target taskh]h target task}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMOhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMOhj7ubah}(h]h ]h"]h$]h&]uh1jhje7ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhje7ubh)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hj7hhhNhNubj)}(h**p**h]hp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhje7ubh)}(h **Return**h]j)}(hj7h]hReturn}(hj8hhhNhNubah}(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.chMRhje7ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShje7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_movememory (C function)c.security_task_movememoryhNtauh1hhj 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}(hjC8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[ubj)}(h h]h }(hjR8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?8hhhjQ8hM[ubjg)}(hsecurity_task_movememoryh]jm)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjd8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?8hhhjQ8hM[ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|8ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jR )}jE jf8sbc.security_task_movememoryasbuh1hhj|8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|8ubjm)}(hjh]hp}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx8ubah}(h]h ]h"]h$]h&]jjuh1jhj?8hhhjQ8hM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;8hhhjQ8hM[ubah}(h]j68ah ](jjeh"]h$]h&]jj)jhuh1hhjQ8hM[hj88hhubj)}(hhh]h)}(h!Check if moving memory is allowedh]h!Check if moving memory is allowed}(hj9hhhNhNubah}(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&]uh1jhj88hhhjQ8hM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before moving memory owned by process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj$9h]h Parameters}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj9ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjC9h]hstruct task_struct *p}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj=9ubj)}(hhh]h)}(htaskh]htask}(hj\9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX9hM\hjY9ubah}(h]h ]h"]h$]h&]uh1jhj=9ubeh}(h]h ]h"]h$]h&]uh1jhjX9hM\hj:9ubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj~9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hj9ubh)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hj9hhhNhNubj)}(h**p**h]hp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj9ubh)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj9ubh)}(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.chM`hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_kill (C function)c.security_task_killhNtauh1hhj 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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhubj)}(h h]h }(hj :hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj :hMhubjg)}(hsecurity_task_killh]jm)}(hsecurity_task_killh]hsecurity_task_kill}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj :hMhubj)}(hV(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj9:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5:ubj)}(h h]h }(hjF:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5:ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjW:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjY:modnameN classnameNjI jL )}jO ]jR )}jE j:sbc.security_task_killasbuh1hhj5:ubj)}(h h]h }(hjw:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5:ubjm)}(hjh]hp}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1:ubj)}(hstruct kernel_siginfo *infoh](j)}(hj6}h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hkernel_siginfoh]hkernel_siginfo}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]js:c.security_task_killasbuh1hhj: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)}(hinfoh]hinfo}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1:ubj)}(hint sigh](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)}(hsigh]hsig}(hj6;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1:ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjO;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubj)}(h h]h }(hj\;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;ubj)}(hj6}h]hstruct}(hjj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubj)}(h h]h }(hjw;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;ubh)}(hhh]jm)}(hcredh]hcred}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]js:c.security_task_killasbuh1hhjK;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubjm)}(hcredh]hcred}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1:ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj :hMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj :hMhubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj :hMhhj9hhubj)}(hhh]h)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhj;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj :hMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct task_struct *p`` target process ``struct kernel_siginfo *info`` signal information ``int sig`` signal value ``const struct cred *cred`` credentials of the signal sender, NULL if **current** **Description** Check permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj <h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj <ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhj<ubj)}(hhh](j)}(h)``struct task_struct *p`` target process h](j)}(h``struct task_struct *p``h]j)}(hj,<h]hstruct task_struct *p}(hj.<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihj&<ubj)}(hhh]h)}(htarget processh]htarget process}(hjE<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA<hMihjB<ubah}(h]h ]h"]h$]h&]uh1jhj&<ubeh}(h]h ]h"]h$]h&]uh1jhjA<hMihj#<ubj)}(h3``struct kernel_siginfo *info`` signal information h](j)}(h``struct kernel_siginfo *info``h]j)}(hje<h]hstruct kernel_siginfo *info}(hjg<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhj_<ubj)}(hhh]h)}(hsignal informationh]hsignal information}(hj~<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz<hMjhj{<ubah}(h]h ]h"]h$]h&]uh1jhj_<ubeh}(h]h ]h"]h$]h&]uh1jhjz<hMjhj#<ubj)}(h``int sig`` signal value h](j)}(h ``int sig``h]j)}(hj<h]hint sig}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj<ubj)}(hhh]h)}(h signal valueh]h signal 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)}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j)}(h``const struct cred *cred``h]j)}(hj<h]hconst struct cred *cred}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhj<ubj)}(hhh]h)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hj<hhhNhNubj)}(h **current**h]hcurrent}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1hhj<hMlhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMlhj#<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.chMnhj<ubh)}(hXrCheck permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.h](h'Check permission before sending signal }(hj6=hhhNhNubj)}(h**sig**h]hsig}(hj>=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6=ubh to }(hj6=hhhNhNubj)}(h**p**h]hp}(hjP=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6=ubh. }(hj6=hhhNhNubj)}(h**info**h]hinfo}(hjb=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6=ubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hj6=hhhNhNubj)}(h**info**h]hinfo}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6=ubh is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.}(hj6=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhj<ubh)}(h **Return**h]j)}(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.chMshj<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.chMthj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_prctl (C function)c.security_task_prctlhNtauh1hhj 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}(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_prctlh]jm)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hM}ubj)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j)}(h int optionh](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj >ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj >ubjm)}(hoptionh]hoption}(hj->hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj >ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj >ubj)}(hunsigned long arg2h](j )}(hunsignedh]hunsigned}(hjF>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB>ubj)}(h h]h }(hjT>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB>ubj )}(hlongh]hlong}(hjb>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB>ubj)}(h h]h }(hjp>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB>ubjm)}(harg2h]harg2}(hj~>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj >ubj)}(hunsigned long arg3h](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)}(harg3h]harg3}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj >ubj)}(hunsigned long arg4h](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)}(harg4h]harg4}(hj ?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj >ubj)}(hunsigned long arg5h](j )}(hunsignedh]hunsigned}(hj9?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5?ubj)}(h h]h }(hjG?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5?ubj )}(hlongh]hlong}(hjU?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5?ubj)}(h h]h }(hjc?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5?ubjm)}(harg5h]harg5}(hjq?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5?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)}(hCheck if a prctl op is allowedh]hCheck if a prctl op is allowed}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hj?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``int option`` operation ``unsigned long arg2`` argument ``unsigned long arg3`` argument ``unsigned long arg4`` argument ``unsigned long arg5`` argument **Description** Check permission before performing a process control operation on the current process. **Return** Return -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubj)}(hhh](j)}(h``int option`` operation h](j)}(h``int option``h]j)}(hj?h]h int option}(hj?hhhNhNubah}(h]h ]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 operationh]h operation}(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 arg2`` argument h](j)}(h``unsigned long arg2``h]j)}(hj@h]hunsigned long arg2}(hj@hhhNhNubah}(h]h ]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)}(hargumenth]hargument}(hj.@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*@hMhj+@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj*@hMhj?ubj)}(h ``unsigned long arg3`` argument h](j)}(h``unsigned long arg3``h]j)}(hjN@h]hunsigned long arg3}(hjP@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjH@ubj)}(hhh]h)}(hargumenth]hargument}(hjg@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc@hMhjd@ubah}(h]h ]h"]h$]h&]uh1jhjH@ubeh}(h]h ]h"]h$]h&]uh1jhjc@hMhj?ubj)}(h ``unsigned long arg4`` argument h](j)}(h``unsigned long arg4``h]j)}(hj@h]hunsigned long arg4}(hj@hhhNhNubah}(h]h ]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)}(hargumenth]hargument}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj?ubj)}(h ``unsigned long arg5`` argument h](j)}(h``unsigned long arg5``h]j)}(hj@h]hunsigned long arg5}(hj@hhhNhNubah}(h]h ]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)}(hargumenth]hargument}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubh)}(h**Description**h]j)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubh)}(h **Return**h]j)}(hj"Ah]hReturn}(hj$AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubh)}(hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h]hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.}(hj8AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhj 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}(hjgAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjvAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcAhhhjuAhMubjg)}(hsecurity_task_to_inodeh]jm)}(hsecurity_task_to_inodeh]hsecurity_task_to_inode}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjcAhhhjuAhMubj)}(h,(struct task_struct *p, struct inode *inode)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h task_structh]h task_struct}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jAsbc.security_task_to_inodeasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hjh]hp}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hj"BhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(hinodeh]hinode}(hj3BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Bubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5BmodnameN classnameNjI jL )}jO ]jAc.security_task_to_inodeasbuh1hhjBubj)}(h h]h }(hjQBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hj_BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hinodeh]hinode}(hjlBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjcAhhhjuAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_AhhhjuAhMubah}(h]jZAah ](jjeh"]h$]h&]jj)jhuh1hhjuAhMhj\Ahhubj)}(hhh]h)}(h-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(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\AhhhjuAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhj 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)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubj)}(hhh](j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjBh]hstruct task_struct *p}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubj)}(hhh]h)}(htaskh]htask}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjCh]hstruct inode *inode}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj Cubj)}(hhh]h)}(hinodeh]hinode}(hj)ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ChMhj&Cubah}(h]h ]h"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]uh1jhj%ChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjKCh]h Description}(hjMChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjICubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubh)}(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.}(hjaChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_create_user_ns (C function)c.security_create_user_nshNtauh1hhj 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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjChMubjg)}(hsecurity_create_user_nsh]jm)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjChMubj)}(h(const struct cred *cred)h]j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hj6}h]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hcredh]hcred}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.security_create_user_nsasbuh1hhjCubj)}(h h]h }(hj&DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hj4DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hcredh]hcred}(hjADhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjChhubj)}(hhh]h)}(h)Check if creating a new userns is allowedh]h)Check if creating a new userns is allowed}(hjkDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhj 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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubj)}(hhh]j)}(h+``const struct cred *cred`` prepared creds h](j)}(h``const struct cred *cred``h]j)}(hjDh]hconst struct cred *cred}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubj)}(hhh]h)}(hprepared credsh]hprepared creds}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(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.chMhjDubh)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubh)}(h **Return**h]j)}(hjEh]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.chMhjDubh)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hj$EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhj 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}(hjSEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjbEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOEhhhjaEhMubjg)}(hsecurity_ipc_permissionh]jm)}(hsecurity_ipc_permissionh]hsecurity_ipc_permission}(hjtEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOEhhhjaEhMubj)}(h((struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE jvEsbc.security_ipc_permissionasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hipcph]hipcp}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(h short flagh](j )}(hshorth]hshort}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hflagh]hflag}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjOEhhhjaEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKEhhhjaEhMubah}(h]jFEah ](jjeh"]h$]h&]jj)jhuh1hhjaEhMhjHEhhubj)}(hhh]h)}(h#Check if sysv ipc access is allowedh]h#Check if sysv ipc access is allowed}(hjHFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEFhhubah}(h]h ]h"]h$]h&]uh1jhjHEhhhjaEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`Fjj`Fjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permission structure ``short flag`` requested permissions **Description** Check permissions for access to IPC. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjjFh]h Parameters}(hjlFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdFubj)}(hhh](j)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjFh]hstruct kern_ipc_perm *ipcp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubj)}(hhh]h)}(hipc permission structureh]hipc permission structure}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubj)}(h%``short flag`` requested permissions h](j)}(h``short flag``h]j)}(hjFh]h short flag}(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)}(hrequested permissionsh]hrequested permissions}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjdFubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdFubh)}(h$Check permissions for access to IPC.h]h$Check permissions for access to IPC.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdFubh)}(h **Return**h]j)}(hj$Gh]hReturn}(hj&GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Gubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdFubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj:GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_ipc_getlsmprop (C function)c.security_ipc_getlsmprophNtauh1hhj hhhNhNubh)}(hhh](j)}(hPvoid security_ipc_getlsmprop (struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h]j)}(hOvoid security_ipc_getlsmprop(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j )}(hvoidh]hvoid}(hjiGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjxGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeGhhhjwGhMubjg)}(hsecurity_ipc_getlsmproph]jm)}(hsecurity_ipc_getlsmproph]hsecurity_ipc_getlsmprop}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjeGhhhjwGhMubj)}(h3(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.security_ipc_getlsmpropasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hipcph]hipcp}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct lsm_prop *proph](j)}(hj6}h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj%HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hj6HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8HmodnameN classnameNjI jL )}jO ]jGc.security_ipc_getlsmpropasbuh1hhjHubj)}(h h]h }(hjTHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjbHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hproph]hprop}(hjoHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjeGhhhjwGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjaGhhhjwGhMubah}(h]j\Gah ](jjeh"]h$]h&]jj)jhuh1hhjwGhMhj^Ghhubj)}(hhh]h)}(h Get the sysv ipc object LSM datah]h Get the sysv ipc object LSM data}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhj^GhhhjwGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permission structure ``struct lsm_prop *prop`` pointer to lsm information **Description** Get the lsm information associated with the ipc object.h](h)}(h**Parameters**h]j)}(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)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjHh]hstruct kern_ipc_perm *ipcp}(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)}(hipc permission structureh]hipc permission structure}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjHubj)}(h5``struct lsm_prop *prop`` pointer to lsm information h](j)}(h``struct lsm_prop *prop``h]j)}(hjIh]hstruct lsm_prop *prop}(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.chMhj Iubj)}(hhh]h)}(hpointer to lsm informationh]hpointer to lsm information}(hj,IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(IhMhj)Iubah}(h]h ]h"]h$]h&]uh1jhj Iubeh}(h]h ]h"]h$]h&]uh1jhj(IhMhjHubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hjNIh]h Description}(hjPIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHubh)}(h7Get the lsm information associated with the ipc object.h]h7Get the lsm information associated with the ipc object.}(hjdIhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(h0int security_msg_msg_alloc (struct msg_msg *msg)h]j)}(h/int security_msg_msg_alloc(struct msg_msg *msg)h](j )}(hinth]hint}(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_msg_msg_alloch]jm)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhMubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.security_msg_msg_allocasbuh1hhjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hmsgh]hmsg}(hj)JhhhNhNubah}(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$Allocate a sysv ipc message LSM blobh]h$Allocate a sysv ipc message LSM blob}(hjSJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPJhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkJjjkJjjjuh1hhhhj hNhNubj)}(hX/**Parameters** ``struct msg_msg *msg`` message structure **Description** Allocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created. **Return** Return 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjuJh]h Parameters}(hjwJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoJubj)}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjJh]hstruct msg_msg *msg}(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)}(hmessage structureh]hmessage structure}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjoJubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoJubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoJubh)}(h **Return**h]j)}(hjJh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoJubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhj 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;KhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7KhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjJKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7KhhhjIKhMubjg)}(hsecurity_msg_msg_freeh]jm)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hj\KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7KhhhjIKhMubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjxKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtKubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE j^Ksbc.security_msg_msg_freeasbuh1hhjtKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtKubjm)}(hmsgh]hmsg}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpKubah}(h]h ]h"]h$]h&]jjuh1jhj7KhhhjIKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3KhhhjIKhMubah}(h]j.Kah ](jjeh"]h$]h&]jj)jhuh1hhjIKhMhj0Khhubj)}(hhh]h)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhj0KhhhjIKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLubj)}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6Lubj)}(hhh]h)}(hmessage structureh]hmessage structure}(hjULhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQLhMhjRLubah}(h]h ]h"]h$]h&]uh1jhj6Lubeh}(h]h ]h"]h$]h&]uh1jhjQLhMhj3Lubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjwLh]h Description}(hjyLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLubh)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhj 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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhMubjg)}(hsecurity_msg_queue_alloch]jm)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1/jfhjLhhhjLhMubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.security_msg_queue_allocasbuh1hhjLubj)}(h h]h }(hj7MhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjEMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hmsqh]hmsq}(hjRMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjLhhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hj|MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj 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)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubj)}(hhh]j)}(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.chMhjMubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubh)}(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 }(hjNhhhNhNubj)}(h**msg**h]hmsg}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhP. The security field is initialized to NULL when the structure is first created.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubh)}(h **Return**h]j)}(hj1Nh]hReturn}(hj3NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjGNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhj 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}(hjvNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrNhhhX/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&]uh1jhjrNhhhjNhM ubjg)}(hsecurity_msg_queue_freeh]jm)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrNhhhjNhM ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]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}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jNsbc.security_msg_queue_freeasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hmsqh]hmsq}(hj OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(h]h ]h"]h$]h&]jjuh1jhjrNhhhjNhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnNhhhjNhM ubah}(h]jiNah ](jjeh"]h$]h&]jj)jhuh1hhjNhM hjkNhhubj)}(hhh]h)}(h"Free a sysv ipc msg queue LSM blobh]h"Free a sysv ipc msg queue LSM blob}(hj6OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3Ohhubah}(h]h ]h"]h$]h&]uh1jhjkNhhhjNhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNOjjNOjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Deallocate security field **perm->security** for the message queue.h](h)}(h**Parameters**h]j)}(hjXOh]h Parameters}(hjZOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjROubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjwOh]hstruct kern_ipc_perm *msq}(hjyOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjqOubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jhjqOubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjnOubah}(h]h ]h"]h$]h&]uh1jhjROubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjROubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjOhhhNhNubj)}(h**perm->security**h]hperm->security}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh for the message queue.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjROubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhj 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}(hj PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhMubjg)}(hsecurity_msg_queue_associateh]jm)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hj*PhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&Pubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhMubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjFPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBPubj)}(h h]h }(hjSPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBPubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjdPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfPmodnameN classnameNjI jL )}jO ]jR )}jE j,Psbc.security_msg_queue_associateasbuh1hhjBPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBPubjm)}(hmsqh]hmsq}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Pubj)}(h int msqflgh](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hmsqflgh]hmsqflg}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Pubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjOhhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhj 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)}(hj Qh]h Parameters}(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.chMhjQubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj?Qh]hstruct kern_ipc_perm *msq}(hjAQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Qubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj9Qubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjXQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTQhMhjUQubah}(h]h ]h"]h$]h&]uh1jhj9Qubeh}(h]h ]h"]h$]h&]uh1jhjTQhMhj6Qubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjxQh]h int msqflg}(hjzQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrQubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjrQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj6Qubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubh)}(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.chMhjQubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhj 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}(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_msg_queue_msgctlh]jm)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hj@RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhj 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}(hj*WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&WhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGubj)}(h h]h }(hj9WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&Whhhj8WhMGubjg)}(hsecurity_msg_queue_msgrcvh]jm)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hjKWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&Whhhj8WhMGubj)}(ha(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjgWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcWubj)}(h h]h }(hjtWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcWubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jMWsbc.security_msg_queue_msgrcvasbuh1hhjcWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcWubjm)}(hmsqh]hmsq}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Wubj)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jWc.security_msg_queue_msgrcvasbuh1hhjWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hj#XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hmsgh]hmsg}(hj0XhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Wubj)}(hstruct task_struct *targeth](j)}(hj6}h]hstruct}(hjIXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEXubj)}(h h]h }(hjVXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEXubh)}(hhh]jm)}(h task_structh]h task_struct}(hjgXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjiXmodnameN classnameNjI jL )}jO ]jWc.security_msg_queue_msgrcvasbuh1hhjEXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEXubjm)}(htargeth]htarget}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Wubj)}(h long typeh](j )}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(htypeh]htype}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Wubj)}(hint modeh](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hmodeh]hmode}(hj YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Wubeh}(h]h ]h"]h$]h&]jjuh1jhj&Whhhj8WhMGubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"Whhhj8WhMGubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj8WhMGhjWhhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hj4YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhj1Yhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhj8WhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLYjjLYjjjuh1hhhhj 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)}(hjVYh]h Parameters}(hjXYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjPYubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjuYh]hstruct kern_ipc_perm *msq}(hjwYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjoYubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMHhjYubah}(h]h ]h"]h$]h&]uh1jhjoYubeh}(h]h ]h"]h$]h&]uh1jhjYhMHhjlYubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hjYh]hstruct msg_msg *msg}(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.chMIhjYubj)}(hhh]h)}(hmessageh]hmessage}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMIhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMIhjlYubj)}(h+``struct task_struct *target`` target task h](j)}(h``struct task_struct *target``h]j)}(hjYh]hstruct task_struct *target}(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.chMJhjYubj)}(hhh]h)}(h target taskh]h target task}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMJhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMJhjlYubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hj Zh]h long type}(hj"ZhhhNhNubah}(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.chMKhjZubj)}(hhh]h)}(htype of message requestedh]htype of message requested}(hj9ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ZhMKhj6Zubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj5ZhMKhjlYubj)}(h``int mode`` operation flags h](j)}(h ``int mode``h]j)}(hjYZh]hint mode}(hj[ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjSZubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjrZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnZhMLhjoZubah}(h]h ]h"]h$]h&]uh1jhjSZubeh}(h]h ]h"]h$]h&]uh1jhjnZhMLhjlYubeh}(h]h ]h"]h$]h&]uh1jhjPYubh)}(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.chMNhjPYubh)}(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, }(hjZhhhNhNubj)}(h**msg**h]hmsg}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh), is removed from the message queue. The }(hjZhhhNhNubj)}(h **target**h]htarget}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh 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).}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjPYubh)}(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.chMRhjPYubh)}(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.chMShjPYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhj 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}(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 }(hj3[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj [hhhj2[hM\ubjg)}(hsecurity_shm_alloch]jm)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjE[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjA[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj [hhhj2[hM\ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]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)}(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 jG[sbc.security_shm_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)}(hshph]hshp}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj][ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY[ubah}(h]h ]h"]h$]h&]jjuh1jhj [hhhj2[hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj2[hM\ubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj2[hM\hj[hhubj)}(hhh]h)}(hAllocate a sysv shm LSM blobh]hAllocate a sysv shm LSM blob}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj[hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj2[hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhj 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)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hj\ubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj%\h]hstruct kern_ipc_perm *shp}(hj'\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj\ubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj>\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:\hM]hj;\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj:\hM]hj\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 **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 }(hjv\hhhNhNubj)}(h**shp**h]hshp}(hj~\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv\ubh` security field. The security field is initialized to NULL when the structure is first created.}(hjv\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.chMahj\ubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_free (C function)c.security_shm_freehNtauh1hhj hhhNhNubh)}(hhh](j)}(h2void security_shm_free (struct kern_ipc_perm *shp)h]j)}(h1void security_shm_free(struct kern_ipc_perm *shp)h](j )}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhj\hMqubjg)}(hsecurity_shm_freeh]jm)}(hsecurity_shm_freeh]hsecurity_shm_free}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hMqubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj(]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj9]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;]modnameN classnameNjI jL )}jO ]jR )}jE j]sbc.security_shm_freeasbuh1hhj]ubj)}(h h]h }(hjY]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjg]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hshph]hshp}(hjt]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]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)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Deallocate the security structure **perm->security** for the memory segment.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhj]ubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj]h]hstruct kern_ipc_perm *shp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhj]ubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(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}(hj^hhhNhNubah}(h]h ]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)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hj0^hhhNhNubj)}(h**perm->security**h]hperm->security}(hj8^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0^ubh for the memory segment.}(hj0^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_shm_associate (C function)c.security_shm_associatehNtauh1hhj 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}(hjq^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjm^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&]uh1jhjm^hhhj^hM~ubjg)}(hsecurity_shm_associateh]jm)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjm^hhhj^hM~ubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE j^sbc.security_shm_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)}(hshph]hshp}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h int shmflgh](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)}(hshmflgh]hshmflg}(hj<_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhjm^hhhj^hM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhji^hhhj^hM~ubah}(h]jd^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hM~hjf^hhubj)}(hhh]h)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjf_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjc_hhubah}(h]h ]h"]h$]h&]uh1jhjf^hhhj^hM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~_jj~_jjjuh1hhhhj 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)}(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 kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj_h]hstruct kern_ipc_perm *shp}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hj_h]h int shmflg}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubj)}(hhh]h)}(hoperation flagsh]hoperation 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&]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 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.}(hj1`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)}(hjB`h]hReturn}(hjD`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjX`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhj hhhNhNubh)}(hhh](j)}(hghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjQghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ghhhjPghMubjg)}(hsecurity_sem_freeh]jm)}(hsecurity_sem_freeh]hsecurity_sem_free}(hjcghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_gubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>ghhhjPghMubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{gubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{gubh)}(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 ]jR )}jE jegsbc.security_sem_freeasbuh1hhj{gubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{gubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{gubjm)}(hsmah]hsma}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwgubah}(h]h ]h"]h$]h&]jjuh1jhj>ghhhjPghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:ghhhjPghMubah}(h]j5gah ](jjeh"]h$]h&]jj)jhuh1hhjPghMhj7ghhubj)}(hhh]h)}(hFree a sysv semaphore LSM blobh]hFree a sysv semaphore LSM blob}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhj7ghhhjPghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Deallocate security structure **sma->security** for the semaphore.h](h)}(h**Parameters**h]j)}(hj$hh]h Parameters}(hj&hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjChh]hstruct kern_ipc_perm *sma}(hjEhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=hubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj\hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhhMhjYhubah}(h]h ]h"]h$]h&]uh1jhj=hubeh}(h]h ]h"]h$]h&]uh1jhjXhhMhj:hubah}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hj~hh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjhhhhNhNubj)}(h**sma->security**h]h sma->security}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh for the semaphore.}(hjhhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sem_associate (C function)c.security_sem_associatehNtauh1hhj 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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjhhMubjg)}(hsecurity_sem_associateh]jm)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhMubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj0ihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-iubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2imodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.security_sem_associateasbuh1hhjiubj)}(h h]h }(hjPihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hj^ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hsmah]hsma}(hjkihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj iubj)}(h int semflgh](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hsemflgh]hsemflg}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj iubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjhhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj 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)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubj)}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hj jh]hstruct kern_ipc_perm *sma}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(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 semflg`` operation flags h](j)}(h``int semflg``h]j)}(hjDjh]h int semflg}(hjFjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>jubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj]jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYjhMhjZjubah}(h]h ]h"]h$]h&]uh1jhj>jubeh}(h]h ]h"]h$]h&]uh1jhjYjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjjh]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:283: ./security/security.chMhjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(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.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhj hhhNhNubh)}(hhh](j)}(hqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(huctxh]huctx}(hjKqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hu32 __user *sizeh](h)}(hhh]jm)}(hu32h]hu32}(hjgqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjiqmodnameN classnameNjI jL )}jO ]jqc.security_getselfattrasbuh1hhj`qubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`qubh__user}(hj`qhhhNhNubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`qubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`qubjm)}(hsizeh]hsize}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h u32 flagsh](h)}(hhh]jm)}(hu32h]hu32}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jqc.security_getselfattrasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubjm)}(hflagsh]hflags}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjNphhhj`phMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJphhhj`phMubah}(h]jEpah ](jjeh"]h$]h&]jj)jhuh1hhj`phMhjGphhubj)}(hhh]h)}(h-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(hj$rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!rhhubah}(h]h ]h"]h$]h&]uh1jhjGphhhj`phMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjuubj)}(h h]h }(hjcuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>uubjm)}(hflagsh]hflags}(hjquhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjshMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshMsubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshMshjshhubj)}(hhh]h)}(h,Set an LSM attribute on the current process.h]h,Set an LSM attribute on the current process.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjuhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhj 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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjuubj)}(hhh](j)}(h-``unsigned int attr`` which attribute to set h](j)}(h``unsigned int attr``h]j)}(hjuh]hunsigned int attr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjuubj)}(hhh]h)}(hwhich attribute to seth]hwhich attribute to set}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMthjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMthjuubj)}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjvh]hstruct lsm_ctx __user *uctx}(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.chMuhjvubj)}(hhh]h)}(h)the user-space source for the informationh]h)the user-space source for the information}(hj.vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*vhMuhj+vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj*vhMuhjuubj)}(h"``u32 size`` the size of the data h](j)}(h ``u32 size``h]j)}(hjNvh]hu32 size}(hjPvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjHvubj)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjgvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcvhMvhjdvubah}(h]h ]h"]h$]h&]uh1jhjHvubeh}(h]h ]h"]h$]h&]uh1jhjcvhMvhjuubj)}(h1``u32 flags`` reserved for future use, must be 0 h](j)}(h ``u32 flags``h]j)}(hjvh]h u32 flags}(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.chMwhjvubj)}(hhh]h)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMwhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMwhjuubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjuubh)}(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 }(hjvhhhNhNubj)}(h**uctx**h]huctx}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjuubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getprocattr (C function)c.security_getprocattrhNtauh1hhj 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}(hj(whhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$whhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj7whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$whhhj6whMubjg)}(hsecurity_getprocattrh]jm)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hjIwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$whhhj6whMubj)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hjewhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjawubj)}(h h]h }(hjrwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjawubh)}(hhh]jm)}(h task_structh]h task_struct}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE jKwsbc.security_getprocattrasbuh1hhjawubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjawubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjawubjm)}(hjh]hp}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjawubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]wubj)}(h int lsmidh](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubjm)}(hlsmidh]hlsmid}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]wubj)}(hconst char *nameh](j)}(hjh]hconst}(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hcharh]hchar}(hj&xhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hj4xhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjBxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hnameh]hname}(hjOxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]wubj)}(h char **valueh](j )}(hcharh]hchar}(hjhxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdxubj)}(h h]h }(hjvxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdxubjm)}(hvalueh]hvalue}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]wubeh}(h]h ]h"]h$]h&]jjuh1jhj$whhhj6whMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj whhhj6whMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhj6whMhjwhhubj)}(hhh]h)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhj6whMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhj 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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj)}(hhh](j)}(h#``struct task_struct *p`` the task h](j)}(h``struct task_struct *p``h]j)}(hj yh]hstruct task_struct *p}(hj yhhhNhNubah}(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)}(hthe taskh]hthe task}(hj"yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubj)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjByh]h int lsmid}(hjDyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@yubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjL{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hnameh]hname}(hjY{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(h void *valueh](j )}(hvoidh]hvoid}(hjr{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjn{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)}(hvalueh]hvalue}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(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 jzsbc.security_setprocattrasbuh1hhj{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&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj)}(hhh]h)}(hSet an attribute for a taskh]hSet an attribute for a task}(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&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'|jj'|jjjuh1hhhhj 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)}(hj1|h]h Parameters}(hj3|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+|ubj)}(hhh](j)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjP|h]h int lsmid}(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.chMhjJ|ubj)}(hhh]h)}(hLSM identificationh]hLSM identification}(hji|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje|hMhjf|ubah}(h]h ]h"]h$]h&]uh1jhjJ|ubeh}(h]h ]h"]h$]h&]uh1jhje|hMhjG|ubj)}(h$``const char *name`` attribute name h](j)}(h``const char *name``h]j)}(hj|h]hconst char *name}(hj|hhhNhNubah}(h]h ]h"]h$]h&]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)}(hattribute nameh]hattribute name}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjG|ubj)}(h ``void *value`` attribute value h](j)}(h``void *value``h]j)}(hj|h]h void *value}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj|ubj)}(hhh]h)}(hattribute valueh]hattribute value}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjG|ubj)}(h%``size_t size`` attribute value size h](j)}(h``size_t size``h]j)}(hj|h]h size_t size}(hj|hhhNhNubah}(h]h ]h"]h$]h&]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)}(hattribute value sizeh]hattribute value size}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjG|ubeh}(h]h ]h"]h$]h&]uh1jhj+|ubh)}(h**Description**h]j)}(hj6}h]h Description}(hj8}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+|ubh)}(hYWrite (set) the current task's attribute **name** to **value**, size **size** if allowed.h](h+Write (set) the current task’s attribute }(hjL}hhhNhNubj)}(h**name**h]hname}(hjT}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL}ubh to }(hjL}hhhNhNubj)}(h **value**h]hvalue}(hjf}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL}ubh, size }(hjL}hhhNhNubj)}(h**size**h]hsize}(hjx}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL}ubh if allowed.}(hjL}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=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.chMhj+|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_post_notification (C function)c.security_post_notificationhNtauh1hhj 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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMpubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhj}hMpubjg)}(hsecurity_post_notificationh]jm)}(hsecurity_post_notificationh]hsecurity_post_notification}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhj}hMpubj)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j)}(hconst struct cred *w_credh](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj"~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hj6}h]hstruct}(hj0~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}(hjN~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjP~modnameN classnameNjI jL )}jO ]jR )}jE j}sbc.security_post_notificationasbuh1hhj~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)}(hw_credh]hw_cred}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ~ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hcredh]hcred}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jj~c.security_post_notificationasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(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&]noemphjjuh1jhj ~ubj)}(hstruct watch_notification *nh](j)}(hj6}h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(hwatch_notificationh]hwatch_notification}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jj~c.security_post_notificationasbuh1hhj)ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ~ubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhj}hMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hMpubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hMphj}hhubj)}(hhh]h)}(h+Check if a watch notification can be postedh]h+Check if a watch notification can be posted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXm**Parameters** ``const struct cred *w_cred`` credentials of the task that set the watch ``const struct cred *cred`` credentials of the task which triggered the watch ``struct watch_notification *n`` the notification **Description** Check to see if a watch notification can be posted to a particular queue. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjubj)}(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&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(hN``const struct cred *cred`` credentials of the task which triggered the watch h](j)}(h``const struct cred *cred``h]j)}(hj'h]hconst struct cred *cred}(hj)hhhNhNubah}(h]h ]h"]h$]h&]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)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMrhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMrhjubj)}(h2``struct watch_notification *n`` the notification h](j)}(h ``struct watch_notification *n``h]j)}(hj`h]hstruct watch_notification *n}(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.chMshjZubj)}(hhh]h)}(hthe notificationh]hthe notification}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMshjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMshjubeh}(h]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.chMuhjubh)}(hICheck to see if a watch notification can be posted to a particular queue.h]hICheck to see if a watch notification can be posted to a particular queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubh)}(h **Return**h]j)}(hj€h]hReturn}(hjĀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj؀hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhj 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}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hkeyh]hkey}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE j*sbc.security_watch_keyasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h2Check if a task is allowed to watch for key eventsh]h2Check if a task is allowed to watch for key events}(hjǁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjāhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߁jj߁jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct key *key`` the key to watch **Description** Check to see if a process is allowed to watch for event notifications from a key or keyring. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h%``struct key *key`` the key to watch h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(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)}(hthe key to watchh]hthe key to watch}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h\Check to see if a process is allowed to watch for event notifications from a key or keyring.h]h\Check to see if a process is allowed to watch for event notifications from a key or keyring.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhj 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}(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_netlink_sendh]jm)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjЂhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhĵubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j҂sbc.security_netlink_sendasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sk_buff *skbh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]j&c.security_netlink_sendasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(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)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending is allowed}(hj߃hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj܃hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hj h]hstruct sock *sk}(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)}(hsending socketh]hsending socket}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h(``struct sk_buff *skb`` netlink message h](j)}(h``struct sk_buff *skb``h]j)}(hjYh]hstruct sk_buff *skb}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubj)}(hhh]h)}(hnetlink messageh]hnetlink message}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(h]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*Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission.h]hX*Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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 the information was successfully saved and message is allowed to be transmitted.h]h]Returns 0 if the information was successfully saved and message is allowed to be transmitted.}(hjфhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_create (C function)c.security_socket_createhNtauh1hhj 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}(hj!hhhNhNubah}(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 hj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hfamilyh]hfamily}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint typeh](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h int protocolh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hprotocolh]hprotocol}(hjÅhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint kernh](j )}(hinth]hint}(hj܅hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj؅ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj؅ubjm)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj؅ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(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}(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:jjjuh1hhhhj 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)}(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``int family`` protocol family h](j)}(h``int family``h]j)}(hjch]h int family}(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)}(hprotocol familyh]hprotocol family}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(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&]uh1jhjhMhjZubj)}(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.chMhjφubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjφubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hj'hhhNhNubah}(h]h ]h"]h$]h&]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)}(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)}(h1Check permissions prior to creating a new socket.h]h1Check permissions prior to creating a new socket.}(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)}(hjph]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhj 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}(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_post_createh]jm)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjևhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj҇ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjÇhMubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j؇sbc.security_socket_post_createasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int familyh](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int protocolh](j )}(hinth]hint}(hjΈhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjʈubj)}(h h]h }(hj܈hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʈubjm)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʈubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]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!Initialize a newly created socketh]h!Initialize a newly created socket}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjÇhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj 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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjÉh]h int family}(hjʼnhhhNhNubah}(h]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)}(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)}(hj5h]h int protocol}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/ubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjnh]hint kern}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(hhh]h)}(h(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&]uh1jhjhubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated.h]hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn’t available when the inode was allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h **Return**h]j)}(hjЊh]hReturn}(hjҊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΊubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_socket_bind (C function)c.security_socket_bindhNtauh1hhj 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.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj#hMubjg)}(hsecurity_socket_bindh]jm)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hsocketh]hsocket}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE j8sbc.security_socket_bindasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hstruct sockaddr *addressh](j)}(hj6}h]hstruct}(hjċhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjыhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjߋubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_socket_bindasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(h int addrlenh](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubjm)}(haddrlenh]haddrlen}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj hhubj)}(hhh]h)}(h+Check if a socket bind operation is allowedh]h+Check if a socket bind operation 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&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXq**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` requested bind address ``int addrlen`` length of address **Description** Check permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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}(hjԌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЌhMhjьubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЌhMhjubj)}(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.chMhjubj)}(hhh]h)}(hrequested bind addressh]hrequested bind address}(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 addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hj-h]h int addrlen}(hj/hhhNhNubah}(h]h ]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)}(hlength of addressh]hlength of address}(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 permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter.h](hYCheck permission before socket protocol layer bind operation is performed and the socket }(hj~hhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh* is bound to the address specified in the }(hj~hhhNhNubj)}(h **address**h]haddress}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh parameter.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjɍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_connect (C function)c.security_socket_connecthNtauh1hhj 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.chM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM&ubjg)}(hsecurity_socket_connecth]jm)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM&ubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hsocketh]hsocket}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_connectasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hstruct sockaddr *addressh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjŎhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŽubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjǎmodnameN classnameNjI jL )}jO ]joc.security_socket_connectasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h int addrlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(haddrlenh]haddrlen}(hj3hhhNhNubah}(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 connect operation is allowedh]h.Check if a socket connect operation is allowed}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhj 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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjyubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hj׏h]hstruct sockaddr *address}(hjُhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՏubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjяubj)}(hhh]h)}(h"address of remote connection pointh]h"address of remote connection point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjяubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj ubj)}(hhh]h)}(hlength of addressh]hlength of address}(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&]uh1jhjyubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjyubh)}(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 }(hjahhhNhNubj)}(h**sock**h]hsock}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh to a remote address, }(hjahhhNhNubj)}(h **address**h]haddress}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjyubh)}(h **Return**h]j)}(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-hjyubh)}(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.hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_listen (C function)c.security_socket_listenhNtauh1hhj hhhNhNubh)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(h(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(hsocketh]hsocket}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE j6sbc.security_socket_recvmsgasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hstruct msghdr *msgh](j)}(hj6}h]hstruct}(hj˜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjϘhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݘubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_socket_recvmsgasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjHubj)}(hint sizeh](j )}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubjm)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(h int flagsh](j )}(hinth]hint}(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&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj!hMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj!hMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hMdhjhhubj)}(hhh]h)}(h'Check if receiving a message is allowedh]h'Check if receiving a message is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjřjjřjjjuh1hhhhj 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}(hjљhhhNhNubah}(h]h ]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 socket *sock`` receiving 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.chMehjubj)}(hhh]h)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h*``struct msghdr *msg`` message to receive h](j)}(h``struct msghdr *msg``h]j)}(hj'h]hstruct msghdr *msg}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhj!ubj)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMfhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMfhjubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hj`h]hint size}(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.chMghjZubj)}(hhh]h)}(hsize of messageh]hsize of message}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMghjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMghjubj)}(h ``int flags`` operational flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjubj)}(hhh]h)}(hoperational flagsh]hoperational flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(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.chMjhjəubh)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjəubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjəubh)}(h#Returns 0 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.chMlhjəubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhj 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.chMuubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjNhMuubjg)}(hsecurity_socket_getsocknameh]jm)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjNhMuubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_socket_getsocknameasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjɛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hsockh]hsock}(hj֛hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMuubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMuhj5hhubj)}(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.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(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.chMyhjubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjAh]hstruct socket *sock}(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.chMvhj;ubj)}(hhh]h)}(hsocketh]hsocket}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMvhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMvhj8ubah}(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.chMxhjubh)}(hNCheck permission before reading the local address (name) of the socket object.h]hNCheck permission before reading the local address (name) of the socket object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubh)}(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.chMzhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhj hhhNhNubh)}(hhh](j)}(h5int security_socket_getpeername (struct socket *sock)h]j)}(h4int security_socket_getpeername(struct socket *sock)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_getpeernameh]jm)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hsocketh]hsocket}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_socket_getpeernameasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hsockh]hsock}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jۜah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjݜhhubj)}(hhh]h)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjݜhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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&]uh1jhjȝubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjĝubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjĝubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjĝubh)}(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.chMhjĝubh)}(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.chMhjĝubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjĝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhj hhhNhNubh)}(hhh](j)}(hLint security_socket_getsockopt (struct socket *sock, int level, int optname)h]j)}(hKint security_socket_getsockopt(struct socket *sock, int level, int optname)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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_getsockopth]jm)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj͞hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɞubj)}(h h]h }(hjڞhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjɞubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_getsockoptasbuh1hhjɞubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjɞubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɞubjm)}(hsockh]hsock}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɞubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŞubj)}(h int levelh](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)}(hlevelh]hlevel}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŞubj)}(h int optnameh](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŞubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Check if reading a socket option is allowedh]h+Check if reading a socket option is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҟjjҟjjjuh1hhhhj hNhNubj)}(hX **Parameters** ``struct socket *sock`` socket ``int level`` option's protocol level ``int optname`` option name **Description** Check permissions before retrieving the options associated with socket **sock**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjܟh]h Parameters}(hjޟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڟubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.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)}(hj4h]h int level}(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)}(hoption's protocol levelh]hoption’s protocol level}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h``int optname`` option name h](j)}(h``int optname``h]j)}(hjmh]h int optname}(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)}(h option nameh]h option name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj֟ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj֟ubh)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hjhhhNhNubj)}(h**sock**h]hsock}(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.chMhj֟ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߠubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj֟ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj֟ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhj 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}(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 }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj4hMubjg)}(hsecurity_socket_setsockopth]jm)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj4hMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.security_socket_setsockoptasbuh1hhj_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&]noemphjjuh1jhj[ubj)}(h int levelh](j )}(hinth]hint}(hjաhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjѡubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjѡubjm)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjѡubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(h int optnameh](j )}(hinth]hint}(hj hhhNhNubah}(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&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhjhhubj)}(hhh]h)}(h+Check if setting a socket option is allowedh]h+Check if setting a socket option 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&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj 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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjʢh]h int level}(hj̢hhhNhNubah}(h]h ]h"]h$]h&]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)}(hoption's protocol levelh]hoption’s protocol level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߢhMhjubah}(h]h ]h"]h$]h&]uh1jhjĢubeh}(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&]uh1jhjlubh)}(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.chMhjlubh)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting the options associated with socket }(hjThhhNhNubj)}(h**sock**h]hsock}(hj\hhhNhNubah}(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.chMhjlubh)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(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.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhj 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}(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_shutdownh]jm)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hjݣhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj٣ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjʣhMubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jߣsbc.security_socket_shutdownasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint howh](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hhowh]hhow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(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-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʣhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjɤjjɤjjjuh1hhhhj 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)}(hjӤh]h Parameters}(hjդhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѤubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjͤubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``int how`` flag indicating how sends and receives are handled h](j)}(h ``int how``h]j)}(hj+h]hint how}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubj)}(hhh]h)}(h2flag indicating how sends and receives are handledh]h2flag indicating how sends and receives are handled}(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)}(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)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjͤubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjͤubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhj 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}(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_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&]jjuh1jfhjhhhjhMubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jsb#c.security_socket_getpeersec_streamasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optvalh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j[#c.security_socket_getpeersec_streamasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoptvalh]hoptval}(hj¦hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optlenh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hjަhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۦubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j[#c.security_socket_getpeersec_streamasbuh1hhjצubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjצubjm)}(hoptlenh]hoptlen}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjצubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjܥhhhjhMubah}(h]jץah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj٥hhubj)}(hhh]h)}(hGet the remote peer labelh]hGet the remote peer label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj٥hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX/**Parameters** ``struct socket *sock`` socket ``sockptr_t optval`` destination buffer ``sockptr_t optlen`` size of peer label copied into the buffer ``unsigned int len`` maximum size of the destination buffer **Description** This hook allows the security module to provide peer socket security state for unix or connected tcp sockets to userspace via getsockopt SO_GETPEERSEC. For tcp sockets this can be meaningful if the socket is associated with an ipsec SA. **Return** Returns 0 if all is well, otherwise, typical getsockopt return values.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjƧh]hstruct socket *sock}(hjȧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjħubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hjߧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۧhMhjܧubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۧhMhjubj)}(h(``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&]uh1jhjhMhjubj)}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j)}(h``sockptr_t optlen``h]j)}(hj8h]hsockptr_t optlen}(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)}(h)size of peer label copied into the bufferh]h)size of peer label copied into the buffer}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h<``unsigned int len`` maximum size of the destination buffer h](j)}(h``unsigned int len``h]j)}(hjqh]hunsigned int len}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjkubj)}(hhh]h)}(h&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&]uh1jhjkubeh}(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)}(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.}(hj¨hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjӨh]hReturn}(hjըhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѨubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h]hFReturns 0 if all is well, otherwise, typical getsockopt return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhj 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.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hMubjg)}(hlsm_sock_alloch]jm)}(hlsm_sock_alloch]hlsm_sock_alloc}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hMubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hsockh]hsock}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE j;sbc.lsm_sock_allocasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(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 ]jc.lsm_sock_allocasbuh1hhjéubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjéubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjéubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhj hhubj)}(hhh]h)}(hallocate a composite sock blobh]hallocate a composite sock 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&]uh1jhj hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhj 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)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj<ubj)}(hhh](j)}(h1``struct sock *sock`` the sock that needs a blob h](j)}(h``struct sock *sock``h]j)}(hjah]hstruct sock *sock}(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)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjXubj)}(h``gfp_t gfp`` allocation mode h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hallocation modeh]hallocation mode}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj<ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhj 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}(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 }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hM ubjg)}(hsecurity_sk_alloch]jm)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hM ubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.security_sk_allocasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h int familyh](j )}(hinth]hint}(hjثhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjԫubj)}(h h]h }(hjhhhNhNubah}(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)}(hgfp_t priorityh](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 ]jc.security_sk_allocasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hpriorityh]hpriority}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM hjhhubj)}(hhh]h)}(h)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s LSM blob}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj 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.chM hjubj)}(hhh](j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjh]h int family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjެubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjڬubj)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjڬubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hjubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.h]hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.}(hjjhhhNhNubah}(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&]uh1jhjyubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_free (C function)c.security_sk_freehNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjϭhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjέhM ubjg)}(hsecurity_sk_freeh]jm)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݭubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjέhM ubj)}(h(struct sock *sk)h]j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_sk_freeasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(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)}(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.chM hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjέhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjubj)}(hhh]j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjîhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjubj)}(hhh]h)}(hsockh]hsock}(hjڮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj֮hM!hj׮ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֮hM!hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hjubh)}(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.chM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhj 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}(hjAhhhNhNubah}(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 }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhMtubjg)}(hsecurity_inet_csk_cloneh]jm)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhMtubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.security_inet_csk_cloneasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjʯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hnewskh]hnewsk}(hjׯhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hconst struct request_sock *reqh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_sockh]h request_sock}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jc.security_inet_csk_cloneasbuh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hreqh]hreq}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhMtubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMthj6hhubj)}(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.chMthjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct sock *newsk`` new sock ``const struct request_sock *req`` connection request_sock **Description** Set that LSM state of **sock** using the LSM state from **req**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubj)}(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.chMuhjǰubj)}(hhh]h)}(hnew sockh]hnew sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjǰubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjİubj)}(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.chMvhjubj)}(hhh]h)}(hconnection request_sockh]hconnection request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjİ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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubh)}(h@Set that LSM state of **sock** using the LSM state from **req**.h](hSet that LSM state of }(hjWhhhNhNubj)}(h**sock**h]hsock}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh using the LSM state from }(hjWhhhNhNubj)}(h**req**h]hreq}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMZubjg)}(hsecurity_mptcp_add_subflowh]jm)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hj˱hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMZubj)}(h#(struct sock *sk, struct sock *ssk)h](j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jͱsbc.security_mptcp_add_subflowasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj߱ubj)}(hstruct sock *sskh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hsockh]hsock}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j!c.security_mptcp_add_subflowasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hsskh]hssk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj߱ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMZubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMZhjhhubj)}(hhh]h)}(h+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(hjڲhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhjײhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM^hjubj)}(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.chM[hjubj)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM[hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM[hjubj)}(h%``struct sock *ssk`` the new subflow h](j)}(h``struct sock *ssk``h]j)}(hjTh]hstruct sock *ssk}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjNubj)}(hhh]h)}(hthe new subflowh]hthe new subflow}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM\hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM\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)}(hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.h]hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubh)}(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.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhj 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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(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&]jjuh1jfhjhhhj hMubj)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j)}(hstruct xfrm_sec_ctx *old_ctxh](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_cloneasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hold_ctxh]hold_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjȴhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŴubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjʴmodnameN classnameNjI jL )}jO ]jrc.security_xfrm_policy_cloneasbuh1hhjubj)}(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)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj 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)}(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)}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j)}(h ``struct xfrm_sec_ctx *old_ctx``h]j)}(hjyh]hstruct xfrm_sec_ctx *old_ctx}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubj)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjpubj)}(h@``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context h](j)}(h"``struct xfrm_sec_ctx **new_ctxp``h]j)}(hjh]hstruct xfrm_sec_ctx **new_ctxp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hj˵hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǵhMhjȵubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǵhMhjpubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubh)}(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.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%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhj 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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghMubjg)}(hsecurity_xfrm_policy_deleteh]jm)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghMubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j|sbc.security_xfrm_policy_deleteasbuh1hhjubj)}(h h]h }(hjԶhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(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&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhj 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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj)}(hhh]j)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hjZh]hstruct xfrm_sec_ctx *ctx}(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)}(hxfrm security contexth]hxfrm security context}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubh)}(h"Authorize deletion of a SPD entry.h]h"Authorize deletion of a SPD entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubh)}(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.chMhj5ubh)}(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.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhj 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}(hj"hhhNhNubah}(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)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE j$sb#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)}(hj_h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj͸hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʸubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjϸmodnameN classnameNjI jL )}jO ]jx#c.security_xfrm_state_alloc_acquireasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpolsech]hpolsec}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(h u32 secidh](h)}(hhh]jm)}(hu32h]hu32}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$modnameN classnameNjI jL )}jO ]jx#c.security_xfrm_state_alloc_acquireasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsecidh]hsecid}(hjNhhhNhNubah}(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)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(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&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct xfrm_state *x`` xfrm state being added to the SAD ``struct xfrm_sec_ctx *polsec`` associated policy's security context ``u32 secid`` secid from the flow **Description** Allocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j)}(h``struct xfrm_state *x``h]j)}(hjh]hstruct xfrm_state *x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjҹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjιhMhjϹubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjιhMhjubj)}(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.chMhjubj)}(hhh]h)}(h$associated policy's security contexth]h&associated policy’s security context}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``u32 secid`` secid from the flow h](j)}(h ``u32 secid``h]j)}(hj+h]h u32 secid}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubj)}(hhh]h)}(hsecid from the flowh]hsecid from the flow}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhj 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}(hjҺhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjκhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjκhhhjhM$ubjg)}(hsecurity_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κhhhjhM$ubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(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_state_freeasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hj_h]hx}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(hFree a xfrm stateh]hFree a xfrm state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjǺhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjubj)}(hhh]j)}(h$``struct xfrm_state *x`` xfrm state h](j)}(h``struct xfrm_state *x``h]j)}(hjһh]hstruct xfrm_state *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:283: ./security/security.chM%hj̻ubj)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhj̻ubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjɻubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjubh)}(hDeallocate x->security.h]hDeallocate x->security.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhj 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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhj`hM/ubjg)}(hsecurity_xfrm_policy_lookuph]jm)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhj`hM/ubj)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 jusbc.security_xfrm_policy_lookupasbuh1hhjubj)}(h h]vh }(hjͼhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjۼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjhhhNhNubah}(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 ]jɼc.security_xfrm_policy_lookupasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfl_secidh]hfl_secid}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjNhhhj`hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj`hM/ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj`hM/hjGhhubj)}(hhh]h)}(h'Check if using a xfrm policy is allowedh]h'Check if using a xfrm policy is allowed}(hjZhhhNhNubah}(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&]uh1jhjGhhhj`hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhj 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}(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.chM3hjvubj)}(hhh](j)}(h:``struct xfrm_sec_ctx *ctx`` target xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hjh]hstruct xfrm_sec_ctx *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjԽh]h u32 fl_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.chM1hjνubj)}(hhh]h)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjνubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubeh}(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.chM3hjvubh)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjvubh)}(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.chM6hjvubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhj 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 hjwhhhX/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&]uh1jhjwhhhjhM@ubjg)}(h"security_xfrm_state_pol_flow_matchh]jm)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjhM@ubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjžhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(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_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)}(hj_h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_policy *xph](j)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h xfrm_policyh]h xfrm_policy}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]j$c.security_xfrm_state_pol_flow_matchasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hxph]hxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h flowi_commonh]h flowi_common}(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_pol_flow_matchasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hflich]hflic}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhM@ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhM@hjphhubj)}(hhh]h)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj2hhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj 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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjQubj)}(hhh](j)}(h-``struct xfrm_state *x`` xfrm state to match h](j)}(h``struct xfrm_state *x``h]j)}(hjvh]hstruct xfrm_state *x}(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.chMAhjpubj)}(hhh]h)}(hxfrm state to matchh]hxfrm state to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjmubj)}(h<``struct xfrm_policy *xp`` xfrm policy to check for a match h](j)}(h``struct xfrm_policy *xp``h]j)}(hjh]hstruct xfrm_policy *xp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjubj)}(hhh]h)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjmubj)}(h?``const struct flowi_common *flic`` flow to check for a match. h](j)}(h#``const struct flowi_common *flic``h]j)}(hjh]hconst struct flowi_common *flic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjubj)}(hhh]h)}(hflow to check for a match.h]hflow to check for a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjmubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(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.chMEhjQubh)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hj9hhhNhNubj)}(h**xp**h]hxp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh and }(hj9hhhNhNubj)}(h**flic**h]hflic}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh for a match with }(hj9hhhNhNubj)}(h**x**h]hx}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjQubh)}(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.chMFhjQubh)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhj 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}(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_decode_sessionh]jm)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMaubj)}(h!(struct sk_buff *skb, u32 *secid)h](j)}(hstruct sk_buff *skbh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_decode_sessionasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskbh]hskb}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 *secidh](h)}(hhh]jm)}(hu32h]hu32}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j<c.security_xfrm_decode_sessionasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(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%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chMehjubj)}(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.chMbhjubj)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMbhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMbhjubj)}(h``u32 *secid`` secid h](j)}(h``u32 *secid``h]j)}(hjTh]h u32 *secid}(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.chMchjNubj)}(hhh]h)}(hsecidh]hsecid}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMchjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMchjubeh}(h]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)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hjhhhNhNubj)}(h**skb**h]hskb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" and return the security label in }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.chMfhjubh)}(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.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_alloc (C function)c.security_key_allochNtauh1hhj 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.chMzubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj-hMzubjg)}(hsecurity_key_alloch]jm)}(hsecurity_key_alloch]hsecurity_key_alloc}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj-hMzubj)}(h?(struct key *key, const struct cred *cred, unsigned long flags)h](j)}(hstruct key *keyh](j)}(hj6}h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(hkeyh]hkey}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE jBsbc.security_key_allocasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.security_key_allocasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcredh]hcred}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj-hMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj-hMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj-hMzhjhhubj)}(hhh]h)}(h-Allocate and initialize a kernel key LSM blobh]h-Allocate and initialize a kernel key LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXP**Parameters** ``struct key *key`` key ``const struct cred *cred`` credentials ``unsigned long flags`` allocation flags **Description** Permit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubj)}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjubj)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubj)}(h(``const struct cred *cred`` credentials h](j)}(h``const struct cred *cred``h]j)}(hj5h]hconst struct cred *cred}(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.chM|hj/ubj)}(hhh]h)}(h credentialsh]h credentials}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM|hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM|hjubj)}(h)``unsigned long flags`` allocation flags h](j)}(h``unsigned long flags``h]j)}(hjnh]hunsigned long flags}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjhubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.h]hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_free (C function)c.security_key_freehNtauh1hhj 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 }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj#hMubjg)}(hsecurity_key_freeh]jm)}(hsecurity_key_freeh]hsecurity_key_free}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hkeyh]hkey}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE j8sbc.security_key_freeasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj hhubj)}(hhh]h)}(hFree a kernel key LSM blobh]hFree a kernel key LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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}(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:283: ./security/security.chMhjubh)}(h0Notification of destruction; free security data.h]h0Notification of destruction; free security data.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_key_permission (C function)c.security_key_permissionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hfint security_key_permission (key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h]j)}(heint security_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_key_permissionh]jm)}(hsecurity_key_permissionh]hsecurity_key_permission}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_key_permissionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hkey_refh]hkey_ref}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jc.security_key_permissionasbuh1hhjubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum key_need_perm need_permh](j)}(hj:h]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h key_need_permh]h key_need_perm}(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&]uh1jhjubjm)}(h need_permh]h need_perm}(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*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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj hNhNubj)}(hXW**Parameters** ``key_ref_t key_ref`` key reference ``const struct cred *cred`` credentials of actor requesting access ``enum key_need_perm need_perm`` requested permissions **Description** See whether a specific operational right is granted to a process on a key. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubj)}(hhh](j)}(h$``key_ref_t key_ref`` key reference h](j)}(h``key_ref_t key_ref``h]j)}(hj]h]hkey_ref_t key_ref}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubj)}(hhh]h)}(h key referenceh]h key reference}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(hC``const struct cred *cred`` credentials of actor requesting access h](j)}(h``const struct cred *cred``h]j)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(h7``enum key_need_perm need_perm`` requested permissions h](j)}(h ``enum key_need_perm need_perm``h]j)}(hjh]henum key_need_perm need_perm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhj hhhNhNubh)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(h``struct key *keyring`` keyring to which the key is linked to h](j)}(h``struct key *keyring``h]j)}(hjSh]hstruct key *keyring}(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%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubj)}(hC``const void *payload`` data used to instantiate or update the key h](j)}(h``const void *payload``h]j)}(hjh]hconst void *payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubj)}(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&]uh1jhjhMhjJubj)}(h"``unsigned long flags`` key flags h](j)}(h``unsigned long flags``h]j)}(hj7h]hunsigned long flags}(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)}(h key flagsh]h key flags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjJubj)}(hG``bool create`` flag indicating whether the key was created or updated h](j)}(h``bool create``h]j)}(hjph]h bool create}(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)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubeh}(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.Notify the caller of a key creation or update.h]h.Notify the caller of a key creation or update.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhj 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 hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_audit_rule_inith]jm)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j)}(h u32 fieldh](h)}(hhh]jm)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_audit_rule_initasbuh1hhj)ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hfieldh]hfield}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hu32 oph](h)}(hhh]jm)}(hu32h]hu32}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jLc.security_audit_rule_initasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hoph]hop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h char *rulestrh](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)}(hrulestrh]hrulestr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(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*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlsmruleh]hlsmrule}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jLc.security_audit_rule_initasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(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*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX{**Parameters** ``u32 field`` audit action ``u32 op`` rule operator ``char *rulestr`` rule context ``void **lsmrule`` receive buffer for audit rule struct ``gfp_t gfp`` GFP flag used for kmalloc **Description** Allocate and initialize an LSM audit rule structure. **Return** Return 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``u32 field`` audit action h](j)}(h ``u32 field``h]j)}(hjh]h u32 field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h audit actionh]h audit action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u32 op`` rule operator h](j)}(h ``u32 op``h]j)}(hj#h]hu32 op}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h rule operatorh]h rule operator}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h``char *rulestr`` rule context h](j)}(h``char *rulestr``h]j)}(hj\h]h char *rulestr}(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)}(h rule contexth]h rule context}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h8``void **lsmrule`` receive buffer for audit rule struct h](j)}(h``void **lsmrule``h]j)}(hjh]hvoid **lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``gfp_t gfp`` GFP flag used for kmalloc h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(h **Return**h]j)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hVReturn 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h Return 0 if }(hjFhhhNhNubj)}(h **lsmrule**h]hlsmrule}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh? has been successfully set, -EINVAL in case of an invalid rule.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhj hhhNhNubh)}(hhh](j)}(h9int security_audit_rule_known (struct audit_krule *krule)h]j)}(h8int security_audit_rule_known(struct audit_krule *krule)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_audit_rule_knownh]jm)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h audit_kruleh]h audit_krule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_audit_rule_knownasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkruleh]hkrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj|hhubj)}(hhh]h)}(h*Check if an audit rule contains LSM fieldsh]h*Check if an audit rule contains LSM fields}(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&]uh1jhj|hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhj 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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubj)}(hhh]j)}(h)``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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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:283: ./security/security.chMhjcubh)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hjhhhNhNubj)}(h **krule**h]hkrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 contains any fields related to the current LSM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubh)}(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.chMhjcubh)}(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.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhj 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}(hjAhhhNhNubah}(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 }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhMubjg)}(hsecurity_audit_rule_freeh]jm)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhMubj)}(h(void *lsmrule)h]j)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhj6hhubj)}(hhh]h)}(hFree an LSM audit rule structh]hFree an LSM audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``void *lsmrule`` audit rule struct **Description** Deallocate the LSM audit rule structure previously allocated by audit_rule_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h$``void *lsmrule`` audit rule struct h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(haudit rule structh]haudit 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'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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hRDeallocate the LSM audit rule structure previously allocated by audit_rule_init().h]hRDeallocate the LSM audit rule structure previously allocated by audit_rule_init().}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhj hhhNhNubh)}(hhh](j)}(hWint security_audit_rule_match (struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h]j)}(hVint security_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_audit_rule_matchh]jm)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_audit_rule_matchasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hproph]hprop}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 fieldh](h)}(hhh]jm)}(hu32h]hu32}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]j c.security_audit_rule_matchasbuh1hhj=ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(hfieldh]hfield}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 oph](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.security_audit_rule_matchasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *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&]uh1jhjubjm)}(hlsmruleh]hlsmrule}(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&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj 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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj@ubj)}(hhh](j)}(h)``struct lsm_prop *prop`` security label h](j)}(h``struct lsm_prop *prop``h]j)}(hjeh]hstruct lsm_prop *prop}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubj)}(h``u32 field`` LSM audit field h](j)}(h ``u32 field``h]j)}(hjh]h u32 field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hLSM audit fieldh]hLSM audit field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj\ubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hjh]hu32 op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hmatching operatorh]hmatching operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj\ubj)}(h``void *lsmrule`` audit rule h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(h audit ruleh]h audit rule}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubh)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjahhhNhNubj)}(h **secid**h]hsecid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhC matches a rule previously approved by security_audit_rule_known().}(hjahhhNhNubeh}(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)}(hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h]hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf (C function)c.security_bpfhNtauh1hhj 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}(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_bpfh]jm)}(h security_bpfh]h security_bpf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hunionh]hunion}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpfasbuh1hhj7ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int sizeh](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)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hkernelh]hkernel}(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-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1hhhhj 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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubj)}(hhh](j)}(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.chMhjubj)}(hhh]h)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(h'``union bpf_attr *attr`` bpf attribute h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h bpf attributeh]h bpf attribute}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(h``unsigned int size`` size h](j)}(h``unsigned int size``h]j)}(hjh]hunsigned int size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj|ubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hj0h]h bool kernel}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj*ubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj|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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubh)}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhj 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}(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_bpf_maph]jm)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM*ubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_mapasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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 ]jNc.security_bpf_mapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfmodeh]hfmode}(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 access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hj h]hstruct bpf_map *map}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubj)}(hhh]h)}(hbpf maph]hbpf map}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM+hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM+hjubj)}(h``fmode_t fmode`` mode h](j)}(h``fmode_t fmode``h]j)}(hjYh]h fmode_t fmode}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjSubj)}(hhh]h)}(hmodeh]hmode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM,hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM,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)}(hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.h]hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjubh)}(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.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhj 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.chM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM9ubjg)}(hsecurity_bpf_progh]jm)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM9ubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.security_bpf_progasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM9hjhhubj)}(hhh]h)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` bpf program **Description** Do a check when the kernel generates and returns a file descriptor for eBPF programs. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubj)}(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.chM:hjubj)}(hhh]h)}(h bpf programh]h bpf program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubh)}(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.}(hjRhhhNhNubah}(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)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhj 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}(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_bpf_map_createh]jm)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMGubj)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_map *maph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_map_createasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hj=h]hunion}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hkernelh]hkernel}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMGubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMGhjhhubj)}(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.chMGhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct bpf_map *map`` BPF map object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF map ``struct bpf_token *token`` BPF token used to grant user access ``bool kernel`` whether or not call originated from kernel **Description** Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjubj)}(hhh](j)}(h'``struct bpf_map *map`` BPF map object h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubj)}(hhh]h)}(hBPF map objecth]hBPF map object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(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.chMIhjubj)}(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&]uh1hhj hMIhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMIhjubj)}(h@``struct bpf_token *token`` BPF token used to grant user access h](j)}(h``struct bpf_token *token``h]j)}(hj/h]hstruct bpf_token *token}(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.chMJhj)ubj)}(hhh]h)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMJhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMJhjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjhh]h bool kernel}(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.chMKhjbubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMKhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMKhjubeh}(h]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.chMMhjubh)}(h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.h]h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjubh)}(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.chMOhjubh)}(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.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhj 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 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_bpf_prog_loadh]jm)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMYubj)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_prog *progh](j)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE j2sbc.security_bpf_prog_loadasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunion bpf_attr *attrh](j)}(hj=h]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_prog_loadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhj*ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(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&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMYhjhhubj)}(hhh]h)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chM]hjubj)}(hhh](j)}(h-``struct bpf_prog *prog`` BPF program object h](j)}(h``struct bpf_prog *prog``h]j)}(hj$h]hstruct bpf_prog *prog}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhjubj)}(hhh]h)}(hBPF program objecth]hBPF program object}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMZhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMZhjubj)}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program h](j)}(h``union bpf_attr *attr``h]j)}(hj]h]hunion bpf_attr *attr}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjWubj)}(hhh]h)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM[hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM[hjubj)}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjubj)}(hhh]h)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjh]h bool kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubh)}(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.}(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)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjGhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhj 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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMlubjg)}(hsecurity_bpf_token_createh]jm)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjhMlubj)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_token_createasbuh1hhjubj)}(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)}(hunion bpf_attr *attrh](j)}(hj=h]hunion}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jc.security_bpf_token_createasbuh1hhj!ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hattrh]hattr}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_token_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMlubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhjkhhubj)}(hhh]h)}(h)Check if creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhj.hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj 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)}(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.chMphjMubj)}(hhh](j)}(h-``struct bpf_token *token`` BPF token object h](j)}(h``struct bpf_token *token``h]j)}(hjrh]hstruct bpf_token *token}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjlubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjiubj)}(hI``union bpf_attr *attr`` BPF syscall attributes used to create BPF token h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjubj)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjiubj)}(h```const struct path *path`` path pointing to BPF FS mount point from which BPF token is created h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjubj)}(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&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjiubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjMubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjMubh)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjMubh)}(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.chMthjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhj 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.chM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM}ubjg)}(hsecurity_bpf_token_cmdh]jm)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM}ubj)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_token_cmdasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htokenh]htoken}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum bpf_cmd cmdh](j)}(hj:h]henum}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hbpf_cmdh]hbpf_cmd}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jc.security_bpf_token_cmdasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM}ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhM}hjhhubj)}(hhh]h)}(hGCheck if BPF token is allowed to delegate requested BPF syscall commandh]hGCheck if BPF token is allowed to delegate requested BPF syscall command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXV**Parameters** ``const struct bpf_token *token`` BPF token object ``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hj h]hconst struct bpf_token *token}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j)}(h``enum bpf_cmd cmd``h]j)}(hjCh]henum bpf_cmd cmd}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=ubj)}(hhh]h)}(h:BPF syscall command requested to be delegated by BPF tokenh]h:BPF syscall command requested to be delegated by BPF token}(hj\hhhNhNubah}(h]h ]h"]h$]h&]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)}(hwDo a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command.h]hwDo a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhj 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}(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_capableh]jm)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h((const struct bpf_token *token, int cap)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_bpf_token_capableasbuh1hhj#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&]noemphjjuh1jhjubj)}(hint caph](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcaph]hcap}(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)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hj;h]hconst struct bpf_token *token}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h@``int cap`` capabilities requested to be delegated by BPF token h](j)}(h ``int cap``h]j)}(hjth]hint cap}(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)}(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&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(h]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|Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities.h]h|Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhj 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 }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj)hMubjg)}(hsecurity_bpf_map_freeh]jm)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj)hMubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hj6}h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE j>sbc.security_bpf_map_freeasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhjhhubj)}(hhh]h)}(hFree a bpf map's LSM blobh]hFree a bpf map’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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}(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&]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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_bpf_prog_freeh]jm)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_prog_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprogh]hprog}(hj2hhhNhNubah}(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 program's LSM blobh]hFree a BPF program’s LSM blob}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` BPF program struct **Description** Clean up the security information stored inside BPF program.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj)}(hhh]j)}(h-``struct bpf_prog *prog`` BPF program struct h](j)}(h``struct bpf_prog *prog``h]j)}(hjh]hstruct bpf_prog *prog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF program structh]hBPF program struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj+hMubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]jR )}jE j@sbc.security_bpf_token_freeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj+hMhjhhubj)}(hhh]h)}(hFree a BPF token's LSM blobh]hFree a BPF token’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct bpf_token *token`` BPF token struct **Description** Clean up the security information stored inside BPF token.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h-``struct bpf_token *token`` BPF token struct h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token structh]hBPF token struct}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubah}(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)}(h:Clean up the security information stored inside BPF token.h]h:Clean up the security information stored inside BPF token.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_perf_event_open (C function)c.security_perf_event_openhNtauh1hhj hhhNhNubh)}(hhh](j)}(h'int security_perf_event_open (int type)h]j)}(h&int security_perf_event_open(int type)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_perf_event_openh]jm)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h (int type)h]j)}(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&]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 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj 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)}(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.chM"hj=ubj)}(hhh]j)}(h``int type`` type of event h](j)}(h ``int type``h]j)}(hjbh]hint type}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubj)}(hhh]h)}(h type of eventh]h type of event}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubah}(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)}(hACheck whether the **type** of perf_event_open syscall is allowed.h](hCheck whether the }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' of perf_event_open syscall is allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj=ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj=ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhj 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}(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_perf_event_alloch]jm)}(hsecurity_perf_event_alloch]hsecurity_perf_event_alloc}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj)hM+ubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj6}h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE j>sbc.security_perf_event_allocasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(heventh]hevent}(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)}(hAllocate a perf event LSM blobh]hAllocate a perf event LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Allocate and save perf_event security info. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjubj)}(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.chM,hjubj)}(hhh]h)}(h perf eventh]h perf event}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM,hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM,hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(h+Allocate and save perf_event security info.h]h+Allocate and save perf_event security info.}(hjmhhhNhNubah}(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}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhj 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMDubjg)}(hsecurity_perf_event_freeh]jm)}(hsecurity_perf_event_freeh]hsecurity_perf_event_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMDubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_perf_event_freeasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(heventh]hevent}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjhhubj)}(hhh]h)}(hFree a perf event LSM blobh]hFree a perf event LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(ht**Parameters** ``struct perf_event *event`` perf event **Description** Release (free) perf_event security info.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubj)}(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.chMEhjubj)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubah}(h]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.chMGhjubh)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhj 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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMPubjg)}(hsecurity_perf_event_readh]jm)}(hsecurity_perf_event_readh]hsecurity_perf_event_read}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMPubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_perf_event_readasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMPubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMPhj9hhubj)}(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.chMPhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Read perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThj ubj)}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjEh]hstruct perf_event *event}(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.chMQhj?ubj)}(hhh]h)}(h perf eventh]h perf event}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMQhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMQhj<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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj ubh)}(h)Read perf_event security info if allowed.h]h)Read perf_event security info if allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhj 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.chMThj 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.chMUhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhj 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}(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_perf_event_writeh]jm)}(hsecurity_perf_event_writeh]hsecurity_perf_event_write}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM]ubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_perf_event_writeasbuh1hhj%ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(heventh]hevent}(hjhhhNhNubah}(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 writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Write perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubj)}(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.chM^hjubj)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjubh)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubh)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhj hhhNhNubh)}(hhh](j)}(h:int security_uring_override_creds (const struct cred *new)h]j)}(h9int security_uring_override_creds(const struct cred *new)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMlubjg)}(hsecurity_uring_override_credsh]jm)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMlubj)}(h(const struct cred *new)h]j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_uring_override_credsasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhjhhubj)}(hhh]h)}(h$Check if overriding creds is allowedh]h$Check if overriding creds is allowed}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``const struct cred *new`` new credentials **Description** Check if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjubj)}(hhh]j)}(h+``const struct cred *new`` new credentials h](j)}(h``const struct cred *new``h]j)}(hjh]hconst struct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]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)}(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}(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.chMnhjubh)}(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.chMqhjubh)}(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.chMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhj hhhNhNubh)}(hhh](j)}(h int security_uring_sqpoll (void)h]j)}(hint security_uring_sqpoll(void)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.chMzubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhMzubjg)}(hsecurity_uring_sqpollh]jm)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjwhMzubj)}(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&]jjuh1jhjehhhjwhMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMzubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMzhj^hhubj)}(hhh]h)}(h'Check if IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjubh)}(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).}(hjbhhhNhNubah}(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)}(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.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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_uring_cmd (C function)c.security_uring_cmdhNtauh1hhj 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}(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_cmdh]jm)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct io_uring_cmd *ioucmd)h]j)}(hstruct io_uring_cmd *ioucmdh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h 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 jsbc.security_uring_cmdasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hioucmdh]hioucmd}(hjNhhhNhNubah}(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)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command 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&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct io_uring_cmd *ioucmd`` command **Description** Check whether the file_operations uring_cmd is allowed to run. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h(``struct io_uring_cmd *ioucmd`` command h](j)}(h``struct io_uring_cmd *ioucmd``h]j)}(hjh]hstruct io_uring_cmd *ioucmd}(hjhhhNhNubah}(h]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)}(hcommandh]hcommand}(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>Check whether the file_operations uring_cmd is allowed to run.h]h>Check whether the file_operations uring_cmd is allowed to run.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhj hhhNhNubh)}(hhh](j)}(h!int security_uring_allowed (void)h]j)}(h int security_uring_allowed(void)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_uring_allowedh]jm)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhjnhMubj)}(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\hhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjUhhubj)}(hhh]h)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() 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&]uh1jhjUhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]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}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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.chKhjubh)}(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().}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhj hhhNhNubh)}(hhh](j)}(h(void security_initramfs_populated (void)h]j)}(h'void security_initramfs_populated(void)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_initramfs_populatedh]jm)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h*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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj hNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.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``void`` no arguments h](j)}(h``void``h]j)}(hjWh]hvoid}(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.chKhjQubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhj 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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE securityfs_create_filesbc.securityfs_create_fileasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(hsecurityfs_create_fileh]jm)}(hjh]hsecurityfs_create_file}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hcharh]hchar}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(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&]uh1jhjubjm)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h void *datah](j )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h*create a file in the securityfs filesystemh]h*create a file in the securityfs filesystem}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1hhhhj 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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj`ubj)}(hhh](j)}(hV``const char *name`` a pointer to a string containing the name of the file to create. h](j)}(h``const char *name``h]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj|ubj)}(h:``umode_t mode`` the permission that the file should have 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(hhh]h)}(h(the permission that the file should haveh]h(the permission that the file should have}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj|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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhj|ubj)}(h``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. h](j)}(h``void *data``h]j)}(hjCh]h void *data}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj=ubj)}(hhh]h)}(ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.h]ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhj|ubj)}(hp``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. h](j)}(h&``const struct file_operations *fops``h]j)}(hj}h]h"const struct file_operations *fops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjwubj)}(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.}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhKhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj`ubh)}(hCThis function creates a file in securityfs with the given **name**.h](h:This function creates a file in securityfs with the given }(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.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).}(hjhhhNhNubah}(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 }(hjhhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj hhhNhNubah}(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.chKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhj 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)}(hj6}h]hstruct}(hj@ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjN hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj< hhhjM hKubh)}(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 securityfs_create_dirsbc.securityfs_create_dirasbuh1hhj< hhhjM hKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj< hhhjM hKubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< hhhjM hKubjg)}(hsecurityfs_create_dirh]jm)}(hj} h]hsecurityfs_create_dir}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj< hhhjM hKubj)}(h)(const char *name, struct dentry *parent)h](j)}(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)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj$ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hdentryh]hdentry}(hj5 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2 ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7 modnameN classnameNjI jL )}jO ]j{ c.securityfs_create_dirasbuh1hhj 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)}(hparenth]hparent}(hjn hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj< hhhjM hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8 hhhjM hKubah}(h]j3 ah ](jjeh"]h$]h&]jj)jhuh1hhjM hKhj5 hhubj)}(hhh]h)}(h/create a directory in the securityfs filesystemh]h/create a directory in the securityfs filesystem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhj5 hhhjM hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(hX?**Parameters** ``const char *name`` a pointer to a string containing the name of the directory to create. ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. **Description** This function creates a directory in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubj)}(hhh](j)}(h[``const char *name`` a pointer to a string containing the name of the directory to create. h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubj)}(hhh]h)}(hEa pointer to a string containing the name of the directory to create.h]hEa pointer to a string containing the name of the directory to create.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj h]hstruct dentry *parent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubj)}(hhh]h)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hj, hhhNhNubj)}(h``NULL``h]hNULL}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj, ubhN, then the directory will be created in the root of the securityfs filesystem.}(hj, hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj) ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj( hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hja h]h Description}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubh)}(hHThis function creates a directory in securityfs with the given **name**.h](h?This function creates a directory in securityfs with the given }(hjw hhhNhNubj)}(h**name**h]hname}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh.}(hjw hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is returned.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhj 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)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hKubh)}(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 securityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhj hhhj hKubj)}(h h]h }(hj( hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hKubj)}(hjh]h*}(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubjg)}(hsecurityfs_create_symlinkh]jm)}(hj% h]hsecurityfs_create_symlink}(hjG hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hKubj)}(hb(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j)}(hconst char *nameh](j)}(hjh]hconst}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ ubj)}(h h]h }(hjo 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&]noemphjjuh1jhjZ ubj)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j# c.securityfs_create_symlinkasbuh1hhj 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)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ ubj)}(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}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ ubj)}(hjh]h*}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubjm)}(htargeth]htarget}(hjs hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ ubj)}(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)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hinode_operationsh]hinode_operations}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j# c.securityfs_create_symlinkasbuh1hhj 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)}(hiopsh]hiops}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhj hhubj)}(hhh]h)}(h-create a symlink in the securityfs filesystemh]h-create a symlink in the securityfs filesystem}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj%hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhj 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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjDubj)}(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)}(hjih]hconst char *name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjcubj)}(hhh]h)}(hCa pointer to a string containing the name of the symlink to create.h]hCa pointer to a string containing the name of the symlink to create.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(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)}(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 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 }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN, then the directory will be created in the root of the securityfs filesystem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj`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)}(hjh]hconst char *target}(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 a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations.h](hZa pointer to a string containing the name of the symlink’s target. If this parameter is }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , then the }(hjhhhNhNubj)}(h**iops**h]hiops}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj`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)}(hjMh]h#const struct inode_operations *iops}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjGubj)}(hhh]h)}(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 }(hjfhhhNhNubj)}(h``NULL``h]hNULL}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh@, then the default simple_symlink_inode operations will be used.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj`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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjDubh)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink 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.chKhjDubh)}(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.chKhjDubh)}(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.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurityfs_remove (C function)c.securityfs_removehNtauh1hhj 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 hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hM#ubjg)}(hsecurityfs_removeh]jm)}(hsecurityfs_removeh]hsecurityfs_remove}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj0hM#ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(hhh]jm)}(hdentryh]hdentry}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jEsbc.securityfs_removeasbuh1hhj[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&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hM#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hM#hjhhubj)}(hhh]h)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM'hjubj)}(hhh]j)}(h\``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. h](j)}(h``struct dentry *dentry``h]j)}(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.chM%hjubj)}(hhh]h)}(hAa pointer to a the dentry of the file or directory to be removed.h]hAa pointer to a the dentry of the file or directory to be removed.}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM'hjubh)}(hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)h]hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM&hjubh)}(hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.h]hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM*hjubh)}(h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h]h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM"ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_start (C function)c.audit_log_starthNtauh1hhjhhhNhNubh)}(hhh](j)}(h[struct audit_buffer * audit_log_start (struct audit_context *ctx, gfp_t gfp_mask, int type)h]j)}(hYstruct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM5ubh)}(hhh]jm)}(h audit_bufferh]h audit_buffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE audit_log_startsbc.audit_log_startasbuh1hhjhhhjhM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM5ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubjg)}(haudit_log_starth]jm)}(hjh]haudit_log_start}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM5ubj)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.audit_log_startasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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.audit_log_startasbuh1hhjubj)}(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&]noemphjjuh1jhjLubj)}(hint typeh](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htypeh]htype}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj)}(hhh]h)}(hobtain an audit bufferh]hobtain an audit buffer}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM5hjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM9hjnubj)}(hhh](j)}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j)}(h``struct audit_context *ctx``h]j)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM6hjubj)}(hhh]h)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h&``gfp_t gfp_mask`` type of allocation 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM7hjubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM8hjubj)}(hhh]h)}(haudit message typeh]haudit message type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM:hjnubh)}(h9Returns audit_buffer pointer on success or NULL on error.h]h9Returns audit_buffer pointer on success or NULL on error.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM9hjnubh)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM;hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_format (C function)c.audit_log_formathNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(haudit_log_formath]jm)}(haudit_log_formath]haudit_log_format}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j)}(hstruct audit_buffer *abh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h audit_bufferh]h audit_buffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.audit_log_formatasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(habh]hab}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj )}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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:292: ./kernel/audit.chMhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjubj)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hjCh]hconst char *fmt}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj=ubj)}(hhh]h)}(h format stringh]h format string}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(h4``...`` optional parameters matching **fmt** string h](j)}(h``...``h]j)}(hj|h]h...}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjvubj)}(hhh]h)}(h+optional parameters matching **fmt** stringh](hoptional parameters matching }(hjhhhNhNubj)}(h**fmt**h]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh string}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjubh)}(h*All the work is done in audit_log_vformat.h]h*All the work is done in audit_log_vformat.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_end (C function)c.audit_log_endhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMn ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMn 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 hhhjhMn ubj)}(h(struct audit_buffer *ab)h]j)}(hstruct audit_buffer *abh](j)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h audit_bufferh]h audit_buffer}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.audit_log_endasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(habh]hab}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMn ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMn ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMn hjhhubj)}(hhh]h)}(hend one audit recordh]hend one audit record}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMn hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMn ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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:292: ./kernel/audit.chMr hjubj)}(hhh]j)}(h-``struct audit_buffer *ab`` the audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hjh]hstruct audit_buffer *ab}(hjhhhNhNubah}(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.chMo hj ubj)}(hhh]h)}(hthe audit_bufferh]hthe audit_buffer}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMo hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMo hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMq hjubh)}(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.chMp hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log (C function) c.audit_loghNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(h audit_logh]jm)}(h audit_logh]h audit_log}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.audit_logasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN 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}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(hLog an audit recordh]hLog an audit record}(hjAhhhNhNubah}(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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj]ubj)}(hhh](j)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj|ubj)}(hhh]h)}(h audit contexth]h audit context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjyubj)}(h&``gfp_t gfp_mask`` type of allocation 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjyubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjubj)}(hhh]h)}(haudit message typeh]haudit message 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 hjyubj)}(h)``const char *fmt`` format string to use h](j)}(h``const char *fmt``h]j)}(hj-h]hconst char *fmt}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj'ubj)}(hhh]h)}(hformat string to useh]hformat string to use}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjyubj)}(h7``...`` variable parameters matching the format string h](j)}(h``...``h]j)}(hjfh]h...}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj`ubj)}(hhh]h)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj]ubh)}(hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.h]hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM.ubjg)}(h__audit_filter_oph]jm)}(h__audit_filter_oph]h__audit_filter_op}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM.ubj)}(hx(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h task_structh]h task_struct}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.__audit_filter_opasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htskh]htsk}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j]c.__audit_filter_opasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h list_headh]h list_head}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]j]c.__audit_filter_opasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlisth]hlist}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct audit_names *nameh](j)}(hj6}h]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubh)}(hhh]jm)}(h audit_namesh]h audit_names}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j]c.__audit_filter_opasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long oph](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)}(hoph]hop}(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)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.hjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhjhNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hjcubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM/hjubj)}(hhh]h)}(hassociated taskh]hassociated task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjubj)}(hhh]h)}(h audit contexth]h audit context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h-``struct list_head *list`` audit filter list h](j)}(h``struct list_head *list``h]j)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjubj)}(hhh]h)}(haudit filter listh]haudit filter list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hj3h]hstruct audit_names *name}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj-ubj)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM2hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM2hjubj)}(h.``unsigned long op`` current syscall/uring_op h](j)}(h``unsigned long op``h]j)}(hjlh]hunsigned long op}(hjnhhhNhNubah}(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.chM3hjfubj)}(hhh]h)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hjcubh)}(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 }(hjhhhNhNubj)}(h**list**h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh against }(hjhhhNhNubj)}(h**tsk**h]htsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh using }(hjhhhNhNubj)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h**op**h]hop}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjhhhNhNubj)}(h**name**h]hname}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhjhhhNhNubh)}(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}(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPubj)}(h h]h }(hjg hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT hhhjf hMPubjg)}(haudit_filter_uringh]jm)}(haudit_filter_uringh]haudit_filter_uring}(hjy hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjT hhhjf hMPubj)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j{ sbc.audit_filter_uringasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(htskh]htsk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj%!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'!modnameN classnameNjI jL )}jO ]j c.audit_filter_uringasbuh1hhj!ubj)}(h h]h }(hjC!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjQ!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 ubeh}(h]h ]h"]h$]h&]jjuh1jhjT hhhjf hMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjP hhhjf hMPubah}(h]jK ah ](jjeh"]h$]h&]jj)jhuh1hhjf hMPhjM hhubj)}(hhh]h)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj!hhubah}(h]h ]h"]h$]h&]uh1jhjM hhhjf hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjhNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` 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.chMThj!ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated 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.chMQhj!ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMQhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMQhj!ubj)}(h+``struct audit_context *ctx`` audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj"h]hstruct audit_context *ctx}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj!ubj)}(hhh]h)}(h audit contexth]h audit context}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMRhj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hMShj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h audit_reset_context (C function)c.audit_reset_contexthNtauh1hhjhhhNhNubh)}(hhh](j)}(h4void audit_reset_context (struct audit_context *ctx)h]j)}(h3void audit_reset_context(struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hj\"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX"hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjk"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX"hhhjj"hMubjg)}(haudit_reset_contexth]jm)}(haudit_reset_contexth]haudit_reset_context}(hj}"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjX"hhhjj"hMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE j"sbc.audit_reset_contextasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hctxh]hctx}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhjX"hhhjj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjT"hhhjj"hMubah}(h]jO"ah ](jjeh"]h$]h&]jj)jhuh1hhjj"hMhjQ"hhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjQ"hhhjj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4#jj4#jjjuh1hhhhjhNhNubj)}(hX{**Parameters** ``struct audit_context *ctx`` the audit_context to reset **Description** All fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h](h)}(h**Parameters**h]j)}(hj>#h]h Parameters}(hj@#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<#ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8#ubj)}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset h](j)}(h``struct audit_context *ctx``h]j)}(hj]#h]hstruct audit_context *ctx}(hj_#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[#ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjW#ubj)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hjv#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr#hMhjs#ubah}(h]h ]h"]h$]h&]uh1jhjW#ubeh}(h]h ]h"]h$]h&]uh1jhjr#hMhjT#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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8#ubh)}(hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h]hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_alloc (C function) c.audit_allochNtauh1hhjhhhNhNubh)}(hhh](j)}(h)int audit_alloc (struct task_struct *tsk)h]j)}(h(int audit_alloc(struct task_struct *tsk)h](j )}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj#hMubjg)}(h audit_alloch]jm)}(h audit_alloch]h audit_alloc}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj'$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj8$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:$modnameN classnameNjI jL )}jO ]jR )}jE j$sb c.audit_allocasbuh1hhj$ubj)}(h h]h }(hjX$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjf$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(htskh]htsk}(hjs$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj#hhubj)}(hhh]h)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjhNhNubj)}(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)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj$ubj)}(hhh]j)}(h!``struct 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&]uh1jhj$ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj$ubh)}(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.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_uring (C function)c.audit_log_uringhNtauh1hhjhhhNhNubh)}(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 hjZ%hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMeubj)}(h h]h }(hjm%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZ%hhhjl%hMeubjg)}(haudit_log_uringh]jm)}(haudit_log_uringh]haudit_log_uring}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZ%hhhjl%hMeubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE j%sbc.audit_log_uringasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hctxh]hctx}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjZ%hhhjl%hMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjV%hhhjl%hMeubah}(h]jQ%ah ](jjeh"]h$]h&]jj)jhuh1hhjl%hMehjS%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.chMehj&hhubah}(h]h ]h"]h$]h&]uh1jhjS%hhhjl%hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6&jj6&jjjuh1hhhhjhNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](h)}(h**Parameters**h]j)}(hj@&h]h Parameters}(hjB&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>&ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMihj:&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}(hja&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]&ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMkhjY&ubj)}(hhh]h)}(hthe audit contexth]hthe audit context}(hjx&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMfhju&ubah}(h]h ]h"]h$]h&]uh1jhjY&ubeh}(h]h ]h"]h$]h&]uh1jhjt&hMkhjV&ubah}(h]h ]h"]h$]h&]uh1jhj:&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_free (C function)c.__audit_freehNtauh1hhjhhhNhNubh)}(hhh](j)}(h+void __audit_free (struct task_struct *tsk)h]j)}(h*void __audit_free(struct task_struct *tsk)h](j )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj&hMubjg)}(h __audit_freeh]jm)}(h __audit_freeh]h __audit_free}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j&sbc.__audit_freeasbuh1hhj&ubj)}(h h]h }(hj4'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hjB'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjm)}(htskh]htsk}(hjO'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubah}(h]h ]h"]h$]h&]jjuh1jhj&hhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhj&hhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjv'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjhNhNubj)}(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)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj'ubj)}(hhh]j)}(hC``struct task_struct *tsk`` task whose audit context block to free 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)}(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&]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:295: ./kernel/auditsc.chMhj'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.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_return_fixup (C function)c.audit_return_fixuphNtauh1hhjhhhNhNubh)}(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 hj6(hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMEubj)}(h h]h }(hjI(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6(hhhjH(hMEubjg)}(haudit_return_fixuph]jm)}(haudit_return_fixuph]haudit_return_fixup}(hj[(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjW(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6(hhhjH(hMEubj)}(h3(struct audit_context *ctx, int success, long code)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjw(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs(ubh)}(hhh]jm)}(h 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 j](sbc.audit_return_fixupasbuh1hhjs(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)}(hctxh]hctx}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo(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&]noemphjjuh1jhjo(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&]noemphjjuh1jhjo(ubeh}(h]h ]h"]h$]h&]jjuh1jhj6(hhhjH(hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2(hhhjH(hMEubah}(h]j-(ah ](jjeh"]h$]h&]jj)jhuh1hhjH(hMEhj/(hhubj)}(hhh]h)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hjd)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMEhja)hhubah}(h]h ]h"]h$]h&]uh1jhj/(hhhjH(hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|)jj|)jjjuh1hhhhjhNhNubj)}(hX\**Parameters** ``struct audit_context *ctx`` the audit_context ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** We need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.h](h)}(h**Parameters**h]j)}(hj)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.chMIhj)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}(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.chMFhj)ubj)}(hhh]h)}(hthe audit_contexth]hthe audit_context}(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)}(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.chMGhj)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)hMGhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMGhj)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.chMHhj*ubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj0*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)}(hjR*h]h Description}(hjT*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP*ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMJhj)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.}(hjh*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMIhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhjhhhNhNubh)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)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.chMaubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj*hMaubjg)}(h__audit_uring_entryh]jm)}(h__audit_uring_entryh]h__audit_uring_entry}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj*hMaubj)}(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 j*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&]jjuh1jhj*hhhj*hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hMaubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hMahj*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.chMahj,+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjjG+jjG+jjjuh1hhhhjhNhNubj)}(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)}(hjQ+h]h Parameters}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO+ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMehjK+ubj)}(hhh]j)}(h``u8 op`` the io_uring opcode h](j)}(h ``u8 op``h]j)}(hjp+h]hu8 op}(hjr+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn+ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMbhjj+ubj)}(hhh]h)}(hthe io_uring opcodeh]hthe io_uring opcode}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMbhj+ubah}(h]h ]h"]h$]h&]uh1jhjj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMbhjg+ubah}(h]h ]h"]h$]h&]uh1jhjK+ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMdhjK+ubh)}(hThis is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.h]hThis is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMchjK+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhjhhhNhNubh)}(hhh](j)}(h0void __audit_uring_exit (int success, long code)h]j)}(h/void __audit_uring_exit(int success, long code)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+hhhj+hMubjg)}(h__audit_uring_exith]jm)}(h__audit_uring_exith]h__audit_uring_exit}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhj+hMubj)}(h(int success, long code)h](j)}(h int successh](j )}(hinth]hint}(hj-,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj),ubj)}(h h]h }(hj;,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj),ubjm)}(hsuccessh]hsuccess}(hjI,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj),ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%,ubj)}(h long codeh](j )}(hlongh]hlong}(hjb,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^,ubj)}(h h]h }(hjp,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^,ubjm)}(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+hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhj+hMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hMhj+hhubj)}(hhh]h)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjhNhNubj)}(hXv**Parameters** ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** This is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj,ubj)}(hhh](j)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hj,h]h int success}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj,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,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj,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.chMhj-ubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj;-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7-hMhj8-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj7-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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj,ubh)}(hThis is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.h]hThis is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.}(hjs-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhjhhhNhNubh)}(hhh](j)}(hnvoid __audit_syscall_entry (int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h]j)}(hmvoid __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hMubjg)}(h__audit_syscall_entryh]jm)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](j )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hmajorh]hmajor}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long a1h](j )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj".hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj )}(hlongh]hlong}(hj0.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj>.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubjm)}(ha1h]ha1}(hjL.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long a2h](j )}(hunsignedh]hunsigned}(hje.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja.ubj)}(h h]h }(hjs.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja.ubjm)}(ha2h]ha2}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long a3h](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)}(ha3h]ha3}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long a4h](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hlongh]hlong}(hj#/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj1/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(ha4h]ha4}(hj?/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhj-hhubj)}(hhh]h)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(hji/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjf/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``int major`` major syscall type (function) ``unsigned long a1`` additional syscall register 1 ``unsigned long a2`` additional syscall register 2 ``unsigned long a3`` additional syscall register 3 ``unsigned long a4`` additional syscall register 4 **Description** Fill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj/ubj)}(hhh](j)}(h,``int major`` major syscall type (function) h](j)}(h ``int major``h]j)}(hj/h]h int major}(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)}(hmajor syscall type (function)h]hmajor syscall type (function)}(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 long a1`` additional syscall register 1 h](j)}(h``unsigned long a1``h]j)}(hj/h]hunsigned long a1}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj/ubj)}(hhh]h)}(hadditional syscall register 1h]hadditional syscall register 1}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(h3``unsigned long a2`` additional syscall register 2 h](j)}(h``unsigned long a2``h]j)}(hj0h]hunsigned long a2}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj0ubj)}(hhh]h)}(hadditional syscall register 2h]hadditional syscall register 2}(hj50hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj10hMhj20ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj10hMhj/ubj)}(h3``unsigned long a3`` additional syscall register 3 h](j)}(h``unsigned long a3``h]j)}(hjU0h]hunsigned long a3}(hjW0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjO0ubj)}(hhh]h)}(hadditional syscall register 3h]hadditional syscall register 3}(hjn0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj0hMhjk0ubah}(h]h ]h"]h$]h&]uh1jhjO0ubeh}(h]h ]h"]h$]h&]uh1jhjj0hMhj/ubj)}(h3``unsigned long a4`` additional syscall register 4 h](j)}(h``unsigned long a4``h]j)}(hj0h]hunsigned long a4}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj0ubj)}(hhh]h)}(hadditional syscall register 4h]hadditional syscall register 4}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj/ubh)}(hXFill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).h]hXFill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhjhhhNhNubh)}(hhh](j)}(h9void __audit_syscall_exit (int success, long return_code)h]j)}(h8void __audit_syscall_exit(int success, long return_code)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj 1hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 1hhhj1hMubjg)}(h__audit_syscall_exith]jm)}(h__audit_syscall_exith]h__audit_syscall_exit}(hj/1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 1hhhj1hMubj)}(h(int success, long return_code)h](j)}(h int successh](j )}(hinth]hint}(hjK1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG1ubj)}(h h]h }(hjY1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG1ubjm)}(hsuccessh]hsuccess}(hjg1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC1ubj)}(hlong return_codeh](j )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|1ubjm)}(h return_codeh]h return_code}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC1ubeh}(h]h ]h"]h$]h&]jjuh1jhj 1hhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhj1hhubj)}(hhh]h)}(h,deallocate audit context after a system callh]h,deallocate audit context after a system call}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``int success`` success value of the syscall ``long return_code`` return value of the syscall **Description** Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubj)}(hhh](j)}(h-``int success`` success value of the syscall h](j)}(h``int success``h]j)}(hj2h]h int success}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj2ubj)}(hhh]h)}(hsuccess value of the syscallh]hsuccess value of the syscall}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj1ubj)}(h1``long return_code`` return value of the syscall h](j)}(h``long return_code``h]j)}(hj@2h]hlong return_code}(hjB2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj:2ubj)}(hhh]h)}(hreturn value of the syscallh]hreturn value of the syscall}(hjY2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU2hMhjV2ubah}(h]h ]h"]h$]h&]uh1jhj:2ubeh}(h]h ]h"]h$]h&]uh1jhjU2hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj{2h]h Description}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubh)}(hX/Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().h]hX/Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_reusename (C function)c.__audit_reusenamehNtauh1hhjhhhNhNubh)}(hhh](j)}(h=struct filename * __audit_reusename (const __user char *uptr)h]j)}(h;struct filename *__audit_reusename(__user const char *uptr)h](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMubh)}(hhh]jm)}(hfilenameh]hfilename}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE __audit_reusenamesbc.__audit_reusenameasbuh1hhj2hhhj2hMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hMubjg)}(h__audit_reusenameh]jm)}(hj2h]h__audit_reusename}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMubj)}(h(__user const char *uptr)h]j)}(h__user const char *uptrh](h__user}(hj63hhhNhNubj)}(h h]h }(hj>3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj63ubj)}(hjh]hconst}(hjL3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj63ubj)}(h h]h }(hjY3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj63ubj )}(hcharh]hchar}(hjg3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj63ubj)}(h h]h }(hju3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj63ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj63ubjm)}(huptrh]huptr}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj63ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj23ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhj2hhubj)}(hhh]h)}(h/fill out filename with info from existing entryh]h/fill out filename with info from existing entry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3ubj)}(hhh]j)}(h5``const __user char *uptr`` userland ptr to pathname h](j)}(h``const __user char *uptr``h]j)}(hj3h]hconst __user char *uptr}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3ubj)}(hhh]h)}(huserland ptr to pathnameh]huserland ptr to pathname}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj64h]h Description}(hj84hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj44ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3ubh)}(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.}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_getname (C function)c.__audit_getnamehNtauh1hhjhhhNhNubh)}(hhh](j)}(h,void __audit_getname (struct filename *name)h]j)}(h+void __audit_getname(struct filename *name)h](j )}(hvoidh]hvoid}(hj{4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjw4hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjw4hhhj4hMubjg)}(h__audit_getnameh]jm)}(h__audit_getnameh]h__audit_getname}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjw4hhhj4hMubj)}(h(struct filename *name)h]j)}(hstruct filename *nameh](j)}(hj6}h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hfilenameh]hfilename}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE j4sbc.__audit_getnameasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hnameh]hname}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjw4hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjs4hhhj4hMubah}(h]jn4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhjp4hhubj)}(hhh]h)}(hadd a name to the listh]hadd a name to the list}(hj;5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj85hhubah}(h]h ]h"]h$]h&]uh1jhjp4hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjS5jjS5jjjuh1hhhhjhNhNubj)}(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)}(hj]5h]h Parameters}(hj_5hhhNhNubah}(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.chMhjW5ubj)}(hhh]j)}(h&``struct filename *name`` name to add h](j)}(h``struct filename *name``h]j)}(hj|5h]hstruct filename *name}(hj~5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz5ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjv5ubj)}(hhh]h)}(h name to addh]h name to add}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjv5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjs5ubah}(h]h ]h"]h$]h&]uh1jhjW5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjW5ubh)}(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().}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjW5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_inode (C function)c.__audit_inodehNtauh1hhjhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj 6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj 6hMubjg)}(h __audit_inodeh]jm)}(h __audit_inodeh]h __audit_inode}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj 6hMubj)}(hH(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j)}(hstruct filename *nameh](j)}(hj6}h]hstruct}(hj96hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj56ubj)}(h h]h }(hjF6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj56ubh)}(hhh]jm)}(hfilenameh]hfilename}(hjW6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjY6modnameN classnameNjI jL )}jO ]jR )}jE j6sbc.__audit_inodeasbuh1hhj56ubj)}(h h]h }(hjw6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj56ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj56ubjm)}(hnameh]hname}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj56ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj16ubj)}(hconst struct dentry *dentryh](j)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(hdentryh]hdentry}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]js6c.__audit_inodeasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hdentryh]hdentry}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj16ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj67hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj27ubj)}(h h]h }(hjD7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj27ubj )}(hinth]hint}(hjR7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj27ubj)}(h h]h }(hj`7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj27ubjm)}(hflagsh]hflags}(hjn7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj27ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj16ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj 6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj 6hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj 6hMhj5hhubj)}(hhh]h)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj 6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjhNhNubj)}(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)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj7ubj)}(hhh](j)}(h-``struct filename *name`` name being audited h](j)}(h``struct filename *name``h]j)}(hj7h]hstruct filename *name}(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.chMhj7ubj)}(hhh]h)}(hname being auditedh]hname being audited}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(h5``const struct dentry *dentry`` dentry being audited h](j)}(h``const struct dentry *dentry``h]j)}(hj8h]hconst struct dentry *dentry}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj 8ubj)}(hhh]h)}(hdentry being auditedh]hdentry being audited}(hj+8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'8hMhj(8ubah}(h]h ]h"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]uh1jhj'8hMhj7ubj)}(h;``unsigned int flags`` attributes for this particular entryh](j)}(h``unsigned int flags``h]j)}(hjK8h]hunsigned int flags}(hjM8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjE8ubj)}(hhh]h)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hjd8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhja8ubah}(h]h ]h"]h$]h&]uh1jhjE8ubeh}(h]h ]h"]h$]h&]uh1jhj`8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hauditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhjhhhNhNubh)}(hhh](j)}(h]int auditsc_get_stamp (struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h]j)}(h\int auditsc_get_stamp(struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj8hM ubjg)}(hauditsc_get_stamph]jm)}(hauditsc_get_stamph]hauditsc_get_stamp}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hM ubj)}(hG(struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE j8sbc.auditsc_get_stampasbuh1hhj8ubj)}(h h]h }(hj 9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj.9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hctxh]hctx}(hj;9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct timespec64 *th](j)}(hj6}h]hstruct}(hjT9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP9ubj)}(h h]h }(hja9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP9ubh)}(hhh]jm)}(h timespec64h]h timespec64}(hjr9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjt9modnameN classnameNjI jL )}jO ]j9c.auditsc_get_stampasbuh1hhjP9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP9ubjm)}(hth]ht}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hunsigned int *serialh](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hserialh]hserial}(hj :hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hM ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hM hj8hhubj)}(hhh]h)}(h(get local copies of audit_context valuesh]h(get local copies of audit_context values}(hj3:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj0:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjK:jjK:jjjuh1hhhhjhNhNubj)}(hX"**Parameters** ``struct audit_context *ctx`` audit_context for the task ``struct timespec64 *t`` timespec64 to store time recorded in the audit_context ``unsigned int *serial`` serial value that is recorded in the audit_context **Description** Also sets the context as auditable.h](h)}(h**Parameters**h]j)}(hjU:h]h Parameters}(hjW:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS:ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjO:ubj)}(hhh](j)}(h9``struct audit_context *ctx`` audit_context for the task h](j)}(h``struct audit_context *ctx``h]j)}(hjt:h]hstruct audit_context *ctx}(hjv:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr:ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjn:ubj)}(hhh]h)}(haudit_context for the taskh]haudit_context for the task}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jhjn:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM hjk:ubj)}(hP``struct timespec64 *t`` timespec64 to store time recorded in the audit_context h](j)}(h``struct timespec64 *t``h]j)}(hj:h]hstruct timespec64 *t}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj:ubj)}(hhh]h)}(h6timespec64 to store time recorded in the audit_contexth]h6timespec64 to store time recorded in the audit_context}(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 hjk:ubj)}(hL``unsigned int *serial`` serial value that is recorded in the audit_context h](j)}(h``unsigned int *serial``h]j)}(hj:h]hunsigned int *serial}(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)}(h2serial value that is recorded in the audit_contexth]h2serial value that is recorded in the audit_context}(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 hjk: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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjO:ubh)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hj7;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjO:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_open (C function)c.__audit_mq_openhNtauh1hhjhhhNhNubh)}(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}(hjf;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjb;hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hju;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb;hhhjt;hM ubjg)}(h__audit_mq_openh]jm)}(h__audit_mq_openh]h__audit_mq_open}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjb;hhhjt;hM ubj)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j)}(h int oflagh](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)}(hoflagh]hoflag}(hj;hhhNhNubah}(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}(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_mq_openasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hmodeh]hmode}(hj <hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hstruct mq_attr *attrh](j)}(hj6}h]hstruct}(hj"<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj/<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hj@<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB<modnameN classnameNjI jL )}jO ]j;c.__audit_mq_openasbuh1hhj<ubj)}(h h]h }(hj^<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjl<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hattrh]hattr}(hjy<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%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj<hhubah}(h]h ]h"]h$]h&]uh1jhj[;hhhjt;hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhjhNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj<ubj)}(hhh](j)}(h``int oflag`` open flag h](j)}(h ``int oflag``h]j)}(hj<h]h int oflag}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj<ubj)}(hhh]h)}(h open flagh]h open flag}(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``umode_t mode`` mode bits h](j)}(h``umode_t mode``h]j)}(hj=h]h umode_t mode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj=ubj)}(hhh]h)}(h mode bitsh]h mode bits}(hj6=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2=hM hj3=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj2=hM hj<ubj)}(h)``struct mq_attr *attr`` queue attributesh](j)}(h``struct mq_attr *attr``h]j)}(hjV=h]hstruct mq_attr *attr}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT=ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjP=ubj)}(hhh]h)}(hqueue attributesh]hqueue attributes}(hjo=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjl=ubah}(h]h ]h"]h$]h&]uh1jhjP=ubeh}(h]h ]h"]h$]h&]uh1jhjk=hM hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhjhhhNhNubh)}(hhh](j)}(hsvoid __audit_mq_sendrecv (mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h]j)}(hrvoid __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]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_mq_sendrecvh]jm)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hM ubj)}(hZ(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE j=sbc.__audit_mq_sendrecvasbuh1hhj=ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(hmqdesh]hmqdes}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hsize_t msg_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj:>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<>modnameN classnameNjI jL )}jO ]j >c.__audit_mq_sendrecvasbuh1hhj3>ubj)}(h h]h }(hjX>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3>ubjm)}(hmsg_lenh]hmsg_len}(hjf>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hunsigned int msg_prioh](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)}(hmsg_prioh]hmsg_prio}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h$const struct timespec64 *abs_timeouth](j)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h timespec64h]h timespec64}(hj ?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj ?modnameN classnameNjI jL )}jO ]j >c.__audit_mq_sendrecvasbuh1hhj>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)}(h abs_timeouth]h abs_timeout}(hjB?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)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hjl?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hji?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhjhNhNubj)}(h**Parameters** ``mqd_t mqdes`` MQ descriptor ``size_t msg_len`` Message length ``unsigned int msg_prio`` Message priority ``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj?ubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hj?h]h mqd_t mqdes}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj?ubj)}(hhh]h)}(h MQ descriptorh]h MQ 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"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hj?h]hsize_t msg_len}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj?ubj)}(hhh]h)}(hMessage lengthh]hMessage length}(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 int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hj@h]hunsigned int msg_prio}(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)}(hMessage priorityh]hMessage priority}(hj8@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4@hM hj5@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj4@hM hj?ubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hjX@h]h$const struct timespec64 *abs_timeout}(hjZ@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV@ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjR@ubj)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hjq@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjn@ubah}(h]h ]h"]h$]h&]uh1jhjR@ubeh}(h]h ]h"]h$]h&]uh1jhjm@hM hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhjhhhNhNubh)}(hhh](j)}(hIvoid __audit_mq_notify (mqd_t mqdes, const struct sigevent *notification)h]j)}(hHvoid __audit_mq_notify(mqd_t mqdes, const struct sigevent *notification)h](j )}(hvoidh]hvoid}(hj@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_mq_notifyh]jm)}(h__audit_mq_notifyh]h__audit_mq_notify}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj@hM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jR )}jE j@sbc.__audit_mq_notifyasbuh1hhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hmqdesh]hmqdes}(hj AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hj9AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubj)}(h h]h }(hjFAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubj)}(hj6}h]hstruct}(hjTAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubj)}(h h]h }(hjaAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubh)}(hhh]jm)}(hsigeventh]hsigevent}(hjrAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtAmodnameN classnameNjI jL )}jO ]jAc.__audit_mq_notifyasbuh1hhj5Aubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubjm)}(h notificationh]h notification}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5Aubeh}(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 a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjhNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjAubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjBh]h mqd_t mqdes}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjBubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hj/BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+BhM hj,Bubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj+BhM hj Bubj)}(h:``const struct sigevent *notification`` Notification eventh](j)}(h'``const struct sigevent *notification``h]j)}(hjOBh]h#const struct sigevent *notification}(hjQBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMBubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjIBubj)}(hhh]h)}(hNotification eventh]hNotification event}(hjhBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjeBubah}(h]h ]h"]h$]h&]uh1jhjIBubeh}(h]h ]h"]h$]h&]uh1jhjdBhM hj Bubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhjhhhNhNubh)}(hhh](j)}(h@void __audit_mq_getsetattr (mqd_t mqdes, struct mq_attr *mqstat)h]j)}(h?void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat)h](j )}(hvoidh]hvoid}(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)}(h__audit_mq_getsetattrh]jm)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjBhM* ubj)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jBsbc.__audit_mq_getsetattrasbuh1hhjBubj)}(h h]h }(hj ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubjm)}(hmqdesh]hmqdes}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct mq_attr *mqstath](j)}(hj6}h]hstruct}(hj0ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Cubj)}(h h]h }(hj=ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Cubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hjNChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPCmodnameN classnameNjI jL )}jO ]jCc.__audit_mq_getsetattrasbuh1hhj,Cubj)}(h h]h }(hjlChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Cubj)}(hjh]h*}(hjzChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Cubjm)}(hmqstath]hmqstat}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhM* ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhM* ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhM* hjBhhubj)}(hhh]h)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(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&]jjjjCjjCjjjuh1hhhhjhNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](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``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjCh]h mqd_t mqdes}(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)}(h MQ descriptorh]h MQ descriptor}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM+ hjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjDhM+ hjCubj)}(h#``struct mq_attr *mqstat`` MQ flagsh](j)}(h``struct mq_attr *mqstat``h]j)}(hj+Dh]hstruct mq_attr *mqstat}(hj-DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Dubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM- hj%Dubj)}(hhh]h)}(hMQ flagsh]hMQ flags}(hjDDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM, hjADubah}(h]h ]h"]h$]h&]uh1jhj%Dubeh}(h]h ]h"]h$]h&]uh1jhj@DhM- hjCubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhjhhhNhNubh)}(hhh](j)}(h1void __audit_ipc_obj (struct kern_ipc_perm *ipcp)h]j)}(h0void __audit_ipc_obj(struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM9 ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjDhM9 ubjg)}(h__audit_ipc_objh]jm)}(h__audit_ipc_objh]h__audit_ipc_obj}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhM9 ubj)}(h(struct kern_ipc_perm *ipcp)h]j)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jDsbc.__audit_ipc_objasbuh1hhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hipcph]hipcp}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhM9 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}DhhhjDhM9 ubah}(h]jxDah ](jjeh"]h$]h&]jj)jhuh1hhjDhM9 hjzDhhubj)}(hhh]h)}(h record audit data for ipc objecth]h record audit data for ipc object}(hjEEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM9 hjBEhhubah}(h]h ]h"]h$]h&]uh1jhjzDhhhjDhM9 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]Ejj]Ejjjuh1hhhhjhNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](h)}(h**Parameters**h]j)}(hjgEh]h Parameters}(hjiEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeEubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM= hjaEubj)}(hhh]j)}(h.``struct kern_ipc_perm *ipcp`` ipc permissionsh](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjEh]hstruct kern_ipc_perm *ipcp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM? hjEubj)}(hhh]h)}(hipc permissionsh]hipc permissions}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM: hjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM? hj}Eubah}(h]h ]h"]h$]h&]uh1jhjaEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhjhhhNhNubh)}(hhh](j)}(hTvoid __audit_ipc_set_perm (unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h]j)}(hSvoid __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMJ ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjEhMJ ubjg)}(h__audit_ipc_set_permh]jm)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjEhMJ ubj)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j)}(hunsigned long qbytesh](j )}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hj+FhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj )}(hlongh]hlong}(hj9FhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjGFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hqbytesh]hqbytes}(hjUFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h uid_t uidh](h)}(hhh]jm)}(huid_th]huid_t}(hjqFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsFmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.__audit_ipc_set_permasbuh1hhjjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjFubjm)}(huidh]huid}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h gid_t gidh](h)}(hhh]jm)}(hgid_th]hgid_t}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jFc.__audit_ipc_set_permasbuh1hhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hgidh]hgid}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jFc.__audit_ipc_set_permasbuh1hhjFubj)}(h h]h }(hj!GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hmodeh]hmode}(hj/GhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhMJ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhMJ ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhMJ hjEhhubj)}(hhh]h)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hjYGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMJ hjVGhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMJ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqGjjqGjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long qbytes`` msgq bytes ``uid_t uid`` msgq user id ``gid_t gid`` msgq group id ``umode_t mode`` msgq mode (permissions) **Description** Called only after audit_ipc_obj().h](h)}(h**Parameters**h]j)}(hj{Gh]h Parameters}(hj}GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMN hjuGubj)}(hhh](j)}(h$``unsigned long qbytes`` msgq bytes h](j)}(h``unsigned long qbytes``h]j)}(hjGh]hunsigned long qbytes}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMK hjGubj)}(hhh]h)}(h msgq bytesh]h msgq bytes}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMK hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMK hjGubj)}(h``uid_t uid`` msgq user id h](j)}(h ``uid_t uid``h]j)}(hjGh]h uid_t uid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chML hjGubj)}(hhh]h)}(h msgq user idh]h msgq user id}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhML hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhML hjGubj)}(h``gid_t gid`` msgq group id h](j)}(h ``gid_t gid``h]j)}(hj Hh]h gid_t gid}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Hubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMM hjHubj)}(hhh]h)}(h msgq group idh]h msgq group id}(hj%HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!HhMM hj"Hubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhj!HhMM hjGubj)}(h)``umode_t mode`` msgq mode (permissions) h](j)}(h``umode_t mode``h]j)}(hjEHh]h umode_t mode}(hjGHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMN hj?Hubj)}(hhh]h)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hj^HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZHhMN hj[Hubah}(h]h ]h"]h$]h&]uh1jhj?Hubeh}(h]h ]h"]h$]h&]uh1jhjZHhMN hjGubeh}(h]h ]h"]h$]h&]uh1jhjuGubh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Hubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMP hjuGubh)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMO hjuGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_socketcall (C function)c.__audit_socketcallhNtauh1hhjhhhNhNubh)}(hhh](j)}(h7int __audit_socketcall (int nargs, unsigned long *args)h]j)}(h6int __audit_socketcall(int nargs, unsigned long *args)h](j )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMg ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjHhMg ubjg)}(h__audit_socketcallh]jm)}(h__audit_socketcallh]h__audit_socketcall}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhjHhMg ubj)}(h (int nargs, unsigned long *args)h](j)}(h int nargsh](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hnargsh]hnargs}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long *argsh](j )}(hunsignedh]hunsigned}(hj7IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Iubj)}(h h]h }(hjEIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Iubj )}(hlongh]hlong}(hjSIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Iubj)}(h h]h }(hjaIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Iubj)}(hjh]h*}(hjoIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Iubjm)}(hargsh]hargs}(hj|IhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhMg ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhMg ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjHhMg hjHhhubj)}(hhh]h)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMg hjIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMg ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhjhNhNubj)}(h**Parameters** ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. ``unsigned long *args`` args arrayh](h)}(h**Parameters**h]j)}(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.chMk hjIubj)}(hhh](j)}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j)}(h ``int nargs``h]j)}(hjIh]h int nargs}(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.chMh hjIubj)}(hhh]h)}(h;number of args, which should not be more than AUDITSC_ARGS.h]h;number of args, which should not be more than AUDITSC_ARGS.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMh hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMh hjIubj)}(h"``unsigned long *args`` args arrayh](j)}(h``unsigned long *args``h]j)}(hj Jh]hunsigned long *args}(hj"JhhhNhNubah}(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.chMj hjJubj)}(hhh]h)}(h args arrayh]h args array}(hj9JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMi hj6Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj5JhMj hjIubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhjhhhNhNubh)}(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}(hjzJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvJhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvJhhhjJhMy ubjg)}(h__audit_fd_pairh]jm)}(h__audit_fd_pairh]h__audit_fd_pair}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvJhhhjJhMy ubj)}(h(int fd1, int fd2)h](j)}(hint fd1h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hfd1h]hfd1}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hint fd2h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hfd2h]hfd2}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjvJhhhjJhMy ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrJhhhjJhMy ubah}(h]jmJah ](jjeh"]h$]h&]jj)jhuh1hhjJhMy hjoJhhubj)}(hhh]h)}(h)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hj2KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy hj/Khhubah}(h]h ]h"]h$]h&]uh1jhjoJhhhjJhMy ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJKjjJKjjjuh1hhhhjhNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](h)}(h**Parameters**h]j)}(hjTKh]h Parameters}(hjVKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM} hjNKubj)}(hhh](j)}(h&``int fd1`` the first file descriptor h](j)}(h ``int fd1``h]j)}(hjsKh]hint fd1}(hjuKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMz hjmKubj)}(hhh]h)}(hthe first file descriptorh]hthe first file descriptor}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMz hjKubah}(h]h ]h"]h$]h&]uh1jhjmKubeh}(h]h ]h"]h$]h&]uh1jhjKhMz hjjKubj)}(h&``int fd2`` the second file descriptorh](j)}(h ``int fd2``h]j)}(hjKh]hint fd2}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM| hjKubj)}(hhh]h)}(hthe second file descriptorh]hthe second file descriptor}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM{ hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhM| hjjKubeh}(h]h ]h"]h$]h&]uh1jhjNKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhjhhhNhNubh)}(hhh](j)}(h'int __audit_sockaddr (int len, void *a)h]j)}(h&int __audit_sockaddr(int len, void *a)h](j )}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhM ubjg)}(h__audit_sockaddrh]jm)}(h__audit_sockaddrh]h__audit_sockaddr}(hj'LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#Lubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhjLhM ubj)}(h(int len, void *a)h](j)}(hint lenh](j )}(hinth]hint}(hjCLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?Lubj)}(h h]h }(hjQLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?Lubjm)}(hlenh]hlen}(hj_LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;Lubj)}(hvoid *ah](j )}(hvoidh]hvoid}(hjxLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtLubjm)}(hjh]ha}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;Lubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjLhM ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjLhM hjKhhubj)}(hhh]h)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjLhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhjhNhNubj)}(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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjLubj)}(hhh](j)}(h&``int len`` data length in user space h](j)}(h ``int len``h]j)}(hj Mh]hint len}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjMubj)}(hhh]h)}(hdata length in user spaceh]hdata length in user space}(hj$MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj MhM hj!Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj MhM hjMubj)}(h)``void *a`` data address in kernel space h](j)}(h ``void *a``h]j)}(hjDMh]hvoid *a}(hjFMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj>Mubj)}(hhh]h)}(hdata address in kernel spaceh]hdata address in kernel space}(hj]MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYMhM hjZMubah}(h]h ]h"]h$]h&]uh1jhj>Mubeh}(h]h ]h"]h$]h&]uh1jhjYMhM hjMubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjLubh)}(h6Returns 0 for success or NULL context or < 0 on error.h]h6Returns 0 for success or NULL context or < 0 on error.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhjhhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhjMhM ubjg)}(haudit_signal_info_syscallh]jm)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhM ubj)}(h(struct task_struct *t)h]j)}(hstruct task_struct *th](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(h task_structh]h task_struct}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!NmodnameN classnameNjI jL )}jO ]jR )}jE jMsbc.audit_signal_info_syscallasbuh1hhjMubj)}(h h]h }(hj?NhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjMNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hj9h]ht}(hjZNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjMhM hjMhhubj)}(hhh]h)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhjhNhNubj)}(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)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubj)}(hhh]j)}(h.``struct task_struct *t`` task being signaled h](j)}(h``struct task_struct *t``h]j)}(hjNh]hstruct task_struct *t}(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.chM hjNubj)}(hhh]h)}(htask being signaledh]htask being signaled}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjNh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubh)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhjhhhNhNubh)}(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}(hjDOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@OhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjSOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@OhhhjROhM ubjg)}(h__audit_log_bprm_fcapsh]jm)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hjeOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@OhhhjROhM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Oubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}Oubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jgOsbc.__audit_log_bprm_fcapsasbuh1hhj}Oubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}Oubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Oubjm)}(hbprmh]hbprm}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyOubj)}(hconst struct cred *newh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hcredh]hcred}(hj,PhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)Pubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.PmodnameN classnameNjI jL )}jO ]jOc.__audit_log_bprm_fcapsasbuh1hhjOubj)}(h h]h }(hjJPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjXPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hnewh]hnew}(hjePhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyOubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj~PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzPubj)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzPubh)}(hhh]jm)}(hcredh]hcred}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]jOc.__audit_log_bprm_fcapsasbuh1hhjzPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzPubjm)}(holdh]hold}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyOubeh}(h]h ]h"]h$]h&]jjuh1jhj@OhhhjROhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Qubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj6Qubj)}(hhh](j)}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j)}(h``struct linux_binprm *bprm``h]j)}(hj[Qh]hstruct linux_binprm *bprm}(hj]QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYQubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjUQubj)}(hhh]h)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hjtQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpQhM hjqQubah}(h]h ]h"]h$]h&]uh1jhjUQubeh}(h]h ]h"]h$]h&]uh1jhjpQhM hjRQubj)}(h8``const struct cred *new`` the proposed new credentials h](j)}(h``const struct cred *new``h]j)}(hjQh]hconst struct cred *new}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjQubj)}(hhh]h)}(hthe proposed new credentialsh]hthe proposed new credentials}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjRQubj)}(h/``const struct cred *old`` the old credentials h](j)}(h``const struct cred *old``h]j)}(hjQh]hconst struct cred *old}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjQubj)}(hhh]h)}(hthe old credentialsh]hthe old credentials}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjRQubeh}(h]h ]h"]h$]h&]uh1jhj6Qubh)}(h**Description**h]j)}(hjRh]h Description}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj6Qubh)}(hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscallh]hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj6Qubh)}(h-Erich]h-Eric}(hj-RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj6Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_log_capset (C function)c.__audit_log_capsethNtauh1hhjhhhNhNubh)}(hhh](j)}(hHvoid __audit_log_capset (const struct cred *new, const struct cred *old)h]j)}(hGvoid __audit_log_capset(const struct cred *new, const struct cred *old)h](j )}(hvoidh]hvoid}(hj\RhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXRhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjkRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXRhhhjjRhM ubjg)}(h__audit_log_capseth]jm)}(h__audit_log_capseth]h__audit_log_capset}(hj}RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXRhhhjjRhM ubj)}(h0(const struct cred *new, const struct cred *old)h](j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hcredh]hcred}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.__audit_log_capsetasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hnewh]hnew}(hj ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj&ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Subj)}(h h]h }(hj3ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"Subj)}(hj6}h]hstruct}(hjAShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Subj)}(h h]h }(hjNShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"Subh)}(hhh]jm)}(hcredh]hcred}(hj_ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjaSmodnameN classnameNjI jL )}jO ]jRc.__audit_log_capsetasbuh1hhj"Subj)}(h h]h }(hj}ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"Subj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Subjm)}(holdh]hold}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjXRhhhjjRhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjTRhhhjjRhM ubah}(h]jORah ](jjeh"]h$]h&]jj)jhuh1hhjjRhM hjQRhhubj)}(hhh]h)}(h;store information about the arguments to the capset syscallh]h;store information about the arguments to the capset syscall}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjQRhhhjjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhjhNhNubj)}(h**Parameters** ``const struct cred *new`` the new credentials ``const struct cred *old`` the old (current) credentials **Description** Record the arguments userspace sent to sys_capset for later printing by the audit system if applicableh](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjSubj)}(hhh](j)}(h/``const struct cred *new`` the new credentials h](j)}(h``const struct cred *new``h]j)}(hjTh]hconst struct cred *new}(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 hjSubj)}(hhh]h)}(hthe new credentialsh]hthe new credentials}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjTubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjThM hjSubj)}(h9``const struct cred *old`` the old (current) credentials h](j)}(h``const struct cred *old``h]j)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Tubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj6Tubj)}(hhh]h)}(hthe old (current) credentialsh]hthe old (current) credentials}(hjUThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQThM hjRTubah}(h]h ]h"]h$]h&]uh1jhj6Tubeh}(h]h ]h"]h$]h&]uh1jhjQThM hjSubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjwTh]h Description}(hjyThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuTubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjSubh)}(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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_core_dumps (C function)c.audit_core_dumpshNtauh1hhjhhhNhNubh)}(hhh](j)}(h"void audit_core_dumps (long signr)h]j)}(h!void audit_core_dumps(long signr)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjThM ubjg)}(haudit_core_dumpsh]jm)}(haudit_core_dumpsh]haudit_core_dumps}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThM ubj)}(h (long signr)h]j)}(h long signrh](j )}(hlongh]hlong}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hsignrh]hsignr}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubah}(h]h ]h"]h$]h&]jjuh1jhjThhhjThM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThM ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjThM hjThhubj)}(hhh]h)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(hj?UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hj_h]hconst struct qstr *dname}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj}_ubj)}(hhh]h)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(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)}(h8``const char *path`` full pathname that we're comparing h](j)}(h``const char *path``h]j)}(hj_h]hconst char *path}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj_ubj)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(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{``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)}(hj_h]h int parentlen}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj_ubj)}(hhh]h)}(hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h]hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj `hMhj `ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj `hMhjz_ubeh}(h]h ]h"]h$]h&]uh1jhj^_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hj@`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=`hhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsys_acct (C function) c.sys_accthNtauh1hhj=`hhhNhNubh)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hjg`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc`hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM0ubj)}(h h]h }(hjv`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc`hhhju`hM0ubjg)}(hsys_accth]jm)}(hsys_accth]hsys_acct}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjc`hhhju`hM0ubj)}(h(const char __user *name)h]j)}(hconst char __user *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`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)}(hnameh]hname}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhjc`hhhju`hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_`hhhju`hM0ubah}(h]jZ`ah ](jjeh"]h$]h&]jj)jhuh1hhju`hM0hj\`hhubj)}(hhh]h)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hj$ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM0hj!ahhubah}(h]h ]h"]h$]h&]uh1jhj\`hhhju`hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjch]hint group_dead}(hj@chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhj:dubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjYdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chKhjVdubah}(h]h ]h"]h$]h&]uh1jhj:dubeh}(h]h ]h"]h$]h&]uh1jhjUdhMhj7dubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj=`hhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM.ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhhhhhM4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_advance (C function) c.bio_advancehNtauh1hhjdhhhNhNubh)}(hhh](j)}(h7void bio_advance (struct bio *bio, unsigned int nbytes)h]j)}(h6void bio_advance(struct bio *bio, unsigned int nbytes)h](j )}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhK|ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjdhK|ubjg)}(h bio_advanceh]jm)}(h bio_advanceh]h bio_advance}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjdhK|ubj)}(h&(struct bio *bio, unsigned int nbytes)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(hbioh]hbio}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE jdsb c.bio_advanceasbuh1hhjdubj)}(h h]h }(hj.ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjfh]hunsigned int nbytes}(hj@fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThe current folio we're iterating. NULL after the last folio.h]h@The current folio we’re iterating. NULL after the last folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjgubj)}(h5``offset`` The byte offset within the current folio. h](j)}(h ``offset``h]j)}(hjgh]hoffset}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hjgubj)}(hhh]h)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjgubj)}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h ``length``h]j)}(hjgh]hlength}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjgubj)}(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).}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjgubeh}(h]h ]h"]h$]h&]uh1jhj9gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjdhhhNhNubh)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]jg)}(hbio_for_each_folio_allh]jm)}(hjOhh]hbio_for_each_folio_all}(hjYhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhhjlhhM;ubah}(h]jHhah ](jjeh"]h$]h&]jj)jhuh1hhjlhhM;hjJhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjJhhhhjlhhM;ubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1hhhhjdhNhNubh)}(h$``bio_for_each_folio_all (fi, bio)``h]j)}(hjhh]h bio_for_each_folio_all (fi, bio)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hjdhhubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;hjhubah}(h]h ]h"]h$]h&]uh1jhjhhM;hjdhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.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:310: ./include/linux/bio.hhM?hjhubj)}(hhh](j)}(h:``fi`` struct folio_iter which is updated for each folio. h](j)}(h``fi``h]j)}(hjhh]hfi}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM<hjhubj)}(hhh]h)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM<hjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM<hjhubj)}(h#``bio`` struct bio to iterate over.h](j)}(h``bio``h]j)}(hjih]hbio}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM>hjiubj)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hj1ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hj.iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj-ihM>hjhubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_next_split (C function)c.bio_next_splithNtauh1hhjdhhhNhNubh)}(hhh](j)}(hYstruct bio * bio_next_split (struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h]j)}(hWstruct bio *bio_next_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hj6}h]hstruct}(hjrihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMIubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnihhhjihMIubh)}(hhh]jm)}(hbioh]hbio}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE bio_next_splitsbc.bio_next_splitasbuh1hhjnihhhjihMIubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnihhhjihMIubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnihhhjihMIubjg)}(hbio_next_splith]jm)}(hjih]hbio_next_split}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnihhhjihMIubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(hbioh]hbio}(hj jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj jmodnameN classnameNjI jL )}jO ]jic.bio_next_splitasbuh1hhjiubj)}(h h]h }(hj(jhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hj6jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hbioh]hbio}(hjCjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h int sectorsh](j )}(hinth]hint}(hj\jhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXjubj)}(h h]h }(hjjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXjubjm)}(hsectorsh]hsectors}(hjxjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jic.bio_next_splitasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubjm)}(hgfph]hgfp}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct bio_set *bsh](j)}(hj6}h]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(hbio_seth]hbio_set}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jic.bio_next_splitasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hj#khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hbsh]hbs}(hj0khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjnihhhjihMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjihhhjihMIubah}(h]jeiah ](jjeh"]h$]h&]jj)jhuh1hhjihMIhjgihhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjZkhhhNhNubj)}(h **sectors**h]hsectors}(hjbkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZkubh# from a bio, splitting if necessary}(hjZkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMIhjWkhhubah}(h]h ]h"]h$]h&]uh1jhjgihhhjihMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhjdhNhNubj)}(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)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMMhjkubj)}(hhh](j)}(h!``struct bio *bio`` bio to split h](j)}(h``struct bio *bio``h]j)}(hjkh]hstruct bio *bio}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMJhjkubj)}(hhh]h)}(h bio to splith]h bio to split}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMJhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMJhjkubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hjkh]h int sectors}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMKhjkubj)}(hhh]h)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hjkhhhNhNubj)}(h**bio**h]hbio}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1hhjkhMKhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMKhjkubj)}(h``gfp_t gfp`` gfp mask h](j)}(h ``gfp_t gfp``h]j)}(hj-lh]h gfp_t gfp}(hj/lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMLhj'lubj)}(hhh]h)}(hgfp maskh]hgfp mask}(hjFlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBlhMLhjClubah}(h]h ]h"]h$]h&]uh1jhj'lubeh}(h]h ]h"]h$]h&]uh1jhjBlhMLhjkubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjflh]hstruct bio_set *bs}(hjhlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMMhj`lubj)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{lhMMhj|lubah}(h]h ]h"]h$]h&]uh1jhj`lubeh}(h]h ]h"]h$]h&]uh1jhj{lhMMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h **Return**h]j)}(hjlh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMOhjkubh)}(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 }(hjlhhhNhNubj)}(h **sectors**h]hsectors}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh of }(hjlhhhNhNubj)}(h**bio**h]hbio}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh - if the bio is smaller than }(hjlhhhNhNubj)}(h **sectors**h]hsectors}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh%, returns the original bio unchanged.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMOhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjdhhhNhNubh)}(hhh](j)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]j)}(hqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjWqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSqubj)}(h h]h }(hjdqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSqubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjuqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwqmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.blk_queue_flag_setasbuh1hhjSqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSqubjm)}(hjch]hq}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjphKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphKLubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphKLhjphhubj)}(hhh]h)}(hatomically set a queue flagh]hatomically set a queue flag}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKLhjqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjdhNhNubj)}(hc**Parameters** ``unsigned int flag`` flag to be set ``struct request_queue *q`` request queueh](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:311: ./block/blk-core.chKPhjqubj)}(hhh](j)}(h%``unsigned int flag`` flag to be set h](j)}(h``unsigned int flag``h]j)}(hjrh]hunsigned int flag}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKMhjrubj)}(hhh]h)}(hflag to be seth]hflag to be set}(hj3rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/rhKMhj0rubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhj/rhKMhjrubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hjSrh]hstruct request_queue *q}(hjUrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKOhjMrubj)}(hhh]h)}(h request queueh]h request queue}(hjlrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKNhjirubah}(h]h ]h"]h$]h&]uh1jhjMrubeh}(h]h ]h"]h$]h&]uh1jhjhrhKOhjrubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjdhhhNhNubh)}(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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjrhKWubjg)}(hblk_queue_flag_clearh]jm)}(hblk_queue_flag_clearh]hblk_queue_flag_clear}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhKWubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj )}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hflagh]hflag}(hj"shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj;shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7subj)}(h h]h }(hjHshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7subh)}(hhh]jm)}(h request_queueh]h request_queue}(hjYshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[smodnameN classnameNjI jL )}jO ]jR )}jE jrsbc.blk_queue_flag_clearasbuh1hhj7subj)}(h h]h }(hjyshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7subj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7subjm)}(hjch]hq}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7subeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKWubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKWhjrhhubj)}(hhh]h)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWhjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjdhNhNubj)}(hg**Parameters** ``unsigned int flag`` flag to be cleared ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chK[hjsubj)}(hhh](j)}(h)``unsigned int flag`` flag to be cleared h](j)}(h``unsigned int flag``h]j)}(hjsh]hunsigned int flag}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKXhjsubj)}(hhh]h)}(hflag to be clearedh]hflag to be cleared}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKXhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthKXhjsubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hj7th]hstruct request_queue *q}(hj9thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5tubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKZhj1tubj)}(hhh]h)}(h request queueh]h request queue}(hjPthhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKYhjMtubah}(h]h ]h"]h$]h&]uh1jhj1tubeh}(h]h ]h"]h$]h&]uh1jhjLthKZhjsubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_op_str (C function) c.blk_op_strhNtauh1hhjdhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKuubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthKuubj )}(hcharh]hchar}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhjthKuubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthKuubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthKuubjg)}(h blk_op_strh]jm)}(h blk_op_strh]h blk_op_str}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthKuubj)}(h(enum req_op op)h]j)}(henum req_op oph](j)}(hj:h]henum}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(hreq_oph]hreq_op}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE jtsb c.blk_op_strasbuh1hhjtubj)}(h h]h }(hj4uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hoph]hop}(hjBuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjthKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthKuubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthKuhjthhubj)}(hhh]h)}(h$Return string XXX in the REQ_OP_XXX.h]h$Return string XXX in the REQ_OP_XXX.}(hjluhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKuhjiuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhjdhNhNubj)}(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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKyhjuubj)}(hhh]j)}(h``enum req_op op`` REQ_OP_XXX. h](j)}(h``enum req_op op``h]j)}(hjuh]henum req_op op}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKvhjuubj)}(hhh]h)}(h REQ_OP_XXX.h]h REQ_OP_XXX.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKvhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKvhjuubah}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKxhjuubh)}(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”.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKxhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjdhhhNhNubh)}(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}(hj-vhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)vhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj)}(h h]h }(hjsubmit_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)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjwubj)}(hhh]j)}(h&``struct request_queue *q`` the queue h](j)}(h``struct request_queue *q``h]j)}(hj-wh]hstruct request_queue *q}(hj/whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+wubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhj'wubj)}(hhh]h)}(h the queueh]h the queue}(hjFwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBwhKhjCwubah}(h]h ]h"]h$]h&]uh1jhj'wubeh}(h]h ]h"]h$]h&]uh1jhjBwhKhj$wubah}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjhwh]h Description}(hjjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfwubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjwubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhj~wubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhj~wubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjdhhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjwhKubjg)}(hblk_set_pm_onlyh]jm)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(h request_queueh]h request_queue}(hj!xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#xmodnameN classnameNjI jL )}jO ]jR )}jE jwsbc.blk_set_pm_onlyasbuh1hhjwubj)}(h h]h }(hjAxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjOxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hjch]hq}(hj\xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhKhjwhhubj)}(hhh]h)}(hincrement pm_only counterh]hincrement pm_only counter}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjdhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjxubj)}(hhh]j)}(h1``struct request_queue *q`` request queue pointerh](j)}(h``struct request_queue *q``h]j)}(hjxh]hstruct request_queue *q}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjxubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_put_queue (C function)c.blk_put_queuehNtauh1hhjdhhhNhNubh)}(hhh](j)}(h,void blk_put_queue (struct request_queue *q)h]j)}(h+void blk_put_queue(struct request_queue *q)h](j )}(hvoidh]hvoid}(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hj/yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyhhhj.yhMubjg)}(h blk_put_queueh]jm)}(h blk_put_queueh]h blk_put_queue}(hjAyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=yubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhj.yhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj]yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYyubj)}(h h]h }(hjjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYyubh)}(hhh]jm)}(h request_queueh]h request_queue}(hj{yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}ymodnameN classnameNjI jL )}jO ]jR )}jE jCysbc.blk_put_queueasbuh1hhjYyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYyubjm)}(hjch]hq}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUyubah}(h]h ]h"]h$]h&]jjuh1jhjyhhhj.yhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhj.yhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhj.yhMhjyhhubj)}(hhh]h)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhj.yhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjdhNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjyubj)}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to decrement the refcount for h](j)}(h``struct request_queue *q``h]j)}(hj zh]hstruct request_queue *q}(hj"zhhhNhNubah}(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.chMhjzubj)}(hhh]h)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hj9zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5zhMhj6zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj5zhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hj[zh]h Description}(hj]zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYzubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjyubh)}(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.}(hjqzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_get_queue (C function)c.blk_get_queuehNtauh1hhjdhhhNhNubh)}(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}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzhhhU/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&]uh1jhjzhhhjzhMubjg)}(h blk_get_queueh]jm)}(h blk_get_queueh]h blk_get_queue}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhhjzhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]jR )}jE jzsbc.blk_get_queueasbuh1hhjzubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hj({hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hjch]hq}(hj5{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj)}(hhh]h)}(h$increment the request_queue refcounth]h$increment the request_queue refcount}(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&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjv{jjv{jjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to increment the refcount for **Description** Increment the refcount of the request_queue kobject. **Context** Any context.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~{ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjz{ubj)}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to increment the refcount for h](j)}(h``struct request_queue *q``h]j)}(hj{h]hstruct request_queue *q}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj{ubj)}(hhh]h)}(h9the request_queue structure to increment the refcount forh]h9the request_queue structure to increment the refcount for}(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&]uh1jhjz{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.chMhjz{ubh)}(h4Increment the refcount of the request_queue kobject.h]h4Increment the refcount of the request_queue kobject.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjz{ubh)}(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.chMhjz{ubh)}(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.chMhjz{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjdhhhNhNubh)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjF|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB|hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjU|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB|hhhjT|hMubjg)}(hsubmit_bio_noaccth]jm)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjg|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjB|hhhjT|hMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hbioh]hbio}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE ji|sbc.submit_bio_noacctasbuh1hhj|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)}(hbioh]hbio}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{|ubah}(h]h ]h"]h$]h&]jjuh1jhjB|hhhjT|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>|hhhjT|hMubah}(h]j9|ah ](jjeh"]h$]h&]jj)jhuh1hhjT|hMhj;|hhubj)}(hhh]h)}(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;|hhhjT|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjdhNhNubj)}(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)}(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)}(hQ``struct bio *bio`` The bio describing the location in memory and on the device. h](j)}(h``struct bio *bio``h]j)}(hjG}h]hstruct bio *bio}(hjI}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE}ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjA}ubj)}(hhh]h)}(h}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:311: ./block/blk-core.chMhj"}ubh)}(hThis 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]hThis 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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj"}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsubmit_bio (C function) c.submit_biohNtauh1hhjdhhhNhNubh)}(hhh](j)}(h!void submit_bio (struct bio *bio)h]j)}(h void submit_bio(struct bio *bio)h](j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM~ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhj}hM~ubjg)}(h submit_bioh]jm)}(h submit_bioh]h submit_bio}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhj}hM~ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hbioh]hbio}(hj"~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$~modnameN classnameNjI jL )}jO ]jR )}jE j}sb c.submit_bioasbuh1hhj~ubj)}(h h]h }(hjB~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjP~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hbioh]hbio}(hj]~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubah}(h]h ]h"]h$]h&]jjuh1jhj}hhhj}hM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hM~ubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hM~hj}hhubj)}(hhh]h)}(h.submit a bio to the block device layer for I/Oh]h.submit a bio to the block device layer for I/O}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM~hj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjdhNhNubj)}(hXD**Parameters** ``struct bio *bio`` The :c:type:`struct bio ` which describes the I/O **Description** submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be send to the device described by the bi_bdev field. The success/failure status of the request, along with notification of completion, is delivered asynchronously through the ->bi_end_io() callback in **bio**. The bio must NOT be touched by the caller until ->bi_end_io() has been called.h](h)}(h**Parameters**h]j)}(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)}(hj~h]hstruct bio *bio}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj~ubj)}(hhh]h)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hj~hhhNhNubh)}(h:c:type:`struct bio `h]j)}(hj~h]h struct bio}(hj~hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jbiouh1hhj~hMhj~ubh which describes the I/O}(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&]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)}(hsubmit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be send to the device described by the bi_bdev field.h](h[submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up }(hj<hhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjFh]h struct bio}(hjHhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jbiouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj<ubhr that describes the I/O that needs to be done. The bio will be send to the device described by the bi_bdev field.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhj~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 }(hjnhhhNhNubj)}(h**bio**h]hbio}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhQ. The bio must NOT be touched by the caller until ->bi_end_io() has been called.}(hjnhhhNhNubeh}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_poll (C function) c.bio_pollhNtauh1hhjdhhhNhNubh)}(hhh](j)}(hMint bio_poll (struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h]j)}(hLint bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hbio_pollh]jm)}(hbio_pollh]hbio_poll}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsb c.bio_pollasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct io_comp_batch *iobh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(h io_comp_batchh]h io_comp_batch}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]j& c.bio_pollasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hiobh]hiob}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj΀hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjʀubj)}(h h]h }(hj܀hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʀubj )}(hinth]hint}(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)}(hpoll for BIO completionsh]hpoll for BIO completions}(hj0hhhNhNubah}(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&]jjjjHjjHjjjuh1hhhhjdhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubj)}(hhh](j)}(h$``struct bio *bio`` bio to poll for h](j)}(h``struct bio *bio``h]j)}(hjqh]hstruct bio *bio}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjkubj)}(hhh]h)}(hbio to poll forh]hbio to poll for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(h,``struct io_comp_batch *iob`` batches of IO h](j)}(h``struct io_comp_batch *iob``h]j)}(hjh]hstruct io_comp_batch *iob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]h)}(h batches of IOh]h batches of IO}(hjÁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(hB``unsigned int flags`` BLK_POLL_* flags that control the behavior h](j)}(h``unsigned int flags``h]j)}(hjh]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj݁ubj)}(hhh]h)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj݁ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubh)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubh)}(h**Note**h]j)}(hjEh]hNote}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubh)}(h|the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h5the caller must either be the context that submitted }(hj[hhhNhNubj)}(h**bio**h]hbio}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh8, or be in a RCU critical section to prevent freeing of }(hj[hhhNhNubj)}(h**bio**h]hbio}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjdhhhNhNubh)}(hhh](j)}(h1unsigned long bio_start_io_acct (struct bio *bio)h]j)}(h0unsigned long bio_start_io_acct(struct bio *bio)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj )}(hlongh]hlong}(hj˂hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjقhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hbio_start_io_accth]jm)}(hbio_start_io_accth]hbio_start_io_acct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jsbc.bio_start_io_acctasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(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)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct bio *bio`` bio to start account for **Description** Returns the start time that should be passed back to bio_end_io_acct().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(h-``struct bio *bio`` bio to start account for h](j)}(h``struct bio *bio``h]j)}(hj˃h]hstruct bio *bio}(hj̓hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɃubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjŃubj)}(hhh]h)}(hbio to start account forh]hbio to start account for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŃubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƒubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(hGReturns the start time that should be passed back to bio_end_io_acct().h]hGReturns the start time that should be passed back to bio_end_io_acct().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjdhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM7ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjYhM7ubjg)}(h blk_lld_busyh]jm)}(h blk_lld_busyh]h blk_lld_busy}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjYhM7ubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jnsbc.blk_lld_busyasbuh1hhjubj)}(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&]jjuh1jhjGhhhjYhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhM7ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhM7hj@hhubj)}(hhh]h)}(h:Check if underlying low-level drivers of a device are busyh]h:Check if underlying low-level drivers of a device are busy}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjdhNhNubj)}(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)}(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.chM;hj&ubj)}(hhh]j)}(hB``struct request_queue *q`` the queue of the device being checked h](j)}(h``struct request_queue *q``h]j)}(hjKh]hstruct request_queue *q}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM8hjEubj)}(hhh]h)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM8hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM8hjBubah}(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.chM:hj&ubj)}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM>hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hj&ubh)}(h **Return**h]j)}(hjƅh]hReturn}(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.chMDhj&ubh)}(h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h]h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)}(hj܅hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMEhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_start_plug (C function)c.blk_start_plughNtauh1hhjdhhhNhNubh)}(hhh](j)}(h+void blk_start_plug (struct blk_plug *plug)h]j)}(h*void blk_start_plug(struct blk_plug *plug)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMzubjg)}(hblk_start_plugh]jm)}(hblk_start_plugh]hblk_start_plug}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMzubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj6}h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE j.sbc.blk_start_plugasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMzhjhhubj)}(hhh]h)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjˆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMzhjȆhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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.chM~hjubj)}(hhh]j)}(h```struct blk_plug *plug`` The :c:type:`struct blk_plug ` that needs to be initialized h](j)}(h``struct blk_plug *plug``h]j)}(hj h]hstruct blk_plug *plug}(hjhhhNhNubah}(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.chM{hjubj)}(hhh]h)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hj%hhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hj/h]hstruct blk_plug}(hj1hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jblk_pluguh1hhj!hM{hj%ubh that needs to be initialized}(hj%hhhNhNubeh}(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)}(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:311: ./block/blk-core.chM}hjubj)}(hX'blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below). Tracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h](h)}(hX blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below).h](hXablk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds }(hjhhhNhNubj)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+, or if the size of the I/O is larger than }(hjhhhNhNubj)}(h``BLK_PLUG_FLUSH_SIZE``h]hBLK_PLUG_FLUSH_SIZE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM}hjubh)}(hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h]hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don’t deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_finish_plug (C function)c.blk_finish_plughNtauh1hhjdhhhNhNubh)}(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 hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_finish_plugh]jm)}(hblk_finish_plugh]hblk_finish_plug}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_finish_plugasbuh1hhj%ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j߇ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjĈjjĈjjjuh1hhhhjdhNhNubj)}(hX**Parameters** ``struct blk_plug *plug`` The :c:type:`struct blk_plug ` passed to blk_start_plug() **Description** Indicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.h](h)}(h**Parameters**h]j)}(hjΈh]h Parameters}(hjЈhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̈ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjȈubj)}(hhh]j)}(h^``struct blk_plug *plug`` The :c:type:`struct blk_plug ` 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.chMhjubj)}(hhh]h)}(hCThe :c:type:`struct blk_plug ` passed to blk_start_plug()h](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jblk_pluguh1hhjhMhjubh passed to blk_start_plug()}(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)}(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.}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjdhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM,ubjg)}(hblk_queue_enterh]jm)}(hblk_queue_enterh]hblk_queue_enter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM,ubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(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_queue_enterasbuh1hhjɉ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ʼnubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]jm)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jc.blk_queue_enterasbuh1hhj:ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hflagsh]hflags}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjʼnubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM,hjhhubj)}(hhh]h)}(h"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct request_queue *q`` request queue pointer ``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM0hjubj)}(hhh](j)}(h2``struct request_queue *q`` request queue pointer h](j)}(h``struct request_queue *q``h]j)}(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:314: ./block/blk-core.chM-hjҊubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjҊubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjϊubj)}(hC``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](j)}(h``blk_mq_req_flags_t flags``h]j)}(hjh]hblk_mq_req_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM/hj ubj)}(hhh]h)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM.hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hM/hjϊubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjdhhhNhNubh)}(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}(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_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&]jjuh1jfhjghhhjyhMubj)}(hx(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(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_rq_map_user_iovasbuh1hhjubj)}(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 request *rqh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rq_map_data *map_datah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rq_map_datah]h rq_map_data}(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&]uh1jhjubj)}(hjh]h*}(hjӌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmap_datah]hmap_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct iov_iter *iterh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hiov_iterh]hiov_iter}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hiterh]hiter}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(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)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjݍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjڍhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hX0**Parameters** ``struct request_queue *q`` request queue where request should be inserted ``struct request *rq`` request to map data to ``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) ``const struct iov_iter *iter`` iovec iterator ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh](j)}(hK``struct request_queue *q`` request queue where request should be inserted h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(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.chMhjubj)}(hhh]h)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h.``struct request *rq`` request to map data to h](j)}(h``struct request *rq``h]j)}(hjWh]hstruct request *rq}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjQubj)}(hhh]h)}(hrequest to map data toh]hrequest to map data to}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``const struct iov_iter *iter`` iovec iterator h](j)}(h``const struct iov_iter *iter``h]j)}(hjɎh]hconst struct iov_iter *iter}(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)}(hiovec iteratorh]hiovec iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjގhMhjߎubah}(h]h ]h"]h$]h&]uh1jhjÎubeh}(h]h ]h"]h$]h&]uh1jhjގhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.h]hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjSubh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjSubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjdhhhNhNubh)}(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.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMgubjg)}(hblk_rq_unmap_userh]jm)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMgubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hj؏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjԏubh)}(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_userasbuh1hhjԏubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjԏubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubjm)}(hbioh]hbio}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjԏubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjЏubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMghjhhubj)}(hhh]h)}(hunmap a request with user datah]hunmap a request with user data}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMghjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjdhNhNubj)}(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)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMkhjwubj)}(hhh]j)}(h&``struct bio *bio`` start of bio list h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhhjubj)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjאh]h Description}(hjِhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՐubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMjhjwubj)}(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.chMjhjubah}(h]h ]h"]h$]h&]uh1jhjhMjhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjdhhhNhNubh)}(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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj4hMubjg)}(hblk_rq_map_kernh]jm)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj4hMubj)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.blk_rq_map_kernasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(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)}(h void *kbufh](j )}(hvoidh]hvoid}(hjՑhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjёubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjёubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjёubjm)}(hkbufh]hkbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjёubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jc.blk_rq_map_kernasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhjhhubj)}(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&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjْjjْjjjuh1hhhhjdhNhNubj)}(hXW**Parameters** ``struct request *rq`` request to fill ``void *kbuf`` the kernel buffer ``unsigned int len`` length of user data ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjݒubj)}(hhh](j)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``void *kbuf`` the kernel buffer h](j)}(h``void *kbuf``h]j)}(hj;h]h void *kbuf}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj5ubj)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubj)}(h)``unsigned int len`` length of user data h](j)}(h``unsigned int len``h]j)}(hjth]hunsigned int len}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjnubj)}(hhh]h)}(hlength of user datah]hlength of user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjƓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj“hMhjÓubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj“hMhjubeh}(h]h ]h"]h$]h&]uh1jhjݒubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjݒubj)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]h)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjݒubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_register_queue (C function)c.blk_register_queuehNtauh1hhjdhhhNhNubh)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMfubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhjEhMfubjg)}(hblk_register_queueh]jm)}(hblk_register_queueh]hblk_register_queue}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhjEhMfubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jZsbc.blk_register_queueasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hdiskh]hdisk}(hj͔hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhMfubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhMfubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhMfhj,hhubj)}(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.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMjhjubj)}(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)}(hj8h]hstruct gendisk *disk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMlhj2ubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMghjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMlhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjdhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_unregister_queueh]jm)}(hblk_unregister_queueh]hblk_unregister_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjϕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˕ubj)}(h h]h }(hjܕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˕ubh)}(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_unregister_queueasbuh1hhj˕ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˕ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˕ubjm)}(hdiskh]hdisk}(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)}(h#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjnubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Note**h]j)}(hjΖh]hNote}(hjЖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̖ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjnubh)}(hpthe caller is responsible for guaranteeing that this function is called after blk_register_queue() has finished.h]hpthe caller is responsible for guaranteeing that this function is called after blk_register_queue() has finished.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjdhhhNhNubh)}(hhh](j)}(h7void blk_set_stacking_limits (struct queue_limits *lim)h]j)}(h6void blk_set_stacking_limits(struct queue_limits *lim)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj!hKubjg)}(hblk_set_stacking_limitsh]jm)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE j6sbc.blk_set_stacking_limitsasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj!hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj!hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hKhjhhubj)}(hhh]h)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hjӗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKhjЗhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK hjubj)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(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 ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]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().}(hjehhhNhNubah}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjdhhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hqueue_limits_commit_updateh]jm)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjјhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͘ubj)}(h h]h }(hjޘhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj͘ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_commit_updateasbuh1hhj͘ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj͘ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͘ubjm)}(hjch]hq}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj͘ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɘubj)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]j c.queue_limits_commit_updateasbuh1hhj>ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hlimh]hlim}(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'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjÙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjۙjjۙjjjuh1hhhhjdhNhNubj)}(hX**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjߙubj)}(hhh](j)}(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.chMhjubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hj=h]hstruct queue_limits *lim}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj7ubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ]h"]h$]h&]uh1jhjߙubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjߙubh)}(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}(hjhhhNhNubah}(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.chMhjߙubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjߙubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjdhhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h!queue_limits_commit_update_frozenh]jm)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jsb#c.queue_limits_commit_update_frozenasbuh1hhj)ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jg#c.queue_limits_commit_update_frozenasbuh1hhjubj)}(h h]h }(hjڛhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(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'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjdhNhNubj)}(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)}(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:323: ./block/blk-settings.chMhj;ubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hj`h]hstruct request_queue *q}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjZubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(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.chMhjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hjԜh]h Description}(hj֜hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҜubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj;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}(hjhhhNhNubah}(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.chMhj;ubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM!hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hqueue_limits_set (C function)c.queue_limits_sethNtauh1hhjdhhhNhNubh)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM3ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjZhM3ubjg)}(hqueue_limits_seth]jm)}(hqueue_limits_seth]hqueue_limits_set}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhjZhM3ubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE josbc.queue_limits_setasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jÝc.queue_limits_setasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjZhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjZhM3ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjZhM3hjAhhubj)}(hhh]h)}(happly queue limits to queueh]happly queue limits to queue}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM3hjxhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjZhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hX]**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM7hjubj)}(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.chM4hjubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hj՞hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjўhM4hjҞubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjўhM4hjubj)}(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.chM5hjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM5hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM5hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM7hjubh)}(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 }(hjFhhhNhNubj)}(h**lim**h]hlim}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh" that were freshly initialized to }(hjFhhhNhNubj)}(h**q**h]hq}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM6hjubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjdhhhNhNubh)}(hhh](j)}(hUint blk_stack_limits (struct queue_limits *t, struct queue_limits *b, sector_t start)h]j)}(hTint blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_stack_limitsh]jm)}(hblk_stack_limitsh]hblk_stack_limits}(hjɟhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjşubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j)}(hstruct queue_limits *th](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j˟sbc.blk_stack_limitsasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj9h]ht}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjݟubj)}(hstruct queue_limits *bh](j)}(hj6}h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jc.blk_stack_limitsasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hjGh]hb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjݟubj)}(hsector_t starth](h)}(hhh]jm)}(hsector_th]hsector_t}(hjȠhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŠubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjʠmodnameN classnameNjI jL )}jO ]jc.blk_stack_limitsasbuh1hhjubj)}(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ݟ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}(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&]jjjj6jj6jjjuh1hhhhjdhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` the stacking driver limits (top device) ``struct queue_limits *b`` the underlying queue limits (bottom, component device) ``sector_t start`` first data sector within component device **Description** This function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(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)}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j)}(h``struct queue_limits *t``h]j)}(hj_h]hstruct queue_limits *t}(hjahhhNhNubah}(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.chMhjYubj)}(hhh]h)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h=``sector_t start`` first data sector within component device h](j)}(h``sector_t start``h]j)}(hjѡh]hsector_t start}(hjӡhhhNhNubah}(h]h ]h"]h$]h&]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)first data sector within component deviceh]h)first data sector within component device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjˡubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj:ubj)}(hXThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj"ubh)}(hXaReturns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h]hXcReturns 0 if the top and bottom queue_limits are compatible. The top device’s block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj"ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjdhhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhMubjg)}(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&]jjuh1jfhjfhhhjxhMubj)}(hU(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j)}(hstruct queue_limits *th](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjŢhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¢ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjǢmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_stack_bdevasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj9h]ht}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jc.queue_limits_stack_bdevasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *pfxh](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)}(hpfxh]hpfx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̣ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhj_hhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjdhNhNubj)}(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)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.chMhjZubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(hC``struct block_device *bdev`` the underlying block device (bottom) h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hjѤhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͤhMhjΤubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͤhMhjvubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h6``const char *pfx`` prefix to use for warnings logged h](j)}(h``const char *pfx``h]j)}(hj*h]hconst char *pfx}(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!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjZubj)}(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.chMhj{ubah}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjdhhhNhNubh)}(hhh](j)}(hRbool queue_limits_stack_integrity (struct queue_limits *t, struct queue_limits *b)h]j)}(hQbool queue_limits_stack_integrity(struct queue_limits *t, struct queue_limits *b)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/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&]uh1jhjhhhjhMubjg)}(hqueue_limits_stack_integrityh]jm)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hjԥhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjХubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h0(struct queue_limits *t, struct queue_limits *b)h](j)}(hstruct queue_limits *th](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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 ]jR )}jE j֥sbc.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)}(hj9h]ht}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *bh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h 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_stack_integrityasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hjGh]hb}(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)}(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.chMhjަhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` target queue limits ``struct queue_limits *b`` base queue limits **Description** Check if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either: a) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** If **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(h/``struct queue_limits *t`` target queue limits h](j)}(h``struct queue_limits *t``h]j)}(hj"h]hstruct queue_limits *t}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h-``struct queue_limits *b`` base queue limits h](j)}(h``struct queue_limits *b``h]j)}(hj[h]hstruct queue_limits *b}(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)}(hbase queue limitsh]hbase queue limits}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubh)}(hrCheck if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either:h](h&Check if the integrity profile in the }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be stacked into the target }(hjhhhNhNubj)}(h**t**h]ht}(hjƧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh". Stacking is possible if either:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(ha) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** h]jG)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]h)}(hjh]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.chMhjubah}(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 }(hjhhhNhNubj)}(h**b**h]hb}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is identical to the one in }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHj|jkHhjlHj uh1jGhjߧubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(hyIf **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](hIf }(hjChhhNhNubj)}(h**b**h]hb}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh can be stacked into }(hjChhhNhNubj)}(h**t**h]ht}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh , return }(hjChhhNhNubj)}(h``true``h]htrue}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh. Else return }(hjChhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh( and clear the integrity information in }(hjChhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjdhhhNhNubh)}(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}(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_set_queue_depthh]jm)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjȨhhhjڨhMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]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_set_queue_depthasbuh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int depthh](j )}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubjm)}(hdepthh]hdepth}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjȨhhhjڨhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjĨhhhjڨhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjڨhMhjhhubj)}(hhh]h)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hjܩhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj٩hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjڨhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(h=``struct request_queue *q`` the request queue for the device h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(h"``unsigned int depth`` queue depthh](j)}(h``unsigned int depth``h]j)}(hjVh]hunsigned int depth}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjPubj)}(hhh]h)}(h queue depthh]h queue depth}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjdhhhNhNubh)}(hhh](j)}(h2int blkdev_issue_flush (struct block_device *bdev)h]j)}(h1int blkdev_issue_flush(struct block_device *bdev)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/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&]uh1jhjhhhjhMubjg)}(hblkdev_issue_flushh]jm)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hjѪhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͪubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jӪsbc.blkdev_issue_flushasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjFhhhNhNubah}(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 queue a flushh]h queue a flush}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubj)}(h/Issue a flush for the block device in question.h]h)}(hjh]h/Issue a flush for the block device in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjdhhhNhNubh)}(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 hj6hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhjHhKLubjg)}(hblkdev_issue_discardh]jm)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhjHhKLubj)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j]sbc.blkdev_issue_discardasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjìhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hbdevh]hbdev}(hjЬhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(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_discardasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jc.blkdev_issue_discardasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hnr_sectsh]hnr_sects}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jc.blkdev_issue_discardasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhKLubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhKLhj/hhubj)}(hhh]h)}(hqueue a discardh]hqueue a discard}(hjҭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLhjϭhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(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.chKMhj ubj)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKMhj ubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjLh]hsector_t sector}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKNhjFubj)}(hhh]h)}(h start sectorh]h start sector}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKNhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKNhj 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)}(hj׮hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӮhKPhjԮubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӮhKPhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKRhjubj)}(h4Issue a discard request for the sectors in question.h]h)}(hjh]h4Issue a discard request for the sectors in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKRhjubah}(h]h ]h"]h$]h&]uh1jhj hKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjdhhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjUhKubjg)}(h__blkdev_issue_zeroouth]jm)}(h__blkdev_issue_zeroouth]h__blkdev_issue_zeroout}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjUhKubj)}(hr(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jjsbc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj¯hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjЯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjݯhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhj:ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hnr_sectsh]hnr_sects}(hjmhhhNhNubah}(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}(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&]noemphjjuh1jhj|ubj)}(hstruct bio **bioph](j)}(hj6}h]hstruct}(hjΰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʰubj)}(h h]h }(hj۰hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʰubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhjʰubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʰubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʰubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʰubjm)}(hbioph]hbiop}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʰubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubjm)}(hflagsh]hflags}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhKhj<hhubj)}(hhh]h)}(h(generate number of zero filed write biosh]h(generate number of zero filed write bios}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hjұh]hstruct block_device *bdev}(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.chMhj̱ubj)}(hhh]h)}(hblockdev to issueh]hblockdev to issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj̱ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjɱubj)}(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.chMhjubj)}(hhh]h)}(h start sectorh]h start sector}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjɱubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjDh]hsector_t nr_sects}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhj>ubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjɱubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hj}h]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjwubj)}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjɱubj)}(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}(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.``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}(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&]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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhj@ubh)}(hIf a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP.h](h^If a device is using logical block provisioning, the underlying space will not be released if }(hjShhhNhNubj)}(h ``flags``h]hflags}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh contains BLKDEV_ZERO_NOUNMAP.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM hj@ubh)}(hIf ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](hIf }(hjthhhNhNubj)}(h ``flags``h]hflags}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM hj@ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjdhhhNhNubh)}(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 }(hjʳhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjɳhM(ubjg)}(hblkdev_issue_zeroouth]jm)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hjܳhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjسubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjɳhM(ubj)}(h_(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 j޳sbc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]j2c.blkdev_issue_zerooutasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(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 ]j2c.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjӴhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j2c.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubjm)}(hflagsh]hflags}(hj^hhhNhNubah}(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)}(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&]uh1jhjhhhjɳhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hjɵh]hstruct block_device *bdev}(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)}(hblockdev to writeh]hblockdev to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj޵hM)hjߵubah}(h]h ]h"]h$]h&]uh1jhjõubeh}(h]h ]h"]h$]h&]uh1jhj޵hM)hjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM*hjubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hj;h]hsector_t nr_sects}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM+hj5ubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM+hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM+hjubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hjth]hgfp_t gfp_mask}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM,hjnubj)}(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&]uh1jhjnubeh}(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}(hjƶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj¶hM-hjöubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj¶hM-hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM/hjubj)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h]h)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for }(hjhhhNhNubj)}(h ``flags``h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM/hjubah}(h]h ]h"]h$]h&]uh1jhj"hM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_rq_map_integrity_sg (C function)c.blk_rq_map_integrity_sghNtauh1hhjdhhhNhNubh)}(hhh](j)}(hLint blk_rq_map_integrity_sg (struct request *rq, struct scatterlist *sglist)h]j)}(hKint blk_rq_map_integrity_sg(struct request *rq, struct scatterlist *sglist)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chK~ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjWhK~ubjg)}(hblk_rq_map_integrity_sgh]jm)}(hblk_rq_map_integrity_sgh]hblk_rq_map_integrity_sg}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhK~ubj)}(h0(struct request *rq, struct scatterlist *sglist)h](j)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.blk_rq_map_integrity_sgasbuh1hhjubj)}(h h]h }(hjķhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjҷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hj߷hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct scatterlist *sglisth](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h scatterlisth]h scatterlist}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_rq_map_integrity_sgasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsglisth]hsglist}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhK~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhK~ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhK~hj>hhubj)}(hhh]h)}(h)Map integrity metadata into a scatterlisth]h)Map integrity metadata into a scatterlist}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chK~hjvhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhK~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hX=**Parameters** ``struct request *rq`` request to map ``struct scatterlist *sglist`` target scatterlist **Description** Map the integrity vectors in request into a scatterlist. The scatterlist must be big enough to hold all elements. I.e. sized using blk_rq_count_integrity_sg() or rq->nr_integrity_segments.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:332: ./block/blk-integrity.chKhjubj)}(hhh](j)}(h&``struct request *rq`` request to map h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chKhjubj)}(hhh]h)}(hrequest to maph]hrequest to map}(hjӸhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϸhKhjиubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϸhKhjubj)}(h2``struct scatterlist *sglist`` target scatterlist h](j)}(h``struct scatterlist *sglist``h]j)}(hjh]hstruct scatterlist *sglist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chKhjubj)}(hhh]h)}(htarget scatterlisth]htarget scatterlist}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chKhjubh)}(hMap the integrity vectors in request into a scatterlist. The scatterlist must be big enough to hold all elements. I.e. sized using blk_rq_count_integrity_sg() or rq->nr_integrity_segments.h]hMap the integrity vectors in request into a scatterlist. The scatterlist must be big enough to hold all elements. I.e. sized using blk_rq_count_integrity_sg() or rq->nr_integrity_segments.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:332: ./block/blk-integrity.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjdhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhh\/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&]uh1jhjohhhjhMubjg)}(hblk_trace_ioctlh]jm)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhMubj)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjιhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj˹ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjйmodnameN 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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h unsigned cmdh](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh__user}(hjShhhNhNubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhhubj)}(hhh]h)}(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&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjԺjjԺjjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block device ``unsigned cmd`` the ioctl cmd ``char __user *arg`` the argument data, if anyh](h)}(h**Parameters**h]j)}(hj޺h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܺubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjغubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``unsigned cmd`` the ioctl cmd h](j)}(h``unsigned cmd``h]j)}(hj6h]h unsigned cmd}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj0ubj)}(hhh]h)}(h the ioctl cmdh]h the ioctl cmd}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubj)}(h.``char __user *arg`` the argument data, if anyh](j)}(h``char __user *arg``h]j)}(hjoh]hchar __user *arg}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjiubj)}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjغubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjdhhhNhNubh)}(hhh](j)}(h1void blk_trace_shutdown (struct request_queue *q)h]j)}(h0void blk_trace_shutdown(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjɻhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjŻhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hjػhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŻhhhj׻hMubjg)}(hblk_trace_shutdownh]jm)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjŻhhhj׻hMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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_trace_shutdownasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjŻhhhj׻hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj׻hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj׻hMhjhhubj)}(hhh]h)}(h!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&]uh1jhjhhhj׻hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hjɼh]hstruct request_queue *q}(hj˼hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǼubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjüubj)}(hhh]h)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(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&]uh1jhjüubeh}(h]h ]h"]h$]h&]uh1jhj޼hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjdhhhNhNubh)}(hhh](j)}(hivoid blk_add_trace_rq (struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h]j)}(hhvoid blk_add_trace_rq(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(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 }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj1hMubjg)}(hblk_add_trace_rqh]jm)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj1hMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(hrequesth]hrequest}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.blk_add_trace_rqasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjXubj)}(hblk_status_t errorh](h)}(hhh]jm)}(h blk_status_th]h blk_status_t}(hjսhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҽubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj׽modnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhjνubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjνubjm)}(herrorh]herror}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjνubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnr_bytesh]hnr_bytes}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hu32 whath](h)}(hhh]jm)}(hu32h]hu32}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(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 }(hjԾhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcgidh]hcgid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)Add a trace for a request oriented actionh]h)Add a trace for a request oriented action}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjdhNhNubj)}(hX7**Parameters** ``struct request *rq`` the source request ``blk_status_t error`` return status to log ``unsigned int nr_bytes`` number of completed bytes ``u32 what`` the action ``u64 cgid`` the cgroup info **Description** Records an action against a request. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(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)}(hjMh]hstruct request *rq}(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.chMhjGubj)}(hhh]h)}(hthe source requesth]hthe source request}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(h,``blk_status_t error`` return status to log h](j)}(h``blk_status_t error``h]j)}(hjh]hblk_status_t error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hreturn status to logh]hreturn status to log}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(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}(hjؿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԿhMhjտubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԿhMhjDubj)}(h``u32 what`` the action h](j)}(h ``u32 what``h]j)}(hjh]hu32 what}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h the actionh]h the action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjDubj)}(h``u64 cgid`` the cgroup info h](j)}(h ``u64 cgid``h]j)}(hj1h]hu64 cgid}(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)}(hthe cgroup infoh]hthe cgroup info}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj(ubj)}(hDRecords an action against a request. Will log the bio offset + size.h]h)}(hjh]hDRecords an action against a request. Will log the bio offset + size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjdhhhNhNubh)}(hhh](j)}(hVvoid blk_add_trace_bio (struct request_queue *q, struct bio *bio, u32 what, int error)h]j)}(hUvoid blk_add_trace_bio(struct request_queue *q, struct bio *bio, u32 what, int error)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMRubjg)}(hblk_add_trace_bioh]jm)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMRubj)}(h?(struct request_queue *q, struct bio *bio, u32 what, int error)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bioasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j1c.blk_add_trace_bioasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 whath](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j1c.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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(herrorh]herror}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMRhjhhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMRhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct request_queue *q`` queue the io is for ``struct bio *bio`` the source bio ``u32 what`` the action ``int error`` error, if any **Description** Records an action against a bio. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMVhjubj)}(hhh](j)}(h0``struct request_queue *q`` queue the io is for h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMShjubj)}(hhh]h)}(hqueue the io is forh]hqueue the io is for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMThjubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h``u32 what`` the action h](j)}(h ``u32 what``h]j)}(hjh]hu32 what}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMUhjubj)}(hhh]h)}(h the actionh]h the action}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMUhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMUhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjRh]h int error}(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.chMVhjLubj)}(hhh]h)}(h error, if anyh]h error, if any}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMVhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMVhjubeh}(h]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.chMXhjubj)}(h@Records an action against a bio. Will log the bio offset + size.h]h)}(hjh]h@Records an action against a bio. Will log the bio offset + size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMXhjubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjdhhhNhNubh)}(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*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hignoreh]hignore}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(hbioh]hbio}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bio_remapasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h dev_t devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_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&]noemphjjuh1jhjubj)}(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_remapasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfromh]hfrom}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%Add a trace for a bio-remap operationh]h%Add a trace for a bio-remap operation}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hj h]h dev_t dev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h source deviceh]h source device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjYh]h sector_t from}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjSubj)}(hhh]h)}(h source sectorh]h source sector}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(h]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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjdhhhNhNubh)}(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 hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hignoreh]hignore}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(hrequesth]hrequest}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_rq_remapasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h dev_t devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rq_remapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h sector_t fromh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rq_remapasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfromh]hfrom}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h target deviceh]h target device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjWh]h sector_t from}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjQubj)}(hhh]h)}(h source sectorh]h source sector}(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: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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdisk_release (C function)c.disk_releasehNtauh1hhjdhhhNhNubh)}(hhh](j)}(h&void disk_release (struct device *dev)h]j)}(h%void disk_release(struct device *dev)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h disk_releaseh]jm)}(h disk_releaseh]h disk_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.disk_releaseasbuh1hhjubj)}(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&]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&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(hXBDrivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.h]hXBDrivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h **Context**h]j)}(hjSh]hContext}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(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}(hjihhhNhNubah}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjdhhhNhNubh)}(hhh](j)}(hthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hj@hhhNhNubj)}(h **major**h]hmajor}(hjHhhhNhNubah}(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.chKhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjubj)}(hR``const char *name`` the name of the new block device as a zero terminated string h](j)}(h``const char *name``h]j)}(hjsh]hconst char *name}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjmubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhKubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhhubj)}(hhh]h)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(hhj ubj)}(hhh]j)}(h4``struct block_device *bdev`` blockdevice to unlock h](j)}(h``struct block_device *bdev``h]j)}(hj2h]hstruct block_device *bdev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM;hj,ubj)}(hhh]h)}(hblockdevice to unlockh]hblockdevice to unlock}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM;hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM;hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM=hj ubh)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM<hj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM>hj ubh)}(hhjubj)}(hhh](j)}(h7``struct block_device *bdev`` block device of interest h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM;hjubj)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(h1``void *holder`` holder trying to claim **bdev** h](j)}(h``void *holder``h]j)}(hjh]h void *holder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM<hjubj)}(hhh]h)}(hholder trying to claim **bdev**h](hholder trying to claim }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubj)}(h2``const struct blk_holder_ops *hops`` holder ops. h](j)}(h%``const struct blk_holder_ops *hops``h]j)}(hj'h]h!const struct blk_holder_ops *hops}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM=hj!ubj)}(hhh]h)}(h holder ops.h]h holder ops.}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM?hjubh)}(hClaim **bdev**. This function fails if **bdev** is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s].h](hClaim }(hjxhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh. This function fails if }(hjxhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s].}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM>hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMBhjubh)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" can be claimed, -EBUSY otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjdhhhNhNubh)}(hhh](j)}(h@void bd_abort_claiming (struct block_device *bdev, void *holder)h]j)}(h?void bd_abort_claiming(struct block_device *bdev, void *holder)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hbd_abort_claimingh]jm)}(hbd_abort_claimingh]hbd_abort_claiming}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h)(struct block_device *bdev, void *holder)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jR )}jE j'sbc.bd_abort_claimingasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(h void *holderh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hholderh]hholder}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h abort claiming of a block deviceh]h abort claiming of a block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjdhNhNubj)}(hXS**Parameters** ``struct block_device *bdev`` block device of interest ``void *holder`` holder that has claimed **bdev** **Description** Abort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj"ubj)}(hhh](j)}(h7``struct block_device *bdev`` block device of interest h](j)}(h``struct block_device *bdev``h]j)}(hjGh]hstruct block_device *bdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjAubj)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(h2``void *holder`` holder that has claimed **bdev** h](j)}(h``void *holder``h]j)}(hjh]h void *holder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjzubj)}(hhh]h)}(h holder that has claimed **bdev**h](hholder that has claimed }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj"ubh)}(hAbort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.h]hAbort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_fput (C function) c.bdev_fputhNtauh1hhjdhhhNhNubh)}(hhh](j)}(h'void bdev_fput (struct file *bdev_file)h]j)}(h&void bdev_fput(struct file *bdev_file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(h bdev_fputh]jm)}(h bdev_fputh]h bdev_fput}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h(struct file *bdev_file)h]j)}(hstruct file *bdev_fileh](j)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hfileh]hfile}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sb c.bdev_fputasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(h bdev_fileh]h bdev_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(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&]jjjjjjjjjuh1hhhhjdhNhNubj)}(h**Parameters** ``struct file *bdev_file`` open block device **Description** Yield claim on the block device and put the file. Ensure that the block device can be reclaimed before the file is closed which is a deferred operation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj)}(hhh]j)}(h-``struct file *bdev_file`` open block device h](j)}(h``struct file *bdev_file``h]j)}(hjh]hstruct file *bdev_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubj)}(hhh]h)}(hopen block deviceh]hopen block device}(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)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlookup_bdev (C function) c.lookup_bdevhNtauh1hhjdhhhNhNubh)}(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}(hjhhhNhNubah}(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 }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hdevh]hdev}(hjghhhNhNubah}(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&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&]jjjjjjjjjuh1hhhhjdhNhNubj)}(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)}(hj h]h dev_t *dev}(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.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.}(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)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.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 }(hj\hhhNhNubj)}(h **pathname**h]hpathname}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh7 in the current namespace if possible and return it in }(hj\hhhNhNubj)}(h**dev**h]hdev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(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&]uh1jhjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjdhhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hbdev_mark_deadh]jm)}(hbdev_mark_deadh]hbdev_mark_dead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h*(struct block_device *bdev, bool surprise)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.bdev_mark_deadasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(h 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&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(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&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjdhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubj)}(hhh](j)}(h9``struct block_device *bdev`` block device to operate on h](j)}(h``struct block_device *bdev``h]j)}(hj2h]hstruct block_device *bdev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj,ubj)}(hhh]h)}(hblock device to operate onh]hblock device to operate on}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hjkh]h bool surprise}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjeubj)}(hhh]h)}(hindicate a surprise removalh]hindicate a surprise removal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubh)}(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.chMhj ubh)}(hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.h]hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjdhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM\ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hIint register_chrdev_region (dev_t from, unsigned count, const char *name)h]j)}(hHint register_chrdev_region(dev_t from, unsigned count, const char *name)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhjEhKubjg)}(hregister_chrdev_regionh]jm)}(hregister_chrdev_regionh]hregister_chrdev_region}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhjEhKubj)}(h.(dev_t from, unsigned count, const char *name)h](j)}(h dev_t fromh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE jZsbc.register_chrdev_regionasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(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&]noemphjjuh1jhjlubj)}(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}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhKubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhKhj,hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj^hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhj hNhNubj)}(hXJ**Parameters** ``dev_t from`` the first in the desired range of device numbers; must include the major number. ``unsigned count`` the number of consecutive device numbers required ``const char *name`` the name of the device or driver. **Description** Return value is zero on success, a negative error code on failure.h](h)}(h**Parameters**h]j)}(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.chKhj}ubj)}(hhh](j)}(h```dev_t from`` the first in the desired range of device numbers; must include the major number. h](j)}(h``dev_t from``h]j)}(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.chKhjubj)}(hhh]h)}(h!the name of the device or driver.h]h!the name of the device or driver.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjubeh}(h]h ]h"]h$]h&]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:350: ./fs/char_dev.chKhj}ubh)}(hBReturn value is zero on success, a negative error code on failure.h]hBReturn value is zero on success, a negative error code on failure.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hZint alloc_chrdev_region (dev_t *dev, unsigned baseminor, unsigned count, const char *name)h]j)}(hYint alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j )}(hinth]hint}(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}(hjhhhNhNubah}(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 }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubjm)}(h baseminorh]h baseminor}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hcounth]hcount}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``dev_t *dev`` output parameter for first assigned number ``unsigned baseminor`` first of the requested range of minor numbers ``unsigned count`` the number of minor numbers required ``const char *name`` the name of the associated device or driver **Description** Allocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) in **dev**. Returns zero or a negative error code.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh](j)}(h:``dev_t *dev`` output parameter for first assigned number h](j)}(h``dev_t *dev``h]j)}(hjBh]h dev_t *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj<ubj)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhj9ubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hj{h]hunsigned baseminor}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhj9ubj)}(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&]uh1jhjhKhj9ubj)}(hA``const char *name`` the name of the associated device or driver h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj9ubeh}(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 }(hj>hhhNhNubj)}(h**dev**h]hdev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh). Returns zero or a negative error code.}(hj>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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__register_chrdev (C function)c.__register_chrdevhNtauh1hhj hhhNhNubh)}(hhh](j)}(hint __register_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h]j)}(hint __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhR/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&]uh1jhj{hhhjhKubjg)}(h__register_chrdevh]jm)}(h__register_chrdevh]h__register_chrdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhKubj)}(hv(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(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 }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h baseminorh]h baseminor}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj )}(hinth]hint}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.__register_chrdevasbuh1hhjubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhKubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjthhubj)}(hhh]h)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXm**Parameters** ``unsigned int major`` major device number or 0 for dynamic allocation ``unsigned int baseminor`` first of the requested range of minor numbers ``unsigned int count`` the number of minor numbers required ``const char *name`` name of this range of devices ``const struct file_operations *fops`` file operations associated with this devices **Description** If **major** == 0 this functions will dynamically allocate a major and return its number. If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success. Returns a -ve errno on failure. The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j)}(h``unsigned int major``h]j)}(hjh]hunsigned int major}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(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.chKhjubj)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubj)}(h<``unsigned int count`` the number of minor numbers required h](j)}(h``unsigned int count``h]j)}(hj]h]hunsigned int count}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjWubj)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hjh]h"const struct file_operations *fops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(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.chKhjubh)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hjAhhhNhNubj)}(h **major**h]hmajor}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h]hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it’s ok to use e.g. the name of the module here.}(hjqhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(h:void unregister_chrdev_region (dev_t from, unsigned count)h]j)}(h9void unregister_chrdev_region(dev_t from, unsigned count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM/ubjg)}(hunregister_chrdev_regionh]jm)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM/ubj)}(h(dev_t from, unsigned count)h](j)}(h dev_t fromh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.unregister_chrdev_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubjm)}(hcounth]hcount}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM/hjhhubj)}(hhh]h)}(h$unregister a range of device numbersh]h$unregister a range of device numbers}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM/hjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hXW**Parameters** ``dev_t from`` the first in the range of numbers to unregister ``unsigned count`` the number of device numbers to unregister **Description** This function will unregister a range of **count** device numbers, starting with **from**. The caller should normally be the one who allocated those numbers in the first place...h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.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)}(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.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 }(hj8hhhNhNubj)}(h **count**h]hcount}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh device numbers, starting with }(hj8hhhNhNubj)}(h**from**h]hfrom}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hj8hhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhj hhhNhNubh)}(hhh](j)}(hkvoid __unregister_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h]j)}(hjvoid __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h baseminorh]h baseminor}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(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&]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&]jjjuh1jjjhjhhhjhMEubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj)}(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&]uh1jhjhhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``unsigned int major`` major device number ``unsigned int baseminor`` first of the range of minor numbers ``unsigned int count`` the number of minor numbers this cdev is occupying ``const char *name`` name of this range of devices **Description** Unregister and destroy the cdev occupying the region described by **major**, **baseminor** and **count**. This function undoes what __register_chrdev() did.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(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.chMIhjEubj)}(hhh](j)}(h+``unsigned int major`` major device number h](j)}(h``unsigned int major``h]j)}(hjjh]hunsigned int major}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMFhjdubj)}(hhh]h)}(hmajor device numberh]hmajor device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjaubj)}(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&]uh1jhjhMGhjaubj)}(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&]uh1jhjhMHhjaubj)}(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.chMIhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMIhjaubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMKhjEubh)}(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 }(hjfhhhNhNubj)}(h **major**h]hmajor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh, }(hjfhhhNhNubj)}(h **baseminor**h]h baseminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh and }(hjfhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh5. This function undoes what __register_chrdev() did.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMJhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_add (C function) c.cdev_addhNtauh1hhj hhhNhNubh)}(hhh](j)}(h8int cdev_add (struct cdev *p, dev_t dev, unsigned count)h]j)}(h7int cdev_add(struct cdev *p, dev_t dev, unsigned count)h](j )}(hinth]hint}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcdevh]hcdev}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE jsb c.cdev_addasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjahhhNhNubah}(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&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jB c.cdev_addasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(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&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct cdev *p`` the cdev structure for the device ``dev_t dev`` the first device number for which this device is responsible ``unsigned count`` the number of consecutive minor numbers corresponding to this device **Description** cdev_add() adds the device represented by **p** to the system, making it live immediately. A negative error code is returned on failure.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj#ubj)}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjHh]hstruct cdev *p}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjBubj)}(hhh]h)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(hK``dev_t dev`` the first device number for which this device is responsible h](j)}(h ``dev_t dev``h]j)}(hjh]h dev_t dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj{ubj)}(hhh]h)}(hdevt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add. This function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device. **NOTE** Callers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.h](h)}(h**Parameters**h]j)}(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)}(hj h]hstruct device *dev}(hj"hhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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 }(hjqhhhNhNubj)}(h**cdev**h]hcdev}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh4 to the system, just as cdev_add does. It then adds }(hjqhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhX  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.}(hjqhhhNhNubeh}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_device_del (C function)c.cdev_device_delhNtauh1hhj hhhNhNubh)}(hhh](j)}(hubj)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.cdev_device_delasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM4hjhhubj)}(hhh]h)}(hinverse of cdev_device_addh]hinverse of cdev_device_add}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM4hj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the cdev structure ``struct device *dev`` the device structure **Description** cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used. If dev->devt is not set it will not remove the cdev and will be equivalent to device_del. **NOTE** This guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjUubj)}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjzh]hstruct cdev *cdev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hjtubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjqubj)}(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&]uh1jhjhM6hjqubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjUubh)}(h{cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used.h]h{cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM7hjUubh)}(hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.h]hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM:hjUubh)}(h**NOTE**h]j)}(hj$ h]hNOTE}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM=hjUubh)}(hThis guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.h]hThis guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM>hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_del (C function) c.cdev_delhNtauh1hhj hhhNhNubh)}(hhh](j)}(hvoid cdev_del (struct cdev *p)h]j)}(hvoid cdev_del(struct cdev *p)h](j )}(hvoidh]hvoid}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hje hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMOubj)}(h h]h }(hjx hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhje hhhjw hMOubjg)}(hcdev_delh]jm)}(hcdev_delh]hcdev_del}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhje hhhjw hMOubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hcdevh]hcdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sb c.cdev_delasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjh]hp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhje hhhjw hMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhja hhhjw hMOubah}(h]j\ ah ](jjeh"]h$]h&]jj)jhuh1hhjw hMOhj^ hhubj)}(hhh]h)}(hremove a cdev from the systemh]hremove a cdev from the system}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMOhj% hhubah}(h]h ]h"]h$]h&]uh1jhj^ hhhjw hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@ jj@ jjjuh1hhhhj hNhNubj)}(hXg**Parameters** ``struct cdev *p`` the cdev structure to be removed **Description** cdev_del() removes **p** from the system, possibly freeing the structure itself. **NOTE** This guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.h](h)}(h**Parameters**h]j)}(hjJ h]h Parameters}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMShjD ubj)}(hhh]j)}(h4``struct cdev *p`` the cdev structure to be removed h](j)}(h``struct cdev *p``h]j)}(hji h]hstruct cdev *p}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMPhjc ubj)}(hhh]h)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ hMPhj ubah}(h]h ]h"]h$]h&]uh1jhjc ubeh}(h]h ]h"]h$]h&]uh1jhj~ hMPhj` ubah}(h]h ]h"]h$]h&]uh1jhjD ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMRhjD ubh)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hj hhhNhNubj)}(h**p**h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh8 from the system, possibly freeing the structure itself.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMQhjD ubh)}(h**NOTE**h]j)}(hj h]hNOTE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMThjD ubh)}(hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.h]hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMUhjD ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_alloc (C function) c.cdev_allochNtauh1hhj hhhNhNubh)}(hhh](j)}(hstruct cdev * cdev_alloc (void)h]j)}(hstruct cdev *cdev_alloc(void)h](j)}(hj6}h]hstruct}(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM|ubj)}(h h]h }(hj0 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj/ hM|ubh)}(hhh]jm)}(hcdevh]hcdev}(hjA hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj> ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjC modnameN classnameNjI jL )}jO ]jR )}jE cdev_allocsb c.cdev_allocasbuh1hhj hhhj/ hM|ubj)}(h h]h }(hjb hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj/ hM|ubj)}(hjh]h*}(hjp hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj/ hM|ubjg)}(h cdev_alloch]jm)}(hj_ h]h cdev_alloc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj} ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj/ hM|ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj/ hM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj/ hM|ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj/ hM|hj hhubj)}(hhh]h)}(hallocate a cdev structureh]hallocate a cdev structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM|hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj/ hM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL on failure.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjB h]h Description}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubh)}(h;Allocates and returns a cdev structure, or NULL on failure.h]h;Allocates and returns a cdev structure, or NULL on failure.}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM}hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_init (C function) c.cdev_inithNtauh1hhj hhhNhNubh)}(hhh](j)}(hFvoid cdev_init (struct cdev *cdev, const struct file_operations *fops)h]j)}(hEvoid cdev_init(struct cdev *cdev, const struct file_operations *fops)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(h cdev_inith]jm)}(h cdev_inith]h cdev_init}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h7(struct cdev *cdev, const struct file_operations *fops)h](j)}(hstruct cdev *cdevh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hcdevh]hcdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sb c.cdev_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)}(hcdevh]hcdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubj)}(h h]h }(hjC hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2 ubj)}(hj6}h]hstruct}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubj)}(h h]h }(hj^ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2 ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjo hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjq modnameN classnameNjI jL )}jO ]j  c.cdev_initasbuh1hhj2 ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2 ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubjm)}(hfopsh]hfops}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2 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]jz ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj| hhubj)}(hhh]h)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj| hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the structure to initialize ``const struct file_operations *fops`` the file_operations for this device **Description** Initializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h)}(h**Parameters**h]j)}(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)}(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.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)}(hjLh]h"const struct file_operations *fops}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjFubj)}(hhh]h)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubh)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hjhhhNhNubj)}(h**cdev**h]hcdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, remembering }(hjhhhNhNubj)}(h**fops**h]hfops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7, making it ready to add to the system with cdev_add().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM\ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMbubh)}(hXgThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these "clocks" don't relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These :c:type:`struct clk ` instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.h](hXThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these “clocks” don’t relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These }(hjhhhNhNubh)}(h:c:type:`struct clk `h]j)}(hjh]h struct clk}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jclkuh1hhhhMdhjubh instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMdhjhhubh)}(hX_Power management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn't waste power changing the state of transistors that aren't in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a *retention mode*. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.h](hXPower management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn’t waste power changing the state of transistors that aren’t in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a }(hj!hhhNhNubj)}(h*retention mode*h]hretention mode}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!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&]uh1hhhhMnhjhhubh)}(hXPower-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a "standby" state may allow wakeup from several active domains, a "mem" (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver's suspend method may need to be aware of system-specific clock constraints on the target sleep state.h]hX"Power-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a “standby” state may allow wakeup from several active domains, a “mem” (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver’s suspend method may need to be aware of system-specific clock constraints on the target sleep state.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhjhhubh)}(hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.h]hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier (C struct)c.clk_notifierhNtauh1hhjhhhNhNubh)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](j)}(hj6}h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhKubjg)}(h clk_notifierh]jm)}(hjph]h clk_notifier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhKubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjkhhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK,hjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX[**Definition**:: struct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; }; **Members** ``clk`` struct clk * to associate the notifier with ``notifier_head`` a blocking_notifier_head for this clk ``node`` linked list pointersh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjubj#C)}(hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };h]hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK2hjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8hjubj)}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(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.hjubj)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hK.hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hK.hjubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hj^h]h notifier_head}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hjXubj)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshK/hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshK/hjubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hjubj)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK3hjhhubh)}(hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular **clk**. Future notifiers on that **clk** are added to the **notifier_head**.h](hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Future notifiers on that }(hjhhhNhNubj)}(h**clk**h]hclk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are added to the }(hjhhhNhNubj)}(h**notifier_head**h]h notifier_head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhjhhhNhNubh)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj[hK8ubjg)}(hclk_notifier_datah]jm)}(hjHh]hclk_notifier_data}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj[hK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj[hK8ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj[hK8hjChhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj[hK8ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX)**Definition**:: struct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; }; **Members** ``clk`` struct clk * being changed ``old_rate`` previous rate of this clk ``new_rate`` new rate of this clkh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhjubj#C)}(hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };h]hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKChjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIhjubj)}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hjh]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK?hjubj)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hj6h]hold_rate}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hj0ubj)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhK@hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhK@hjubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hjoh]hnew_rate}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hjiubj)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKDhjhhubh)}(hFor a pre-notifier, old_rate is the clk's rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk's current rate (this was done to optimize the implementation).h]hXFor a pre-notifier, old_rate is the clk’s rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk’s current rate (this was done to optimize the implementation).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhjhhhNhNubh)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKIubjg)}(h clk_bulk_datah]jm)}(hjh]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKIhjhhubj)}(hhh]h)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKNhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKIubeh}(h]h ](jstructeh"]h$]h&]jjjjJjjJjjjuh1hhhhjhNhNubj)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh:}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjNubj#C)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hjosbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKThjNubh)}(h **Members**h]j)}(hjh]hMembers}(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.hhKYhjNubj)}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hjh]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhjubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hjh]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhjubj)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKUhjhhubh)}(hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.h]hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhjhhhNhNubh)}(hhh](j)}(hFint clk_notifier_register (struct clk *clk, struct notifier_block *nb)h]j)}(hEint clk_notifier_register(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghK_ubjg)}(hclk_notifier_registerh]jm)}(hclk_notifier_registerh]hclk_notifier_register}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j|sbc.clk_notifier_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct notifier_block *nbh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jc.clk_notifier_registerasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnbh]hnb}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghK_ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghK_hjNhhubj)}(hhh]h)}(h.register a clock rate-change notifier callbackh]h.register a clock rate-change notifier callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_hjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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.hhKchjubj)}(hhh](j)}(h:``struct clk *clk`` clock whose rate we are interested in 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.hhK`hjubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hjh]hstruct notifier_block *nb}(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.hhKahjubj)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKahjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKchjubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhjhhhNhNubh)}(hhh](j)}(hHint clk_notifier_unregister (struct clk *clk, struct notifier_block *nb)h]j)}(hGint clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKjubjg)}(hclk_notifier_unregisterh]jm)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_notifier_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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)}(hstruct notifier_block *nbh](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jc.clk_notifier_unregisterasbuh1hhj.ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hnbh]hnb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhKjubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhKjhjxhhubj)}(hhh]h)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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.hhKnhjubj)}(hhh](j)}(hD``struct clk *clk`` clock whose rate we are no longer interested in 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.hhKkhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKkhjubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKlhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKmhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhjhhhNhNubh)}(hhh](j)}(h_int devm_clk_notifier_register (struct device *dev, struct clk *clk, struct notifier_block *nb)h]j)}(h^int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKqubjg)}(hdevm_clk_notifier_registerh]jm)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKqubj)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_clk_notifier_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hclkh]hclk}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jc.devm_clk_notifier_registerasbuh1hhj2ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct notifier_block *nbh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.devm_clk_notifier_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnbh]hnb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKqubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhKqhj|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&]uh1jhj|hhhjhKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhjhNhNubj)}(hX **Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk *clk`` clock whose rate we are interested in ``struct notifier_block *nb`` notifier block with callback function pointer **Description** Returns 0 on success, -EERROR otherwiseh](h)}(h**Parameters**h]j)}(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.hhKuhjCubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjhh]hstruct device *dev}(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.hhKrhjbubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKrhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKrhj_ubj)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(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.hhKshjubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKshj_ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hjh]hstruct notifier_block *nb}(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.hhKthjubj)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKthj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKvhjCubh)}(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.hhKuhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhjhhhNhNubh)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhK|ubjg)}(hclk_get_accuracyh]jm)}(hclk_get_accuracyh]hclk_get_accuracy}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j}sbc.clk_get_accuracyasbuh1hhjubj)}(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&]jjuh1jhjVhhhjhhK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhK|ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhK|hjOhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|hjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhjhNhNubj)}(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)}(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.hhKhj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK~hjUubj)}(hhh]h)}(h clock sourceh]h clock source}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphK~hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphK~hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_phase (C function)c.clk_set_phasehNtauh1hhjhhhNhNubh)}(hhh](j)}(h0int clk_set_phase (struct clk *clk, int degrees)h]j)}(h/int clk_set_phase(struct clk *clk, int degrees)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h clk_set_phaseh]jm)}(h clk_set_phaseh]h clk_set_phase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct clk *clk, int degrees)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_set_phaseasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int degreesh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdegreesh]hdegrees}(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(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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.hhKhjubj)}(hhh](j)}(h(``struct clk *clk`` clock signal 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.hhKhj ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(h8``int degrees`` number of degrees the signal is shifted h](j)}(h``int degrees``h]j)}(hjJh]h int degrees}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubj)}(hhh]h)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjubeh}(h]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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_phase (C function)c.clk_get_phasehNtauh1hhjhhhNhNubh)}(hhh](j)}(h#int clk_get_phase (struct clk *clk)h]j)}(h"int clk_get_phase(struct clk *clk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h clk_get_phaseh]jm)}(h clk_get_phaseh]h clk_get_phase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_get_phaseasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(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(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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.hhKhjubj)}(hhh]j)}(h(``struct clk *clk`` clock signal 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.hhKhjubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(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:389: ./include/linux/clk.hhKhjubh)}(hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.h]hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhjhhhNhNubh)}(hhh](j)}(hLint clk_set_duty_cycle (struct clk *clk, unsigned int num, unsigned int den)h]j)}(hKint clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den)h](j )}(hinth]hint}(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjZ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG hhhjY hKubjg)}(hclk_set_duty_cycleh]jm)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hjl hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjG hhhjY hKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jn sbc.clk_set_duty_cycleasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int numh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj$!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hnumh]hnum}(hj2!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hjK!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG!ubj)}(h h]h }(hjY!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG!ubj )}(hinth]hint}(hjg!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG!ubj)}(h h]h }(hju!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG!ubjm)}(hdenh]hden}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjG hhhjY hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjC hhhjY hKubah}(h]j> ah ](jjeh"]h$]h&]jj)jhuh1hhjY hKhj@ hhubj)}(hhh]h)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!hhubah}(h]h ]h"]h$]h&]uh1jhj@ hhhjY hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjhNhNubj)}(hXF**Parameters** ``struct clk *clk`` clock signal source ``unsigned int num`` numerator of the duty cycle ratio to be applied ``unsigned int den`` denominator of the duty cycle ratio to be applied **Description** Adjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj!h]hstruct clk *clk}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj!ubj)}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j)}(h``unsigned int num``h]j)}(hj'"h]hunsigned int num}(hj)"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!"ubj)}(hhh]h)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(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)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hj`"h]hunsigned int den}(hjb"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjZ"ubj)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju"hKhjv"ubah}(h]h ]h"]h$]h&]uh1jhjZ"ubeh}(h]h ]h"]h$]h&]uh1jhju"hKhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!ubh)}(hhAdjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.h]hhAdjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhjhhhNhNubh)}(hhh](j)}(hCint clk_get_scaled_duty_cycle (struct clk *clk, unsigned int scale)h]j)}(hBint clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale)h](j )}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj"hKubjg)}(hclk_get_scaled_duty_cycleh]jm)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj"hKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj*#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(hclkh]hclk}(hj;#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=#modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.clk_get_scaled_duty_cycleasbuh1hhj#ubj)}(h h]h }(hj[#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hji#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hclkh]hclk}(hjv#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj )}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubjm)}(hscaleh]hscale}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hKubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hKhj"hhubj)}(hhh]h)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj $jj $jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct clk *clk`` clock signal source ``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer **Description** Returns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj $ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj2$h]hstruct clk *clk}(hj4$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj,$ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG$hKhjH$ubah}(h]h ]h"]h$]h&]uh1jhj,$ubeh}(h]h ]h"]h$]h&]uh1jhjG$hKhj)$ubj)}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j)}(h``unsigned int scale``h]j)}(hjk$h]hunsigned int scale}(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:389: ./include/linux/clk.hhKhje$ubj)}(hhh]h)}(hAscaling factor to be applied to represent the ratio as an integerh]hAscaling factor to be applied to represent the ratio as an integer}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhje$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)}(hYReturns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.h]hYReturns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj $ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_is_match (C function)c.clk_is_matchhNtauh1hhjhhhNhNubh)}(hhh](j)}(h` object. Returns false otherwise. Note that two NULL clks are treated as matching.h](h)}(h**Parameters**h]j)}(hjp&h]h Parameters}(hjr&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjj&ubj)}(hhh](j)}(h/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hj&h]hconst struct clk *p}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj&ubj)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhj&ubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hj&h]hconst struct clk *q}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj&ubj)}(hhh]h)}(hclk compared against ph]hclk compared against p}(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&]uh1jhjj&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.hhKhjj&ubh)}(hReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if **p** and **q** share the same :c:type:`struct clk_core ` object.h](hyReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if }(hj'hhhNhNubj)}(h**p**h]hp}(hj!'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh and }(hj'hhhNhNubj)}(h**q**h]hq}(hj3'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh share the same }(hj'hhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hjG'h]hstruct clk_core}(hjI'hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjE'ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj'ubh object.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjd'hKhjj&ubh)}(hIReturns false otherwise. Note that two NULL clks are treated as matching.h]hIReturns false otherwise. Note that two NULL clks are treated as matching.}(hjo'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(h,int clk_rate_exclusive_get (struct clk *clk)h]j)}(h+int clk_rate_exclusive_get(struct clk *clk)h](j )}(hinth]hint}(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)}(hj6}h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hclkh]hclk}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.clk_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}(hj4(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}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj[(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjv(jjv(jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** This function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches If exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can't be preempted. Must not be called from within atomic context. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjz(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&]uh1jhjz(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.hhKhjz(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.hhKhjz(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.hhKhjz(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.hhKhjz(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.hhKhjz(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(hEint devm_clk_rate_exclusive_get (struct device *dev, struct clk *clk)h]j)}(hDint devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)h](j )}(hinth]hint}(hjL)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjH)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&]uh1jhjH)hhhjZ)hKubjg)}(hdevm_clk_rate_exclusive_geth]jm)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjm)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjH)hhhjZ)hKubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jR )}jE jo)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)}(hj6}h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(hclkh]hclk}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]j)c.devm_clk_rate_exclusive_getasbuh1hhj)ubj)}(h h]h }(hj7*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjE*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hclkh]hclk}(hjR*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjH)hhhjZ)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD)hhhjZ)hKubah}(h]j?)ah ](jjeh"]h$]h&]jj)jhuh1hhjZ)hKhjA)hhubj)}(hhh]h)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of 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.hhKhjy*hhubah}(h]h ]h"]h$]h&]uh1jhjA)hhhjZ)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhjhNhNubj)}(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)}(hj1+h]h Description}(hj3+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjG+hhhNhNubj)}(h**clk**h]hclk}(hjO+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG+ubh) and registers a devm cleanup handler on }(hjG+hhhNhNubj)}(h**dev**h]hdev}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG+ubh" to call clk_rate_exclusive_put().}(hjG+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.}(hjz+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(h-void clk_rate_exclusive_put (struct clk *clk)h]j)}(h,void clk_rate_exclusive_put(struct clk *clk)h](j )}(hvoidh]hvoid}(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)}(hj6}h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hclkh]hclk}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE j+sbc.clk_rate_exclusive_putasbuh1hhj+ubj)}(h h]h }(hj$,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj2,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}(hji,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjf,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjhNhNubj)}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_prepare (C function) c.clk_preparehNtauh1hhjhhhNhNubh)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjH-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD-hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,ubj)}(h h]h }(hjW-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD-hhhjV-hM,ubjg)}(h clk_prepareh]jm)}(h clk_prepareh]h clk_prepare}(hji-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhje-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjD-hhhjV-hM,ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hclkh]hclk}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jk-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&]noemphjjuh1jhj}-ubah}(h]h ]h"]h$]h&]jjuh1jhjD-hhhjV-hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@-hhhjV-hM,ubah}(h]j;-ah ](jjeh"]h$]h&]jj)jhuh1hhjV-hM,hj=-hhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare a clock source}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,hj.hhubah}(h]h ]h"]h$]h&]uh1jhj=-hhhjV-hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj .jj .jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This prepares the clock source for use. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hj*.h]h Parameters}(hj,.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM0hj$.ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjI.h]hstruct clk *clk}(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:389: ./include/linux/clk.hhM-hjC.ubj)}(hhh]h)}(h clock sourceh]h clock source}(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@.ubah}(h]h ]h"]h$]h&]uh1jhj$.ubh)}(h**Description**h]j)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/hj$.ubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hj$.ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM0hj$.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhjhhhNhNubh)}(hhh](j)}(h3bool clk_is_enabled_when_prepared (struct clk *clk)h]j)}(h2bool clk_is_enabled_when_prepared(struct clk *clk)h](j )}(hj8h]hbool}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hM8ubjg)}(hclk_is_enabled_when_preparedh]jm)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hM8ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj!/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hclkh]hclk}(hj2/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj//ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4/modnameN classnameNjI jL )}jO ]jR )}jE j.sbc.clk_is_enabled_when_preparedasbuh1hhj/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)}(hclkh]hclk}(hjm/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj /ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hM8ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hM8hj.hhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** Returns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise. This is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect. Regardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM<hj/ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj/h]hstruct clk *clk}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM9hj/ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM9hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM9hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hj/ubh)}(hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.h]hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.}(hj)0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM:hj/ubh)}(hThis is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect.h]hThis is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect.}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM=hj/ubh)}(hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h]hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.}(hjG0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_unprepare (C function)c.clk_unpreparehNtauh1hhjhhhNhNubh)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hjv0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr0hhhj0hM\ubjg)}(h clk_unprepareh]jm)}(h clk_unprepareh]h clk_unprepare}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjr0hhhj0hM\ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(hclkh]hclk}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE j0sbc.clk_unprepareasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hclkh]hclk}(hj 1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjr0hhhj0hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjn0hhhj0hM\ubah}(h]ji0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hM\hjk0hhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hj61hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\hj31hhubah}(h]h ]h"]h$]h&]uh1jhjk0hhhj0hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjN1jjN1jjjuh1hhhhjhNhNubj)}(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)}(hjX1h]h Parameters}(hjZ1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjR1ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjw1h]hstruct clk *clk}(hjy1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjq1ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM]hj1ubah}(h]h ]h"]h$]h&]uh1jhjq1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM]hjn1ubah}(h]h ]h"]h$]h&]uh1jhjR1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM_hjR1ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjR1ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMahjR1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get (C function) c.clk_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(h9struct clk * clk_get (struct device *dev, const char *id)h]j)}(h7struct clk *clk_get(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMuubh)}(hhh]jm)}(hclkh]hclk}(hj%2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'2modnameN classnameNjI jL )}jO ]jR )}jE clk_getsb c.clk_getasbuh1hhj2hhhj2hMuubj)}(h h]h }(hjF2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMuubj)}(hjh]h*}(hjT2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hMuubjg)}(hclk_geth]jm)}(hjC2h]hclk_get}(hje2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMuubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|2ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jA2 c.clk_getasbuh1hhj|2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|2ubjm)}(hdevh]hdev}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx2ubj)}(hconst char *idh](j)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj )}(hcharh]hchar}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj'3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hidh]hid}(hj43hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx2ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj2hMuubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMuhj1hhubj)}(hhh]h)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hj^3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhj[3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj2hMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjv3jjv3jjjuh1hhhhjhNhNubj)}(hX;**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) Drivers must assume that the clock source is not enabled. clk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMyhjz3ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj3h]hstruct device *dev}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMvhj3ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMvhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMvhj3ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj3h]hconst char *id}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhj3ubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMwhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMwhj3ubeh}(h]h ]h"]h$]h&]uh1jhjz3ubh)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMyhjz3ubh)}(hXDReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hj)4hhhNhNubj)}(h**dev**h]hdev}(hj14hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)4ubh and }(hj)4hhhNhNubj)}(h**id**h]hid}(hjC4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)4ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj)4hhhNhNubj)}(h**id**h]hid}(hjU4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)4ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj)4hhhNhNubj)}(h**dev**h]hdev}(hjg4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)4ubh.)}(hj)4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjz3ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM~hjz3ubh)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjz3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(hOint clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hNint clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhj4hMubjg)}(h clk_bulk_geth]jm)}(h clk_bulk_geth]h clk_bulk_get}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj4hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE j4sbc.clk_bulk_getasbuh1hhj4ubj)}(h h]h }(hj95hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjG5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hdevh]hdev}(hjT5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h int num_clksh](j )}(hinth]hint}(hjm5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji5ubj)}(h h]h }(hj{5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji5ubjm)}(hnum_clksh]hnum_clks}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]j55c.clk_bulk_getasbuh1hhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hclksh]hclks}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj4hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhj4hhubj)}(hhh]h)}(h;lookup and obtain a number of references to clock producer.h]h;lookup and obtain a number of references to clock producer.}(hj#6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj 6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;6jj;6jjjuh1hhhhjhNhNubj)}(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)}(hjE6h]h Parameters}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?6ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjd6h]hstruct device *dev}(hjf6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj^6ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj}6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy6hMhjz6ubah}(h]h ]h"]h$]h&]uh1jhj^6ubeh}(h]h ]h"]h$]h&]uh1jhjy6hMhj[6ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj6h]h int num_clks}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj6ubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj[6ubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj6h]hstruct clk_bulk_data *clks}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj6ubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj[6ubeh}(h]h ]h"]h$]h&]uh1jhj?6ubh)}(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.hhMhj?6ubh)}(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'7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?6ubh)}(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 }(hj67hhhNhNubj)}(h**dev**h]hdev}(hj>7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj67ubh and }(hj67hhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjP7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj67ubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hj67hhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjb7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj67ubh field.}(hj67hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?6ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?6ubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhjhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj7hMubjg)}(hclk_bulk_get_allh]jm)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj7hMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.clk_bulk_get_allasbuh1hhj7ubj)}(h h]h }(hj48hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjB8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hdevh]hdev}(hjO8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct clk_bulk_data **clksh](j)}(hj6}h]hstruct}(hjh8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd8ubj)}(h h]h }(hju8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd8ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]j08c.clk_bulk_get_allasbuh1hhjd8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd8ubjm)}(hclksh]hclks}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhj7hhubj)}(hhh]h)}(h=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjhNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj79h]hstruct device *dev}(hj99hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj59ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj19ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjP9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL9hMhjM9ubah}(h]h ]h"]h$]h&]uh1jhj19ubeh}(h]h ]h"]h$]h&]uh1jhjL9hMhj.9ubj)}(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)}(hjp9h]hstruct clk_bulk_data **clks}(hjr9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjj9ubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj.9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubh)}(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 }(hj9hhhNhNubj)}(h**clks**h]hclks}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubhN field. Returns 0 if there’re none and a negative value if something failed.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhjhhhNhNubh)}(hhh](j)}(hXint clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hWint clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hj/:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj>:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+:hhhj=:hMubjg)}(hclk_bulk_get_optionalh]jm)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjP:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+:hhhj=:hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjl:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh:ubj)}(h h]h }(hjy:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh: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 jR:sbc.clk_bulk_get_optionalasbuh1hhjh: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)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd:ubj)}(h int num_clksh](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hnum_clksh]hnum_clks}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd:ubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj ;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj1;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3;modnameN classnameNjI jL )}jO ]j:c.clk_bulk_get_optionalasbuh1hhj;ubj)}(h h]h }(hjO;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj];hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hclksh]hclks}(hjj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd:ubeh}(h]h ]h"]h$]h&]jjuh1jhj+:hhhj=:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj':hhhj=:hMubah}(h]j":ah ](jjeh"]h$]h&]jj)jhuh1hhj=:hMhj$:hhubj)}(hhh]h)}(h:lookup and obtain a number of references to clock producerh]h:lookup and obtain a number of references to clock producer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj$:hhhj=:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Behaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj;h]hstruct device *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj<h]h int num_clks}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj <ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj<ubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj'<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#<hMhj$<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj#<hMhj;ubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjG<h]hstruct clk_bulk_data *clks}(hjI<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjA<ubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj`<hhhNhNubah}(h]h ]h"]h$]h&]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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;ubh)}(hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h]hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(hTint devm_clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hSint devm_clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhj<hMubjg)}(hdevm_clk_bulk_geth]jm)}(hdevm_clk_bulk_geth]hdevm_clk_bulk_get}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj<hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(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_bulk_getasbuh1hhj=ubj)}(h h]h }(hjB=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjP=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hdevh]hdev}(hj]=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(h int num_clksh](j )}(hinth]hint}(hjv=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr=ubjm)}(hnum_clksh]hnum_clks}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]j>=c.devm_clk_bulk_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)}(hclksh]hclks}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhj<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhj<hhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(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&]jjjjD>jjD>jjjuh1hhhhjhNhNubj)}(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)}(hjN>h]h Parameters}(hjP>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjH>ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjm>h]hstruct device *dev}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjg>ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhjg>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjd>ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj>h]h int num_clks}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj>ubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjd>ubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj>h]hstruct clk_bulk_data *clks}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj>ubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjd>ubeh}(h]h ]h"]h$]h&]uh1jhjH>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.hhMhjH>ubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hj0?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjH>ubh)}(hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h]hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.}(hj??hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjH>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhjhhhNhNubh)}(hhh](j)}(h]int devm_clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(h\int devm_clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjn?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj}?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj?hhhj|?hMubjg)}(hdevm_clk_bulk_get_optionalh]jm)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjj?hhhj|?hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(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_bulk_get_optionalasbuh1hhj?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)}(h int num_clksh](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj+@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hnum_clksh]hnum_clks}(hj9@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]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 clk_bulk_datah]h clk_bulk_data}(hjp@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjr@modnameN classnameNjI jL )}jO ]j?c.devm_clk_bulk_get_optionalasbuh1hhjN@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)}(hclksh]hclks}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjj?hhhj|?hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf?hhhj|?hMubah}(h]ja?ah ](jjeh"]h$]h&]jj)jhuh1hhj|?hMhjc?hhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@hhubah}(h]h ]h"]h$]h&]uh1jhjc?hhhj|?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer **Description** Behaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional. Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjAh]hstruct device *dev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj-AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)AhMhj*Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj)AhMhj Aubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjMAh]h int num_clks}(hjOAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGAubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjfAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbAhMhjcAubah}(h]h ]h"]h$]h&]uh1jhjGAubeh}(h]h ]h"]h$]h&]uh1jhjbAhMhj Aubj)}(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)}(hjAh]hstruct clk_bulk_data *clks}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj Aubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubh)}(hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.h]hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubh)}(hXReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field.h](hReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses }(hjAhhhNhNubj)}(h**dev**h]hdev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh and }(hjAhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjAhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh field.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj+BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hj:BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhjhhhNhNubh)}(hhh](j)}(hKint devm_clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]j)}(hJint devm_clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjiBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjxBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeBhhhjwBhMubjg)}(hdevm_clk_bulk_get_allh]jm)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjeBhhhjwBhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jBsbc.devm_clk_bulk_get_allasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hdevh]hdev}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct clk_bulk_data **clksh](j)}(hj6}h]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hj%ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj6ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Cubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8CmodnameN classnameNjI jL )}jO ]jBc.devm_clk_bulk_get_allasbuh1hhjCubj)}(h h]h }(hjTChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjbChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjoChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hclksh]hclks}(hj|ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjeBhhhjwBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjaBhhhjwBhMubah}(h]j\Bah ](jjeh"]h$]h&]jj)jhuh1hhjwBhMhj^Bhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjChhubah}(h]h ]h"]h$]h&]uh1jhj^BhhhjwBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjhNhNubj)}(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)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjCh]hstruct device *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubj)}(hO``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data **clks``h]j)}(hj Dh]hstruct clk_bulk_data **clks}(hj"DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjDubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj9DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5DhMhj6Dubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj5DhMhjCubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hj[Dh]h Description}(hj]DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubh)}(hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed.h](hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in }(hjqDhhhNhNubj)}(h**clks**h]hclks}(hjyDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqDubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjqDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubh)}(hThis helper function allows drivers to get 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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhjhhhNhNubh)}(hhh](j)}(hSint devm_clk_bulk_get_all_enabled (struct device *dev, struct clk_bulk_data **clks)h]j)}(hRint devm_clk_bulk_get_all_enabled(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjDhMubjg)}(hdevm_clk_bulk_get_all_enabledh]jm)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hdeviceh]hdevice}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE jDsbc.devm_clk_bulk_get_all_enabledasbuh1hhjDubj)}(h h]h }(hjstruct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(hKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhj JhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjJhMhjJhhubj)}(hhh]h)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(hjhKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** The returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled. The clock will automatically be unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjKubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjKh]hstruct device *dev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjKubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjKh]hconst char *id}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjKubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(h **Context**h]j)}(hjLh]hContext}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjKubh)}(h May sleep.h]h May sleep.}(hj3LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjKubh)}(h **Return**h]j)}(hjDLh]hReturn}(hjFLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjKubh)}(hX<a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjZLhhhNhNubj)}(h**dev**h]hdev}(hjbLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZLubh and }(hjZLhhhNhNubj)}(h**id**h]hid}(hjtLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZLubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjZLhhhNhNubj)}(h**id**h]hid}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZLubhY may be identical strings, but clk_get may return different clock producers depending on }(hjZLhhhNhNubj)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZLubh.)}(hjZLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjKubh)}(h**Description**h]j)}(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.hhM&hjKubh)}(hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.h]hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM%hjKubh)}(h]The clock will automatically be unprepared and freed when the device is unbound from the bus.h]h]The clock will automatically be unprepared and freed when the device is unbound from the bus.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM(hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!devm_clk_get_enabled (C function)c.devm_clk_get_enabledhNtauh1hhjhhhNhNubh)}(hhh](j)}(hFstruct clk * devm_clk_get_enabled (struct device *dev, const char *id)h]j)}(hDstruct clk *devm_clk_get_enabled(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhjMhM/ubh)}(hhh]jm)}(hclkh]hclk}(hj&MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#Mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(MmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhjMhhhjMhM/ubj)}(h h]h }(hjGMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhjMhM/ubj)}(hjh]h*}(hjUMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjMhM/ubjg)}(hdevm_clk_get_enabledh]jm)}(hjDMh]hdevm_clk_get_enabled}(hjfMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhM/ubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}Mubh)}(hhh]jm)}(hdeviceh]hdevice}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jBMc.devm_clk_get_enabledasbuh1hhj}Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}Mubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Mubjm)}(hdevh]hdev}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyMubj)}(hconst char *idh](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hcharh]hchar}(hj NhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hj(NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hidh]hid}(hj5NhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyMubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjMhM/ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjMhM/hjLhhubj)}(hhh]h)}(h%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hj_NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/hj\Nhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjMhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwNjjwNjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** The returned clk (if valid) is prepared and enabled. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(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.hhM3hj{Nubj)}(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.hhM0hjNubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM0hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM0hjNubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjNh]hconst char *id}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjNubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM1hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM1hjNubeh}(h]h ]h"]h$]h&]uh1jhj{Nubh)}(h **Context**h]j)}(hjOh]hContext}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hj{Nubh)}(h May sleep.h]h May sleep.}(hj*OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hj{Nubh)}(h **Return**h]j)}(hj;Oh]hReturn}(hj=OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM5hj{Nubh)}(hX<a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjQOhhhNhNubj)}(h**dev**h]hdev}(hjYOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQOubh and }(hjQOhhhNhNubj)}(h**id**h]hid}(hjkOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQOubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjQOhhhNhNubj)}(h**id**h]hid}(hj}OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQOubhY may be identical strings, but clk_get may return different clock producers depending on }(hjQOhhhNhNubj)}(h**dev**h]hdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQOubh.)}(hjQOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM5hj{Nubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hj{Nubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM:hj{Nubh)}(hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h]hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM<hj{Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhjhhhNhNubh)}(hhh](j)}(hGstruct clk * devm_clk_get_optional (struct device *dev, const char *id)h]j)}(hEstruct clk *devm_clk_get_optional(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMCubj)}(h h]h }(hj PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhj PhMCubh)}(hhh]jm)}(hclkh]hclk}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjOhhhj PhMCubj)}(h h]h }(hj>PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhj PhMCubj)}(hjh]h*}(hjLPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj PhMCubjg)}(hdevm_clk_get_optionalh]jm)}(hj;Ph]hdevm_clk_get_optional}(hj]PhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhj PhMCubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjxPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtPubh)}(hhh]jm)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]j9Pc.devm_clk_get_optionalasbuh1hhjtPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtPubjm)}(hdevh]hdev}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpPubj)}(hconst char *idh](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hidh]hid}(hj,QhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpPubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhj PhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhj PhMCubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhj PhMChjOhhubj)}(hhh]h)}(hDlookup and obtain a managed reference to an optional clock producer.h]hDlookup and obtain a managed reference to an optional clock producer.}(hjVQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMChjSQhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhj PhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnQjjnQjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get(). **Description** Drivers must assume that the clock source is neither prepared nor enabled. The clock will automatically be freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjxQh]h Parameters}(hjzQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMGhjrQubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjQh]hstruct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMEhjQubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMEhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMEhjQubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjQh]hconst char *id}(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.hhMFhjQubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMFhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMFhjQubeh}(h]h ]h"]h$]h&]uh1jhjrQubh)}(h **Context**h]j)}(hj Rh]hContext}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhjrQubh)}(h May sleep.h]h May sleep.}(hj!RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhjrQubh)}(h **Return**h]j)}(hj2Rh]hReturn}(hj4RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Rubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMJhjrQubh)}(hXKa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjHRhhhNhNubj)}(h**dev**h]hdev}(hjPRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHRubh and }(hjHRhhhNhNubj)}(h**id**h]hid}(hjbRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHRubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get().}(hjHRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMJhjrQubh)}(h**Description**h]j)}(hj}Rh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Rubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMQhjrQubh)}(hJDrivers must assume that the clock source is neither prepared nor enabled.h]hJDrivers must assume that the clock source is neither prepared nor enabled.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhjrQubh)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMShjrQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhjhhhNhNubh)}(hhh](j)}(hPstruct clk * devm_clk_get_optional_prepared (struct device *dev, const char *id)h]j)}(hNstruct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMZubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjRhMZubh)}(hhh]jm)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_optional_preparedsb c.devm_clk_get_optional_preparedasbuh1hhjRhhhjRhMZubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjRhMZubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhMZubjg)}(hdevm_clk_get_optional_preparedh]jm)}(hjSh]hdevm_clk_get_optional_prepared}(hj0ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Subah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjRhMZubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjKShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGSubj)}(h h]h }(hjXShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGSubh)}(hhh]jm)}(hdeviceh]hdevice}(hjiShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkSmodnameN classnameNjI jL )}jO ]j S c.devm_clk_get_optional_preparedasbuh1hhjGSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGSubjm)}(hdevh]hdev}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCSubj)}(hconst char *idh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hcharh]hchar}(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)}(hidh]hid}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCSubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjRhMZubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhMZhjRhhubj)}(hhh]h)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hj)ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMZhj&Thhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjATjjATjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_prepared(). **Description** The returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled. The clock will automatically be unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjKTh]h Parameters}(hjMThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjITubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjETubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjjTh]hstruct device *dev}(hjlThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjdTubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM[hjTubah}(h]h ]h"]h$]h&]uh1jhjdTubeh}(h]h ]h"]h$]h&]uh1jhjThM[hjaTubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjTh]hconst char *id}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\hjTubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM\hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM\hjaTubeh}(h]h ]h"]h$]h&]uh1jhjETubh)}(h **Context**h]j)}(hjTh]hContext}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjETubh)}(h May sleep.h]h May sleep.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjETubh)}(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:389: ./include/linux/clk.hhM`hjETubh)}(hXTa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_prepared().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjUhhhNhNubj)}(h**dev**h]hdev}(hj#UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh and }(hjUhhhNhNubj)}(h**id**h]hid}(hj5UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_prepared().}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjETubh)}(h**Description**h]j)}(hjPUh]h Description}(hjRUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMghjETubh)}(hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.h]hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.}(hjfUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMfhjETubh)}(h]The clock will automatically be unprepared and freed when the device is unbound from the bus.h]h]The clock will automatically be unprepared and freed when the device is unbound from the bus.}(hjuUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMihjETubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhjhhhNhNubh)}(hhh](j)}(hOstruct clk * devm_clk_get_optional_enabled (struct device *dev, const char *id)h]j)}(hMstruct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMpubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhMpubh)}(hhh]jm)}(hclkh]hclk}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_optional_enabledsbc.devm_clk_get_optional_enabledasbuh1hhjUhhhjUhMpubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhMpubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjUhMpubjg)}(hdevm_clk_get_optional_enabledh]jm)}(hjUh]hdevm_clk_get_optional_enabled}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhMpubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hj+VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(hdeviceh]hdevice}(hjVmodnameN classnameNjI jL )}jO ]jUc.devm_clk_get_optional_enabledasbuh1hhjVubj)}(h h]h }(hjZVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hdevh]hdev}(hjuVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hconst char *idh](j)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj )}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hidh]hid}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMpubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMphjUhhubj)}(hhh]h)}(h.devm_clk_get_optional() + clk_prepare_enable()h]h.devm_clk_get_optional() + clk_prepare_enable()}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMthjWubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj=Wh]hstruct device *dev}(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:389: ./include/linux/clk.hhMrhj7Wubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjVWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRWhMrhjSWubah}(h]h ]h"]h$]h&]uh1jhj7Wubeh}(h]h ]h"]h$]h&]uh1jhjRWhMrhj4Wubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjvWh]hconst char *id}(hjxWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMshjpWubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMshjWubah}(h]h ]h"]h$]h&]uh1jhjpWubeh}(h]h ]h"]h$]h&]uh1jhjWhMshj4Wubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h **Context**h]j)}(hjWh]hContext}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhjWubh)}(h May sleep.h]h May sleep.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhjWubh)}(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:389: ./include/linux/clk.hhMwhjWubh)}(hXSa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjWhhhNhNubj)}(h**dev**h]hdev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh and }(hjWhhhNhNubj)}(h**id**h]hid}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_enabled().}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhjWubh)}(h**Description**h]j)}(hj#Xh]h Description}(hj%XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Xubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM~hjWubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hj9XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM}hjWubh)}(hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h]hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.}(hjHXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h4devm_clk_get_optional_enabled_with_rate (C function))c.devm_clk_get_optional_enabled_with_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(hmstruct clk * devm_clk_get_optional_enabled_with_rate (struct device *dev, const char *id, unsigned long rate)h]j)}(hkstruct clk *devm_clk_get_optional_enabled_with_rate(struct device *dev, const char *id, unsigned long rate)h](j)}(hj6}h]hstruct}(hjwXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsXhhhjXhMubh)}(hhh]jm)}(hclkh]hclk}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE 'devm_clk_get_optional_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjsXhhhjXhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsXhhhjXhMubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsXhhhjXhMubjg)}(h'devm_clk_get_optional_enabled_with_rateh]jm)}(hjXh]h'devm_clk_get_optional_enabled_with_rate}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjsXhhhjXhMubj)}(h8(struct device *dev, const char *id, unsigned long rate)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(hdeviceh]hdevice}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Yubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jX)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjXubj)}(h h]h }(hj-YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hj;YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hdevh]hdev}(hjHYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hconst char *idh](j)}(hjh]hconst}(hjaYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Yubj)}(h h]h }(hjnYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]Yubj )}(hcharh]hchar}(hj|YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]Yubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]Yubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Yubjm)}(hidh]hid}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]Yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hrateh]hrate}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjsXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjoXhhhjXhMubah}(h]jjXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhjlXhhubj)}(hhh]h)}(h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjlXhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8Zjj8Zjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID ``unsigned long rate`` new clock rate **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled and rate was set. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjBZh]h Parameters}(hjDZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Zubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjinform the system when the clock source is no longer required.h]h>inform the system when the clock source is no longer required.}(hjvchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjschhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjch]hstruct clk *clk}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubj)}(hhh]h)}(h clock sourceh]h clock source}(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)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubh)}(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&dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhjhhhNhNubh)}(hhh](j)}(hFvoid clk_bulk_disable (int num_clks, const struct clk_bulk_data *clks)h]j)}(hEvoid clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks)h](j )}(hvoidh]hvoid}(hjUdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjddhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQdhhhjcdhMubjg)}(hclk_bulk_disableh]jm)}(hclk_bulk_disableh]hclk_bulk_disable}(hjvdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQdhhhjcdhMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hnum_clksh]hnum_clks}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE jxdsbc.clk_bulk_disableasbuh1hhjdubj)}(h h]h }(hj ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj.ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hclksh]hclks}(hj;ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjQdhhhjcdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMdhhhjcdhMubah}(h]jHdah ](jjeh"]h$]h&]jj)jhuh1hhjcdhMhjJdhhubj)}(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.}(hjeehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjbehhubah}(h]h ]h"]h$]h&]uh1jhjJdhhhjcdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}ejj}ejjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjeubj)}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjeh]h int num_clks}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubj)}(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)}(hjeh]h const struct clk_bulk_data *clks}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubh)}(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.}(hj0fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubh)}(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.}(hjNfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_rate (C function)c.clk_get_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h,unsigned long clk_get_rate (struct clk *clk)h]j)}(h+unsigned long clk_get_rate(struct clk *clk)h](j )}(hunsignedh]hunsigned}(hj}fhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyfhhhjfhMubj )}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyfhhhjfhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyfhhhjfhMubjg)}(h clk_get_rateh]jm)}(h clk_get_rateh]h clk_get_rate}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyfhhhjfhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(hclkh]hclk}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jR )}jE jfsbc.clk_get_rateasbuh1hhjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hj"ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hclkh]hclk}(hj/ghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(h]h ]h"]h$]h&]jjuh1jhjyfhhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjufhhhjfhMubah}(h]jpfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjrfhhubj)}(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.}(hjYghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVghhubah}(h]h ]h"]h$]h&]uh1jhjrfhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqgjjqgjjjuh1hhhhjhNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](h)}(h**Parameters**h]j)}(hj{gh]h Parameters}(hj}ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjygubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjugubj)}(hhh]j)}(h ``struct clk *clk`` clock sourceh](j)}(h``struct clk *clk``h]j)}(hjgh]hstruct clk *clk}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubj)}(hhh]h)}(h clock sourceh]h clock source}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjugubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_put (C function) c.clk_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid clk_put (struct clk *clk)h]j)}(hvoid clk_put(struct clk *clk)h](j )}(hvoidh]hvoid}(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 }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjhhMubjg)}(hclk_puth]jm)}(hclk_puth]hclk_put}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjhhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj1hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hubj)}(h h]h }(hj>hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hubh)}(hhh]jm)}(hclkh]hclk}(hjOhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQhmodnameN classnameNjI jL )}jO ]jR )}jE jhsb c.clk_putasbuh1hhj-hubj)}(h h]h }(hjohhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hubj)}(hjh]h*}(hj}hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hubjm)}(hclkh]hclk}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)hubah}(h]h ]h"]h$]h&]jjuh1jhjghhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjhhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjghhubj)}(hhh]h)}(h"free" the clock sourceh]h“free” the clock source}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhjhNhNubj)}(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)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjhh]hstruct clk *clk}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhubj)}(hhh]h)}(h clock sourceh]h clock source}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ihMhj iubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj ihMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Note**h]j)}(hj0ih]hNote}(hj2ihhhNhNubah}(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.hhMhjhubh)}(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.}(hjFihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjUihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(h``struct clk *clk`` clock source acquired with devm_clk_get() h](j)}(h``struct clk *clk``h]j)}(hj*oh]hstruct clk *clk}(hj,ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(oubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj$oubj)}(hhh]h)}(h)clock source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ohMhj@oubah}(h]h ]h"]h$]h&]uh1jhj$oubeh}(h]h ]h"]h$]h&]uh1jhj?ohMhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Note**h]j)}(hjeoh]hNote}(hjgohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjnubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hj{ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjnubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_round_rate (C function)c.clk_round_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h9long clk_round_rate (struct clk *clk, unsigned long rate)h]j)}(h8long clk_round_rate(struct clk *clk, unsigned long rate)h](j )}(hlongh]hlong}(hjohhhNhNubah}(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 }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohM*ubjg)}(hclk_round_rateh]jm)}(hclk_round_rateh]hclk_round_rate}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohM*ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(hclkh]hclk}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE josbc.clk_round_rateasbuh1hhjoubj)}(h h]h }(hj4phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjBphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hclkh]hclk}(hjOphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjhphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdpubj)}(h h]h }(hjvphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdpubj )}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdpubjm)}(hrateh]hrate}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjohM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohM*ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohM*hjohhubj)}(hhh]h)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM*hjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjhNhNubj)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjpubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj qh]hstruct clk *clk}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj qubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM+hjqubj)}(hhh]h)}(h clock sourceh]h clock source}(hj$qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj qhM+hj!qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj qhM+hjqubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjDqh]hunsigned long rate}(hjFqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,hj>qubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hj]qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYqhM,hjZqubah}(h]h ]h"]h$]h&]uh1jhj>qubeh}(h]h ]h"]h$]h&]uh1jhjYqhM,hjqubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjpubh)}(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 }(hjqhhhNhNubj)}(h**rate**h]hrate}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhv to clk_set_rate(), what clock rate would I end up with?” without changing the hardware in any way. In other words:}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hjpubj)}(hrate = clk_round_rate(clk, r); h]h)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjqubah}(h]h ]h"]h$]h&]uh1jhjqhM1hjpubh)}(hand:h]hand:}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjpubj)}(h0clk_set_rate(clk, r); rate = clk_get_rate(clk); h]h)}(h/clk_set_rate(clk, r); rate = clk_get_rate(clk);h]h/clk_set_rate(clk, r); rate = clk_get_rate(clk);}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM5hjqubah}(h]h ]h"]h$]h&]uh1jhjqhM5hjpubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hjpubh)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate (C function)c.clk_set_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h6int clk_set_rate (struct clk *clk, unsigned long rate)h]j)}(h5int clk_set_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj5rhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1rhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAubj)}(h h]h }(hjDrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1rhhhjCrhMAubjg)}(h clk_set_rateh]jm)}(h clk_set_rateh]h clk_set_rate}(hjVrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1rhhhjCrhMAubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjrrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnrubh)}(hhh]jm)}(hclkh]hclk}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jXrsbc.clk_set_rateasbuh1hhjnrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnrubjm)}(hclkh]hclk}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjrubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj )}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hrateh]hrate}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjrubeh}(h]h ]h"]h$]h&]jjuh1jhj1rhhhjCrhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-rhhhjCrhMAubah}(h]j(rah ](jjeh"]h$]h&]jj)jhuh1hhjCrhMAhj*rhhubj)}(hhh]h)}(h%set the clock rate for a clock sourceh]h%set the clock rate for a clock source}(hjFshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAhjCshhubah}(h]h ]h"]h$]h&]uh1jhj*rhhhjCrhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^sjj^sjjjuh1hhhhjhNhNubj)}(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)}(hjhsh]h Parameters}(hjjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMEhjbsubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjsh]hstruct clk *clk}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhjsubj)}(hhh]h)}(h clock sourceh]h clock source}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMBhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMBhj~subj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjsh]hunsigned long rate}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMChjsubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMChjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMChj~subeh}(h]h ]h"]h$]h&]uh1jhjbsubh)}(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:389: ./include/linux/clk.hhMEhjbsubh)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjbsubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMGhjbsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhjhhhNhNubh)}(hhh](j)}(h@int clk_set_rate_exclusive (struct clk *clk, unsigned long rate)h]j)}(h?int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjOthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMubj)}(h h]h }(hj^thhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKthhhj]thMMubjg)}(hclk_set_rate_exclusiveh]jm)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjpthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjltubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKthhhj]thMMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(hclkh]hclk}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jrtsbc.clk_set_rate_exclusiveasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hclkh]hclk}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hj uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hj(uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hrateh]hrate}(hj6uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhjKthhhj]thMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGthhhj]thMMubah}(h]jBtah ](jjeh"]h$]h&]jj)jhuh1hhj]thMMhjDthhubj)}(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`uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMhj]uhhubah}(h]h ]h"]h$]h&]uh1jhjDthhhj]thMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxujjxujjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhMQhj|uubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjuh]hstruct clk *clk}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMOhjuubj)}(hhh]h)}(h clock sourceh]h clock source}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMOhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMOhjuubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjuh]hunsigned long rate}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhjuubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMPhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMPhjuubeh}(h]h ]h"]h$]h&]uh1jhj|uubh)}(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.hhMRhj|uubh)}(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+vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMQhj|uubh)}(hIt is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put()h]hIt is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put()}(hj:vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMThj|uubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjIvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMXhj|uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_has_parent (C function)c.clk_has_parenthNtauh1hhjhhhNhNubh)}(hhh](j)}(hEbool clk_has_parent (const struct clk *clk, const struct clk *parent)h]j)}(hDbool clk_has_parent(const struct clk *clk, const struct clk *parent)h](j )}(hj8h]hbool}(hjxvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtvhhhjvhM^ubjg)}(hclk_has_parenth]jm)}(hclk_has_parenth]hclk_has_parent}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjtvhhhjvhM^ubj)}(h1(const struct clk *clk, const struct clk *parent)h](j)}(hconst struct clk *clkh](j)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hj6}h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hclkh]hclk}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE jvsbc.clk_has_parentasbuh1hhjvubj)}(h h]h }(hj whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hclkh]hclk}(hj(whhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hconst struct clk *parenth](j)}(hjh]hconst}(hjAwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubj)}(h h]h }(hjNwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=wubj)}(hj6}h]hstruct}(hj\whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubj)}(h h]h }(hjiwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=wubh)}(hhh]jm)}(hclkh]hclk}(hjzwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|wmodnameN classnameNjI jL )}jO ]j wc.clk_has_parentasbuh1hhj=wubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=wubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubjm)}(hparenth]hparent}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjtvhhhjvhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjpvhhhjvhM^ubah}(h]jkvah ](jjeh"]h$]h&]jj)jhuh1hhjvhM^hjmvhhubj)}(hhh]h)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjwhhubah}(h]h ]h"]h$]h&]uh1jhjmvhhhjvhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhjhNhNubj)}(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)}(hjwh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjwubj)}(hhh](j)}(h'``const struct clk *clk`` clock source h](j)}(h``const struct clk *clk``h]j)}(hjxh]hconst struct clk *clk}(hj xhhhNhNubah}(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.hhM_hjxubj)}(hhh]h)}(h clock sourceh]h clock source}(hj7xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3xhM_hj4xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj3xhM_hjxubj)}(h1``const struct clk *parent`` parent clock source h](j)}(h``const struct clk *parent``h]j)}(hjWxh]hconst struct clk *parent}(hjYxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjQxubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjpxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlxhM`hjmxubah}(h]h ]h"]h$]h&]uh1jhjQxubeh}(h]h ]h"]h$]h&]uh1jhjlxhM`hjxubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjwubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMahjwubh)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hjxhhhNhNubj)}(h **parent**h]hparent}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh is a possible parent for }(hjxhhhNhNubj)}(h**clk**h]hclk}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh, false otherwise.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMdhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhjhhhNhNubh)}(hhh](j)}(hNint clk_set_rate_range (struct clk *clk, unsigned long min, unsigned long max)h]j)}(hMint clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)h](j )}(hinth]hint}(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyhhhjyhMjubjg)}(hclk_set_rate_rangeh]jm)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hj+yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'yubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjyhMjubj)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjGyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCyubj)}(h h]h }(hjTyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCyubh)}(hhh]jm)}(hclkh]hclk}(hjeyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgymodnameN classnameNjI jL )}jO ]jR )}jE j-ysbc.clk_set_rate_rangeasbuh1hhjCyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCyubjm)}(hclkh]hclk}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?yubj)}(hunsigned long minh](j )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hminh]hmin}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?yubj)}(hunsigned long maxh](j )}(hunsignedh]hunsigned}(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj )}(hlongh]hlong}(hj&zhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hj4zhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hmaxh]hmax}(hjBzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?yubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhMjubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhMjhjxhhubj)}(hhh]h)}(h#set a rate range for a clock sourceh]h#set a rate range for a clock source}(hjlzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjhjizhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjhNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMnhjzubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](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.hhMkhjzubj)}(hhh]h)}(h clock sourceh]h clock source}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMkhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMkhjzubj)}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long min``h]j)}(hjzh]hunsigned long min}(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.hhMlhjzubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMlhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMlhjzubj)}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long max``h]j)}(hj{h]hunsigned long max}(hj!{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMmhj{ubj)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hj8{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4{hMmhj5{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj4{hMmhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjZ{h]h Description}(hj\{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMohjzubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjp{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMnhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h:int clk_set_min_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_min_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMtubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhj{hMtubjg)}(hclk_set_min_rateh]jm)}(hclk_set_min_rateh]hclk_set_min_rate}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhj{hMtubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubh)}(hhh]jm)}(hclkh]hclk}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE j{sbc.clk_set_min_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}(hj5|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjN|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJ|ubj)}(h h]h }(hj\|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ|ubj )}(hlongh]hlong}(hjj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJ|ubj)}(h h]h }(hjx|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ|ubjm)}(hrateh]hrate}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj{hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{hMtubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMthj{hhubj)}(hhh]h)}(h+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMthj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjhNhNubj)}(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)}(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.hhMuhj|ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMuhj}ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hMuhj|ubj)}(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.hhMvhj$}ubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjC}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?}hMvhj@}ubah}(h]h ]h"]h$]h&]uh1jhj$}ubeh}(h]h ]h"]h$]h&]uh1jhj?}hMvhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hje}h]h Description}(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:389: ./include/linux/clk.hhMxhj|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.hhMwhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h:int clk_set_max_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_max_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhj}hM}ubjg)}(hclk_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&]jjuh1jfhj}hhhj}hM}ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(hclkh]hclk}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE j}sbc.clk_set_max_rateasbuh1hhj}ubj)}(h h]h }(hj%~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hj3~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hclkh]hclk}(hj@~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hunsigned long rateh](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 )}(hlongh]hlong}(hju~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjU~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjU~ubjm)}(hrateh]hrate}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU~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 a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM}hj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired maximum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj~ubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj~h]hstruct clk *clk}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM~hj~ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM~hj~ubj)}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hj5h]hunsigned long rate}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj/ubj)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj~ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj~ubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_parent (C function)c.clk_set_parenthNtauh1hhjhhhNhNubh)}(hhh](j)}(h8int clk_set_parent (struct clk *clk, struct clk *parent)h]j)}(h7int clk_set_parent(struct clk *clk, struct clk *parent)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_set_parenth]jm)}(hclk_set_parenth]hclk_set_parent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h%(struct clk *clk, struct clk *parent)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_set_parentasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *parenth](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``struct clk *parent`` parent clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj&h]hstruct clk *clk}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hj_h]hstruct clk *parent}(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.hhMhjYubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_parent (C function)c.clk_get_parenthNtauh1hhjhhhNhNubh)}(hhh](j)}(h-struct clk * clk_get_parent (struct clk *clk)h]j)}(h+struct clk *clk_get_parent(struct clk *clk)h](j)}(hj6}h]hstruct}(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjہhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjہhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_parentsbc.clk_get_parentasbuh1hhjہhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjہhhhjhMubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjہhhhjhMubjg)}(hclk_get_parenth]jm)}(hjh]hclk_get_parent}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjہhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hclkh]hclk}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jc.clk_get_parentasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjہhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjׁhhhjhMubah}(h]jҁah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjԁhhubj)}(hhh]h)}(h*get the parent clock source for this clockh]h*get the parent clock source for this clock}(hjڂhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjׂhhubah}(h]h ]h"]h$]h&]uh1jhjԁhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_sys (C function) c.clk_get_syshNtauh1hhjhhhNhNubh)}(hhh](j)}(hAstruct clk * clk_get_sys (const char *dev_id, const char *con_id)h]j)}(h?struct clk *clk_get_sys(const char *dev_id, const char *con_id)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_syssb c.clk_get_sysasbuh1hhjhhhjhMubj)}(h h]h }(hjۃhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h clk_get_sysh]jm)}(hj؃h]h clk_get_sys}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h((const char *dev_id, const char *con_id)h](j)}(hconst char *dev_idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdev_idh]hdev_id}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *con_idh](j)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&get a clock based upon the device nameh]h&get a clock based upon the device name}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX4**Parameters** ``const char *dev_id`` device name ``const char *con_id`` connection ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification. Drivers must assume that the clock source is not enabled. clk_get_sys should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh](j)}(h#``const char *dev_id`` device name h](j)}(h``const char *dev_id``h]j)}(hj!h]hconst char *dev_id}(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 device nameh]h device name}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h%``const char *con_id`` connection ID h](j)}(h``const char *con_id``h]j)}(hjZh]hconst char *con_id}(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)}(h connection IDh]h connection ID}(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)}(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}(hjŅhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjޅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h?clk_get_sys should not be called from within interrupt context.h]h?clk_get_sys should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_save_context (C function)c.clk_save_contexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj*hMubjg)}(hclk_save_contexth]jm)}(hclk_save_contexth]hclk_save_context}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj)}(hhh]h)}(hsave clock context for poweroffh]hsave clock context for 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&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Saves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjĆh]hvoid}(hjƆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj†ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj݆hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjنhKhjچubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjنhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubh)}(hSaves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.h]hSaves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h clk_restore_context (C function)c.clk_restore_contexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid clk_restore_context (void)h]j)}(hvoid clk_restore_context(void)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(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 }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(hclk_restore_contexth]jm)}(hclk_restore_contexth]hclk_restore_context}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(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&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjÇjjÇjjjuh1hhhhjhNhNubj)}(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.hhMhjLJubj)}(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&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjLJubh)}(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.hhKhjLJubh)}(hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h]hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_drop_range (C function)c.clk_drop_rangehNtauh1hhjhhhNhNubh)}(hhh](j)}(h$int clk_drop_range (struct clk *clk)h]j)}(h#int clk_drop_range(struct clk *clk)h](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhMubjg)}(hclk_drop_rangeh]jm)}(hclk_drop_rangeh]hclk_drop_range}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjLjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĈubah}(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&]jjuh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjahhubj)}(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&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhjhNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjHubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjmh]hstruct clk *clk}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjHubh)}(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.hhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_optional (C function)c.clk_get_optionalhNtauh1hhjhhhNhNubh)}(hhh](j)}(hBstruct clk * clk_get_optional (struct device *dev, const char *id)h]j)}(h@struct clk *clk_get_optional(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhjhMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_get_optionalh]jm)}(hj*h]hclk_get_optional}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j(c.clk_get_optionalasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hconst char *idh](j)}(hjh]hconst}(hj׊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӊubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjӊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӊubjm)}(hidh]hid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.h]hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hX,The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h]hX.The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won’t achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hRCU_LOCKDEP_WARNh]j)}(hRCU_LOCKDEP_WARNh]jg)}(hRCU_LOCKDEP_WARNh]jm)}(hjh]hRCU_LOCKDEP_WARN}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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_LOCKDEP_WARN (c, s)``h]j)}(hjˑh]hRCU_LOCKDEP_WARN (c, s)}(hj͑hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɑubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj?hhubj)}(h1emit lockdep splat if specified condition is met h]h)}(h0emit lockdep splat if specified condition is meth]h0emit lockdep splat if specified condition is met}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj?hhubj)}(hX**Parameters** ``c`` condition to check ``s`` informative message **Description** This checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h``c`` condition to check h](j)}(h``c``h]j)}(hjh]hc}(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)}(hcondition to checkh]hcondition to check}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h``s`` informative message h](j)}(h``s``h]j)}(hjXh]hs}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjRubj)}(hhh]h)}(hinformative messageh]hinformative message}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hXOThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h]hXSThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd (“rcu: Reject RCU_LOCKDEP_WARN() false positives”) for more detail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]jg)}(hlockdep_assert_in_rcu_read_lockh]jm)}(hjҒh]hlockdep_assert_in_rcu_read_lock}(hjܒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjؒubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjԒhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjВhhhjhMubah}(h]j˒ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj͒hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj͒hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j)}(hjh]h"lockdep_assert_in_rcu_read_lock ()}(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 WARN if not protected by rcu_read_lock() **Description** Splats if lockdep is enabled and there is no rcu_read_lock() in effect. h](j)}(h)WARN if not protected by rcu_read_lock() h]h)}(h(WARN if not protected by rcu_read_lock()h]h(WARN if not protected by rcu_read_lock()}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj:hMhj$ubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj$ubh)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj$ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj?hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,lockdep_assert_in_rcu_read_lock_bh (C macro)$c.lockdep_assert_in_rcu_read_lock_bhhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(h"lockdep_assert_in_rcu_read_lock_bhh]jg)}(h"lockdep_assert_in_rcu_read_lock_bhh]jm)}(hjh]h"lockdep_assert_in_rcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jzah ](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_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)}(hj0h]h%lockdep_assert_in_rcu_read_lock_sched}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjMhMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjMhMhj+hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj+hhhjMhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjfjjfjjjuh1hhhhj?hNhNubh)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjlh]h(lockdep_assert_in_rcu_read_lock_sched ()}(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.hhMhj?hhubj)}(hX WARN if not protected by rcu_read_lock_sched() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required. h](j)}(h/WARN if not protected by rcu_read_lock_sched() h]h)}(h.WARN if not protected by rcu_read_lock_sched()h]h.WARN if not protected by rcu_read_lock_sched()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_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.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]jg)}(hlockdep_assert_in_rcu_readerh]jm)}(hjߔh]hlockdep_assert_in_rcu_reader}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj5ubah}(h]h ]h"]h$]h&]uh1jhjGhMhj1ubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj1ubh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj1ubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$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: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 }(hj~hhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hj~hhhNhNubeh}(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}(hjÖhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(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** ``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,hj$ubj)}(hhh]j)}(h.``v`` The value to statically initialize with.h](j)}(h``v``h]j)}(hjIh]hv}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM.hjCubj)}(hhh]h)}(h(The value to statically initialize with.h]h(The value to statically initialize with.}(hjbhhhNhNubah}(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&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM.hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM/hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM/hj$ubj)}(h ``v`` value to assign (publish) h](j)}(h``v``h]j)}(hjfh]hv}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM0hj`ubj)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM0hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM0hj$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: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.}(hjƘhhhNhNubah}(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.}(hjhhhNhNubah}(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)}(hj h]hrcu_replace_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.hhMXubah}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj*hMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMXhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj*hMXubeh}(h]h ](jmacroeh"]h$]h&]jjjjCjjCjjjuh1hhhhj?hNhNubh)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjIh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXhj_ubah}(h]h ]h"]h$]h&]uh1jhjqhMXhj?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)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM\hjxubj)}(hhh](j)}(h5``rcu_ptr`` RCU pointer, whose old value is returned h](j)}(h ``rcu_ptr``h]j)}(hjh]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMYhjubj)}(hhh]h)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(h``ptr`` regular pointer h](j)}(h``ptr``h]j)}(hj֙h]hptr}(hjؙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԙubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMZhjЙubj)}(hhh]h)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjЙubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(hI``c`` the lockdep conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM[hj ubj)}(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&]uh1hhj$hM[hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM[hjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM]hjxubh)}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh! is an RCU-annotated pointer and }(hj`hhhNhNubj)}(h**c**h]hc}(hjzhhhNhNubah}(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\hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]jg)}(hrcu_access_pointerh]jm)}(hjh]hrcu_access_pointer}(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&]jjjuh1jjjhjhhhjhMjubah}(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)}(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.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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjhj5ubah}(h]h ]h"]h$]h&]uh1jhjGhMjhj?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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMnhjNubj)}(hhh]j)}(h``p`` The pointer to read h](j)}(h``p``h]j)}(hjsh]hp}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMkhjmubj)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjjubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMmhjNubh)}(hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().h]hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().}(hjěhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMlhjNubh)}(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.hhMvhjNubh)}(hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h]hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM|hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]jg)}(hrcu_dereference_checkh]jm)}(hj h]hrcu_dereference_check}(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 hhhj(hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjAjjAjjjuh1hhhhj?hNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hjGh]hrcu_dereference_check (p, c)}(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)}(h$rcu_dereference with debug checking h]h)}(h#rcu_dereference with debug checkingh]h#rcu_dereference with debug checking}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj]ubah}(h]h ]h"]h$]h&]uh1jhjohMhj?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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjvubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(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&]uh1jhjvubh)}(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.hhMhjvubh)}(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.hhMhjvubh)}(h For example:h]h For example:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjvubj)}(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(}(hjGhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjQh]h foo->lock}(hjShhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjGubh));}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjCubah}(h]h ]h"]h$]h&]uh1jhjnhMhjvubh)}(hcould be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held.h]hcould be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjvubh)}(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.hhMhjvubj)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h]j)}(hhh]j)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h](j)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) ||h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hjhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjh]h foo->lock}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh) ||}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjϝhMhjubj)}(hhh]h)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjݝhhhNhNubh)}(h:c:type:`foo->usage `h]j)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hhjϝhMhjݝubh) == 0);}(hjݝhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjϝhMhjڝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϝhMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjvubh)}(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.hhMhjvubeh}(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)}(hjPh]hrcu_dereference_bh_check}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjmhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhMubeh}(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}(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)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޞubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(hj2hhhNhNubah}(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)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjjhhhNhNubah}(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&]jjjjɟjjɟjjjuh1hhhhj?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)}(hj#h]hp}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjVubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubeh}(h]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_protected (C macro)c.rcu_dereference_protectedhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]jg)}(hrcu_dereference_protectedh]jm)}(hj֠h]hrcu_dereference_protected}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܠubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjؠhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjԠhhhjhMubah}(h]jϠah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjѠhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjѠhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhj?hNhNubh)}(h$``rcu_dereference_protected (p, c)``h]j)}(hjh]h rcu_dereference_protected (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(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)}(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)}(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:398: ./include/linux/rcupdate.hhMhjAubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjfh]hp}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj`ubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]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}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjAubh)}(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 }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjAubh)}(hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h]hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjAubeh}(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)}(hj:h]hrcu_dereference}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjWhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhj?hNhNubh)}(h``rcu_dereference (p)``h]j)}(hjvh]hrcu_dereference (p)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj?hhubj)}(h.fetch RCU-protected pointer for dereferencing h]h)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj?hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** This is a simple wrapper around rcu_dereference_check().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjʢh]hp}(hj̢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȢubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjĢubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߢhMhjubah}(h]h ]h"]h$]h&]uh1jhjĢubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h8This is a simple wrapper around rcu_dereference_check().h]h8This is a simple wrapper around rcu_dereference_check().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjDh]hrcu_dereference_bh}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjahMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjahMhj?hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj?hhhjahMubeh}(h]h ](jmacroeh"]h$]h&]jjjjzjjzjjjuh1hhhhj?hNhNubh)}(h``rcu_dereference_bh (p)``h]j)}(hjh]hrcu_dereference_bh (p)}(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)}(h4fetch an RCU-bh-protected pointer for dereferencing h]h)}(h3fetch an RCU-bh-protected pointer for dereferencingh]h3fetch an RCU-bh-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]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.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ˣubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjNh]hrcu_dereference_sched}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjkhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h``rcu_dereference_sched (p)``h]j)}(hjh]hrcu_dereference_sched (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj?hhubj)}(h4fetch RCU-sched-protected pointer for dereferencing h]h)}(h3fetch RCU-sched-protected pointer for dereferencingh]h3fetch RCU-sched-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj?hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܤubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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դubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjXh]hrcu_pointer_handoff}(hjbhhhNhNubah}(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&]jjjuh1jjjhjVhhhjuhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjuhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h``rcu_pointer_handoff (p)``h]j)}(hjh]hrcu_pointer_handoff (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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)}(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``p`` The pointer to hand off h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hThe pointer to hand offh]hThe pointer to hand off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjߥ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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjåubh)}(hThis is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows::h]hThis is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows:}(hj9hhhNhNubah}(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();}hjHsbah}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhh]/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&]uh1jhjshhhjhMubjg)}(h rcu_read_lockh]jm)}(h rcu_read_lockh]h rcu_read_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhMubj)}(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&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjlhhubj)}(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.hhMhjۦhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.h]hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.h]hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM"hjubh)}(hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.h]hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM&hjubh)}(hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.h]hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM2hjubh)}(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.hhM6hjubh)}(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.hhM;hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMYubjg)}(hrcu_read_unlockh]jm)}(hrcu_read_unlockh]hrcu_read_unlock}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMYubj)}(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&]jjuh1jhjhhhjhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMYubah}(h]jݧah ](jjeh"]h$]h&]jj)jhuh1hhjhMYhjߧhhubj)}(hhh]h)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMYhjNhhubah}(h]h ]h"]h$]h&]uh1jhjߧhhhjhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj?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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM]hjmubj)}(hhh]j)}(h``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&]uh1jhjmubh)}(h**Description**h]j)}(hjͨh]h Description}(hjϨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˨ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjmubh)}(hX!In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.h]hX#In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler’s runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMZhjmubh)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM`hjmubeh}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMmubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hMmubjg)}(hrcu_read_lock_bhh]jm)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hMmubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hMmhjhhubj)}(hhh]h)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMmubeh}(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.hhMqhjubj)}(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&]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)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.h]hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMnhjubh)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMthjubeh}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhMubjg)}(hrcu_read_unlock_bhh]jm)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhMubj)}(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&]jjuh1jhjThhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjMhhubj)}(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&]uh1jhjMhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjתjjתjjjuh1hhhhj?hNhNubj)}(hf**Parameters** ``void`` no arguments **Description** See rcu_read_lock_bh() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(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&]uh1jhj۪ubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjQhhhNhNubah}(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 hj|hhh]/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&]uh1jhj|hhhjhMubjg)}(hrcu_read_lock_schedh]jm)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|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&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]h)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(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)}(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}(hjAhhhNhNubah}(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)}(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.hhKhjubh)}(hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.h]hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h]hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.}(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_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 }(hjƬhhhNhNubah}(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&]uh1jlhjԬubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjŬhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjŬhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjŬhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjŬhMhjhhubj)}(hhh]h)}(h/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŬhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhj?hNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() for more information.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj_h]hvoid}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjYubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKhjVubah}(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_sched() for more information.h]h/See rcu_read_lock_sched() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj߭ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjۭhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj׭hhhjhMubah}(h]jҭah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjԭhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjԭhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h``RCU_INIT_POINTER (p, v)``h]j)}(hjh]hRCU_INIT_POINTER (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj?hhubj)}(h$initialize an RCU protected pointer h]h)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(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)}(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)}(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:398: ./include/linux/rcupdate.hhMhjDubj)}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hjih]hp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjcubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(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&]uh1jhjhMhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjݮh]h Description}(hj߮hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۮubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjDubh)}(hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:h]hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjDubjG)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]h)}(hjh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hj hhhNhNubj)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(huThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or*h]h)}(huThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or*h](hqThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer }(hj/hhhNhNubj)}(h*or*h]hor}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(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&]uh1jhjubj)}(hXThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h](h)}(hzThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and*h](huThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() }(hjVhhhNhNubj)}(h*and*h]hand}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjRubjG)}(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 }(hjzhhhNhNubj)}(h*any*h]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh5 reader-visible changes to this structure since then }(hjzhhhNhNubj)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjvubah}(h]h ]h"]h$]h&]uh1jhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]jiHj|jkHhjlHjmHuh1jGhjRubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjjHjkHhjlHjmHuh1jGhjDubh)}(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.hhMhjDubh)}(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 }(hjhhhNhNubj)}(h*after*h]hafter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX you have completely initialized the reader-accessible portions of the linked structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjDubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjDubeh}(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)}(hj3h]hRCU_POINTER_INITIALIZER}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjPhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhjPhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjijjijjjuh1hhhhj?hNhNubh)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j)}(hjoh]hRCU_POINTER_INITIALIZER (p, v)}(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.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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjܰhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjذhMhjٰubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjذhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(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](hkfree_rcu (C macro) c.kfree_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h kfree_rcuh]j)}(h kfree_rcuh]jg)}(h kfree_rcuh]jm)}(hjvh]h kfree_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]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.hhMhj?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.}(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)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h:``ptr`` pointer to kfree for double-argument invocations. h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j)}(h``rhf``h]j)}(hj?h]hrhf}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj9ubj)}(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 }(hjXhhhNhNubj)}(h**ptr**h]hptr}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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)}(hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.h]hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.h]hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.hhMhjubh)}(hrcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU. Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h](h)}(h**Parameters**h]j)}(hjξh]h Parameters}(hjоhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̾ubah}(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``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&]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:400: ./kernel/rcu/tree.chKhjȾubh)}(hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn't. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.h]hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn’t. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM}hjȾubh)}(hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU's ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.h]hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU’s ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU’s quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjȾubh)}(hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h]hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjȾubeh}(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 hjտubah}(h]h ]h"]h$]h&]noemphjjuh1jhjѿubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXo**Parameters** ``void`` no arguments **Description** Return **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections. Although calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**. Make notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.h](h)}(h**Parameters**h]j)}(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.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjDh]hvoid}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]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&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(hReturn **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections.h](hReturn }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( if RCU is watching the running CPU and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. An }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM return means that this CPU can safely enter RCU read-side critical sections.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(hXAlthough calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**.h](hNAlthough calls to rcu_is_watching() from most parts of the kernel will return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(hMake notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.h]hMake notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhj?hhhNhNubh)}(hhh](j)}(h/void rcu_set_gpwrap_lag (unsigned long lag_gps)h]j)}(h.void rcu_set_gpwrap_lag(unsigned long lag_gps)h](j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhM ubjg)}(hrcu_set_gpwrap_lagh]jm)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhM ubj)}(h(unsigned long lag_gps)h]j)}(hunsigned long lag_gpsh](j )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(hlag_gpsh]hlag_gps}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhM hj1hhubj)}(hhh]h)}(h'Set RCU GP sequence overflow lag value.h]h'Set RCU GP sequence overflow lag value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj)}(hhh]j)}(h``unsigned long lag_gps`` Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](j)}(h``unsigned long lag_gps``h]j)}(hjh]hunsigned long lag_gps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]h)}(hSet overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h~Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. }(hj5hhhNhNubj)}(h **lag_gps**h]hlag_gps}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh3 = 0 means we reset it back to the boot-time value.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chMT ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMT ubjg)}(hcall_rcu_hurryh]jm)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMT ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_hurryasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jc.call_rcu_hurryasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hfunch]hfunc}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMT ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMT ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMT hj}hhubj)}(hhh]h)}(hQueue RCU callback for invocation after grace period, and flush all lazy callbacks (including the new one) to the main ->cblist while doing so.h]hQueue RCU callback for invocation after grace period, and flush all lazy callbacks (including the new one) to the main ->cblist while doing so.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMT hjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMT 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.chMX hjubj)}(hhh](j)}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *head``h]j)}(hjh]hstruct rcu_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMX hjubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMX hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMX 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)}(hj h]hrcu_callback_t func}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMY hjubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMY hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMY 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM[ hjubh)}(hThe callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed.h]hThe callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMZ hjubh)}(hXUse this API instead of call_rcu() if you don't want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()'s logic. Refer to call_rcu() for more details about memory ordering and other functionality.h]hXUse this API instead of call_rcu() if you don’t want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()’s logic. Refer to call_rcu() for more details about memory ordering and other functionality.}(hjjhhhNhNubah}(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](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.chMq ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMq ubjg)}(hcall_rcuh]jm)}(hcall_rcuh]hcall_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMq ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 jsb c.call_rcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hj/hhhNhNubah}(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}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]j c.call_rcuasbuh1hhjDubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hfunch]hfunc}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMq ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMq ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMq hjhhubj)}(hhh]h)}(hQueue an RCU callback for invocation after a grace period. By default the callbacks are 'lazy' and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().h]hXQueue an RCU callback for invocation after a grace period. By default the callbacks are ‘lazy’ and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMq hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMq ubeh}(h]h ](jfunctioneh"]h$]h&]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)}(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.chMu hjubj)}(hhh](j)}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *head``h]j)}(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.chMv hjubj)}(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&]uh1hhjhMv hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMv hjubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMw hjubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMw hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMw 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy hjubh)}(hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.h]hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMx hjubh)}(hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.h]hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM~ hjubh)}(hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.h]hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when "func()" is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of "func()" must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when “func()” is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of “func()” must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXkFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function "func()", then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of "func()" -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).h]hXsFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function “func()”, then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of “func()” -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h]hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().h]hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().}(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}(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)}(hsynchronize_rcuh]jm)}(hsynchronize_rcuh]hsynchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h&wait until a grace period has elapsed.h]h&wait until a grace period has elapsed.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj?hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting. RCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers. Note that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU). Implementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubj)}(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&]uh1jhjxubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjxubh)}(hXqControl will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting.h]hXqControl will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubh)}(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 hjxubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubh)}(hX3Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).h]hX3Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubh)}(hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h]hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubeh}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5 ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghM5 ubjg)}(h"get_completed_synchronize_rcu_fullh]jm)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_synchronize_rcu_full}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghM5 ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j|sb$c.get_completed_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&]jjuh1jhjUhhhjghM5 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghM5 ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghM5 hjNhhubj)}(hhh]h)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5 hjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghM5 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhj?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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM9 hj5ubj)}(hhh]j)}(h<``struct rcu_gp_oldstate *rgosp`` Place to put state cookie h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjZh]hstruct rcu_gp_oldstate *rgosp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM6 hjTubj)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM6 hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM6 hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM8 hj5ubh)}(hStores into **rgosp** a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.h](h Stores into }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM7 hj5ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMD ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMD ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMD ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMD ubjg)}(hget_state_synchronize_rcuh]jm)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMD ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMD ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMD hjhhubj)}(hhh]h)}(hSnapshot current RCU stateh]hSnapshot current RCU state}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMD hjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMD 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.chMH hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(hReturns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.h]hReturns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chME 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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMV ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hMV ubjg)}(hget_state_synchronize_rcu_fullh]jm)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMV ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(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 jSsb c.get_state_synchronize_rcu_fullasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMV ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMV ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMV hj%hhubj)}(hhh]h)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMV hjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMV ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(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.chMZ hj ubj)}(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)}(hj1h]hstruct rcu_gp_oldstate *rgosp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMW hj+ubj)}(hhh]h)}(h>location to place combined normal/expedited grace-period stateh]h>location to place combined normal/expedited grace-period state}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMW hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMW hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMY hj ubh)}(hXPlaces the normal and expedited grace-period states in **rgosp**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_oldstate structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account.h](h7Places the normal and expedited grace-period states in }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_oldstate structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMX hj ubh)}(hIThis does not guarantee that the needed grace period will actually start.h]hIThis does not guarantee that the needed grace period will actually start.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMa hj ubeh}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hstart_poll_synchronize_rcuh]jm)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhj?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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjqubj)}(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&]uh1jhjqubh)}(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.chKhjqubh)}(hX%Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h]hX%Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hDvoid start_poll_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hCvoid start_poll_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hM ubjg)}(hstart_poll_synchronize_rcu_fullh]jm)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE j9sb!c.start_poll_synchronize_rcu_fullasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hrgosph]hrgosp}(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/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&]uh1jhj hhhj$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(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()}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXPlaces the normal and expedited grace-period states in ***rgos**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h7Places the normal and expedited grace-period states in }(hjhhhhNhNubj)}(h ***rgos**h]h*rgos}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubhXK. 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.}(hjhhhhNhNubeh}(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 (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&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](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)}(holdstateh]holdstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhj?hNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubj)}(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&]uh1jhjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubh)}(hX'If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.h](hIIf a full RCU grace period has elapsed since the earlier call from which }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was obtained, return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, otherwise return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjhhhNhNubj)}(h**true**h]htrue}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubh)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubh)}(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 }(hjrhhhNhNubj)}(h **oldstate**h]holdstate}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh0, and that returned at the end of this function.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjcubeh}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hpoll_state_synchronize_rcu_fullh]jm)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.poll_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hjHhhhNhNubah}(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-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjohhubah}(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)}(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)}(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 }(hjhhhNhNubj)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, otherwise return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **false**h]hfalse}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjhhhNhNubj)}(h**true**h]htrue}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM 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.}(hjmhhhNhNubah}(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 }(hj|hhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubhX, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure’s ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period’s callbacks can be invoked between the time that the root rcu_node structure’s ->gp_seq field is updated and the time that the rcu_state structure’s ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return }(hj|hhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubhF, then the root rcu_node structure is the one that needs to be polled.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hcond_synchronize_rcuh]jm)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(holdstateh]holdstate}(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*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(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&]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: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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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 }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM-ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjmhM-ubjg)}(hcond_synchronize_rcu_fullh]jm)}(hcond_synchronize_rcu_fullh]hcond_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjmhM-ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.cond_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(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&]jjuh1jhj[hhhjmhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhM-ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhM-hjThhubj)}(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.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj?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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM1hj;ubj)}(hhh]j)}(h``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hj`h]hstruct rcu_gp_oldstate *rgosp}(hjbhhhNhNubah}(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.hjZubj)}(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()}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM0hj;ubh)}(hX"If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **rgosp** was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.h](hIf a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM/hj;ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 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.chM5hj;ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM:hj;ubeh}(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}(hj"hhhNhNubah}(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 }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hMubjg)}(h rcu_barrierh]jm)}(h rcu_barrierh]h rcu_barrier}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj0hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhjhhubj)}(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&]uh1jhjhhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXX**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.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h!void rcu_barrier_throttled (void)h]j)}(h void rcu_barrier_throttled(void)h](j )}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM?ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhM?ubjg)}(hrcu_barrier_throttledh]jm)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhM?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&]jjuh1jhjFhhhjXhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhM?ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhM?hj?hhubj)}(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&]uh1jhj?hhhjXhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(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.chMChjubj)}(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}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(hXBThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.h]hXDThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware’s try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM@hjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMFhjubh)}(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!}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMJhjubeh}(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}(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)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Wait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately. Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead. This has the same semantics as (but is more brutal than) synchronize_rcu().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj8h]hvoid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhj2ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhjubh)}(hXWait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately.h]hXWait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubh)}(hX`Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead.h]hX`Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubh)}(hKThis has the same semantics as (but is more brutal than) synchronize_rcu().h]hKThis has the same semantics as (but is more brutal than) synchronize_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]j)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](j )}(hunsignedh]hunsigned}(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&]uh1jhjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h$start_poll_synchronize_rcu_expeditedh]jm)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]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;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state and start expedited grace period}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhj?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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjuubj)}(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&]uh1jhjuubh)}(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.hhKhjuubh)}(hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hNvoid start_poll_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]j)}(hMvoid start_poll_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hMubjg)}(h)start_poll_synchronize_rcu_expedited_fullh]jm)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hMubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(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 j=sb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(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)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubj)}(hhh]j)}(hN``struct rcu_gp_oldstate *rgosp`` Place to put snapshot of grace-period state h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubj)}(hhh]h)}(h+Place to put snapshot of grace-period stateh]h+Place to put snapshot of grace-period state}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubh)}(hXyPlaces the normal and expedited grace-period states in rgosp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXyPlaces the normal and expedited grace-period states in rgosp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hjlhhhNhNubah}(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](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)}(hjCh]hvoid}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj=ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhj: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: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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKJubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKJubjg)}(hget_completed_synchronize_srcuh]jm)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKJubj)}(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&]jjuh1jhjhhhjhKJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKJhjhhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKJhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1hhhhj?hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKNhjbubj)}(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&]uh1jhjhKhj~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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjbubh)}(hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h]hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hSbool same_state_synchronize_srcu (unsigned long oldstate1, unsigned long oldstate2)h]j)}(hRbool same_state_synchronize_srcu(unsigned long oldstate1, unsigned long oldstate2)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK]ubjg)}(hsame_state_synchronize_srcuh]jm)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK]ubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubjm)}(h oldstate1h]h oldstate1}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hunsigned long oldstate2h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h oldstate2h]h oldstate2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK]ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK]hjhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK]hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK]ubeh}(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.hhKahjubj)}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hj7h]hunsigned long oldstate1}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK^hj1ubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhK^hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhK^hj.ubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hjph]hunsigned long oldstate2}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK_hjjubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhK_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:406: ./include/linux/srcu.hhKahjubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK`hjubeh}(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 }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj"hKubjg)}(hsrcu_read_lock_heldh]jm)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hKubj)}(h(const struct srcu_struct *ssp)h]j)}(hconst struct srcu_struct *ssph](j)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hj6}h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(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 j7sbc.srcu_read_lock_heldasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hKhj hhubj)}(hhh]h)}(h/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXj**Parameters** ``const struct srcu_struct *ssp`` The srcu_struct structure to check **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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)}(hj0h]hconst struct srcu_struct *ssp}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj*ubj)}(hhh]h)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj'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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubh)}(hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.h]hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubh)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubh)}(hNote that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h]hNote that SRCU is based on its own statemachine and it doesn’t relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjh]hsrcu_dereference_check}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h&``srcu_dereference_check (p, ssp, c)``h]j)}(hjh]h"srcu_dereference_check (p, ssp, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj?hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj3ubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjXh]hp}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjRubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjOubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hjh]hssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjOubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh]h)}(h&condition to check for update-side useh]h&condition to check for update-side use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjOubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj3ubh)}(hIf PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless **c** evaluates to 1. The **c** argument will normally be a logical expression containing lockdep_is_held() calls.h](hIf PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless }(hjhhhNhNubj)}(h**c**h]hc}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh evaluates to 1. The }(hjhhhNhNubj)}(h**c**h]hc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj3ubeh}(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)}(hjih]hsrcu_dereference}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjhKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hjh]hsrcu_dereference (p, ssp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj?hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj?hhubj)}(hX**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. **Description** Makes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hj2h]hssp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h]hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjh]hsrcu_dereference_notrace}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h%``srcu_dereference_notrace (p, ssp)``h]j)}(hjh]h!srcu_dereference_notrace (p, ssp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj?hhubj)}(h**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.hhKhjubj)}(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.hhKhj7ubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj4ubj)}(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)}(hjvh]hssp}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjpubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhj4ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_lock (C function)c.srcu_read_lockhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h,int srcu_read_lock (struct srcu_struct *ssp)h]j)}(h+int srcu_read_lock(struct srcu_struct *ssp)h](j )}(hinth]hint}(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_lockh]jm)}(hsrcu_read_lockh]hsrcu_read_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(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_lockasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjehhhNhNubah}(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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(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. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). The return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(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.hhKhjubj)}(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&]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)}(hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().h]hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(hXThe return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.h]hXThe return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_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)}(hj6}h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjlhMubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhj[hhhjlhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjlhMubh__percpu}(hj[hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjlhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjlhMubjg)}(hsrcu_read_lock_fasth]jm)}(hjh]hsrcu_read_lock_fast}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjlhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.srcu_read_lock_fastasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj[hhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjlhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjThhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjihhubah}(h]h ]h"]h$]h&]uh1jhjThhhjlhMubeh}(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. If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. Note that srcu_read_lock_fast() can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h](h)}(h**Parameters**h]j)}(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)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information.h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.h]hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hNote that srcu_read_lock_fast() can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h]hNote that srcu_read_lock_fast() can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.}(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_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)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjXhMubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjGhhhjXhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjXhMubh__percpu}(hjGhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjXhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjXhMubjg)}(hsrcu_down_read_fasth]jm)}(hjh]hsrcu_down_read_fast}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjXhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.srcu_down_read_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!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&]jjuh1jhjGhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjXhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhj@hhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjUhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhj?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().h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM!hjtubj)}(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&]uh1jhjtubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjtubh)}(hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.h]hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjtubh)}(haThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast().h]haThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM#hjtubeh}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM/ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj6hM/ubjg)}(hsrcu_read_lock_nmisafeh]jm)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hM/ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.srcu_read_lock_nmisafeasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hM/hjhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hM/ubeh}(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)}(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.hhM3hjubj)}(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.hhM0hj#ubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM0hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM0hj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM2hjubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM1hjubh)}(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.hhM4hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMOubjg)}(hsrcu_down_readh]jm)}(hsrcu_down_readh]hsrcu_down_read}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMOubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_down_readasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMOhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMOubeh}(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}(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.hhMShjubj)}(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.hhMPhjubj)}(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&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubah}(h]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.hhMRhjubh)}(hXEnter a semaphore-like SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). But if you want lockdep to help you keep this stuff straight, you should instead use srcu_read_lock().h]hXEnter a semaphore-like SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). But if you want lockdep to help you keep this stuff straight, you should instead use srcu_read_lock().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQhjubh)}(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.hhMZhjubh)}(hCalls to srcu_down_read() may be nested, similar to the manner in which calls to down_read() may be nested. The same srcu_struct may be used concurrently by srcu_down_read() and srcu_read_lock().h]hCalls to srcu_down_read() may be nested, similar to the manner in which calls to down_read() may be nested. The same srcu_struct may be used concurrently by srcu_down_read() and srcu_read_lock().}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_hjubeh}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMlubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjehMlubjg)}(hsrcu_read_unlockh]jm)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjehMlubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jzsbc.srcu_read_unlockasbuh1hhjubj)}(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&]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}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjehMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjehMlubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMlhjLhhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMlhjIhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj?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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMphjhubj)}(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.hhMmhjubj)}(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&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjh]hint idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMnhjubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMphjhubh)}(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.hhMohjhubeh}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM|ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThM|ubjg)}(hsrcu_read_unlock_fasth]jm)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThM|ubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.srcu_read_unlock_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.srcu_read_unlock_fastasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscph]hscp}(hj^hhhNhNubah}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM|hjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM}hjubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(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.hhM~hjubj)}(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&]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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hjShhhNhNubah}(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_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}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhMubjg)}(hsrcu_up_read_fasth]jm)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_up_read_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jc.srcu_up_read_fastasbuh1hhj-ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh__percpu}(hj-hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hscph]hscp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(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&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(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.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)}(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.hhMhj8ubj)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubeh}(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)}(hxExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().h]hxExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhj?hhhNhNubh)}(hhh](j)}(h@void srcu_read_unlock_nmisafe (struct srcu_struct *ssp, int idx)h]j)}(h?void srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(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_nmisafeh]jm)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_unlock_nmisafeasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint idxh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hidxh]hidx}(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)}(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_nmisafe(). **Description** Exit an SRCU read-side critical section, but in an NMI-safe manner.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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j)}(h ``int idx``h]j)}(hj- h]hint idx}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj' ubj)}(hhh]h)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB hMhjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh h]h Description}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hCExit an SRCU read-side critical section, but in an NMI-safe manner.h]hCExit an SRCU read-side critical section, but in an NMI-safe manner.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read (C function)c.srcu_up_readhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h4void srcu_up_read (struct srcu_struct *ssp, int idx)h]j)}(h3void srcu_up_read(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(h srcu_up_readh]jm)}(h srcu_up_readh]h srcu_up_read}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.srcu_up_readasbuh1hhj ubj)}(h h]h }(hj( hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj6 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 ubj)}(hint idxh](j )}(hinth]hint}(hj\ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX ubj)}(h h]h }(hjj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX ubjm)}(hidxh]hidx}(hjx hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj?hNhNubj)}(hX'**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock(). **Description** Exit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj h]hstruct srcu_struct *ssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hj h]hint idx}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 hMhj2 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hMhj ubeh}(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.hhMhj 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().}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h*void smp_mb__after_srcu_read_unlock (void)h]j)}(h)void smp_mb__after_srcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hsmp_mb__after_srcu_read_unlockh]jm)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(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 hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj 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.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(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.hhMhj ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjD h]hvoid}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubah}(h]h ]h"]h$]h&]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&]uh1hhjY hKhjZ ubah}(h]h ]h"]h$]h&]uh1jhj> ubeh}(h]h ]h"]h$]h&]uh1jhjY 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)}(hFConverts the preceding srcu_read_unlock into a two-way memory barrier.h]hFConverts the preceding srcu_read_unlock into a two-way memory barrier.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubh)}(hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.h]hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj 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.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(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 hMubj)}(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 hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj 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.hhMhj7 hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR jjR 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&]uh1jhjZ ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjV ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj{ h]hvoid}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhju ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhju ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjr ubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjV 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.hhMhjV 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.hhMhjV 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 hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM.ubjg)}(hinit_srcu_structh]jm)}(hinit_srcu_structh]hinit_srcu_struct}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM.ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE j-sbc.init_srcu_structasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM.ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhjhM.hj hhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM.hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhjhM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Must invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM2hjubj)}(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.chM/hjubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(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)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM1hjubh)}(hMust invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hMust invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM;ubjg)}(hsrcu_readers_activeh]jm)}(hsrcu_readers_activeh]hsrcu_readers_active}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM;ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_readers_activeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(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&]jjuh1jhjhhhjhM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM;ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhM;hjhhubj)}(hhh]h)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM;hjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhj?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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM?hjfubj)}(hhh]j)}(h```struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM=hjubj)}(hhh]h)}(hCwhich srcu_struct to count active readers (holding srcu_read_lock).h]hCwhich srcu_struct to count active readers (holding srcu_read_lock).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM?hjfubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM>hjfubeh}(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 hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hcleanup_srcu_structh]jm)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE j.sbc.cleanup_srcu_structasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(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!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(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}(hjhhhNhNubah}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubah}(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:408: ./kernel/rcu/srcutree.chMhjubh)}(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.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMsubjg)}(h call_srcuh]jm)}(h call_srcuh]h call_srcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMsubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.call_srcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_head *rhph](j)}(hj6}h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]j c.call_srcuasbuh1hhj7ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(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 ]j c.call_srcuasbuh1hhjubj)}(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&]jjuh1jhjhhhjhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMshjhhubj)}(hhh]h)}(h:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an SRCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMshjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in queue the callback ``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. ``rcu_callback_t func`` function to be invoked after the SRCU grace period **Description** The callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested. The callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMwhj ubj)}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j)}(h``struct srcu_struct *ssp``h]j)}(hjEh]hstruct srcu_struct *ssp}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMthj?ubj)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMthj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMthj<ubj)}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hj~h]hstruct rcu_head *rhp}(hjhhhNhNubah}(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.chMuhjxubj)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMuhj<ubj)}(hK``rcu_callback_t func`` function to be invoked after the SRCU 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMvhjubj)}(hhh]h)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhj<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:408: ./kernel/rcu/srcutree.chMxhj ubh)}(hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.h]hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMwhj ubh)}(hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.h]hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj ubh)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(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'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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjchMubjg)}(hsynchronize_srcu_expeditedh]jm)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjchMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jxsbc.synchronize_srcu_expeditedasbuh1hhjubj)}(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&]jjuh1jhjQhhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjchMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjJhhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj?hNhNubj)}(hXQ**Parameters** ``struct srcu_struct *ssp`` srcu_struct with which to synchronize. **Description** Wait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting. Note that synchronize_srcu_expedited() has the same deadlock and memory-ordering properties as does synchronize_srcu().h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj1ubj)}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjVh]hstruct srcu_struct *ssp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjPubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj1ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj1ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj1ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsynchronize_srcuh]jm)}(hsynchronize_srcuh]hsynchronize_srcu}(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)}(hj6}h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.synchronize_srcuasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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 - }(hj7hhhNhNubh)}(h:c:type:`ssp->sda `h]j)}(hjAh]hssp->sda}(hjChhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jsspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj7ubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hMhjubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.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)}(hget_state_synchronize_srcuh]jm)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.get_state_synchronize_srcuasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(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:408: ./kernel/rcu/srcutree.chMhjubh)}(hX>This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller's responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().h]hX@This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller’s responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.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)}(hstart_poll_synchronize_srcuh]jm)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.start_poll_synchronize_srcuasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjAhhhNhNubah}(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%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie 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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjubeh}(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}(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(hhhj9hMubjg)}(hpoll_state_synchronize_srcuh]jm)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj9hMubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(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 jNsbc.poll_state_synchronize_srcuasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hunsigned long cookieh](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)}(hcookieh]hcookie}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj!hhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhj?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.chM#hjXubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM hjwubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhM hjtubj)}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j)}(h``unsigned long cookie``h]j)}(hjh]hunsigned long cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM!hjubj)}(hhh]h)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjtubeh}(h]h ]h"]h$]h&]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:408: ./kernel/rcu/srcutree.chM#hjXubh)}(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 }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM"hjXubh)}(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.chM'hjXubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0hjXubeh}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMiubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthMiubjg)}(h srcu_barrierh]jm)}(h srcu_barrierh]h srcu_barrier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthMiubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_barrierasbuh1hhjubj)}(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&]jjuh1jhjbhhhjthMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthMiubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthMihj[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.chMihj#hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMiubeh}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMmhjBubj)}(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)}(hjgh]hstruct srcu_struct *ssp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMohjaubj)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMjhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMohj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.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)}(hsrcu_batches_completedh]jm)}(hsrcu_batches_completedh]hsrcu_batches_completed}(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)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj' hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj8 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5 ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj: modnameN classnameNjI jL )}jO ]jR )}jE j sbc.srcu_batches_completedasbuh1hhj ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hssph]hssp}(hjs 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)}(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&]uh1jhjhhhjhMubeh}(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&]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)}(hReport the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.h]hReport the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.}(hj/!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]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 hjZ!hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKubj)}(h h]h }(hjm!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZ!hhhjl!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&]jjuh1jfhjZ!hhhjl!hKubj)}(h(struct hlist_bl_node *n)h]j)}(hstruct hlist_bl_node *nh](j)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_node}(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}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjZ!hhhjl!hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjV!hhhjl!hKubah}(h]jQ!ah ](jjeh"]h$]h&]jj)jhuh1hhjl!hKhjS!hhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj"hhubah}(h]h ]h"]h$]h&]uh1jhjS!hhhjl!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5"jj5"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}(hjA"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 hj9"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.hhKhjX"ubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjw"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs"hKhjt"ubah}(h]h ]h"]h$]h&]uh1jhjX"ubeh}(h]h ]h"]h$]h&]uh1jhjs"hKhjU"ubah}(h]h ]h"]h$]h&]uh1jhj9"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.hhKhj9"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.hhKhj9"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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK#hj9"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().}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&hj9"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"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK5ubj)}(h h]h }(hj #hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj #hK5ubjg)}(hhlist_bl_add_head_rcuh]jm)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj #hK5ubj)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j)}(hstruct hlist_bl_node *nh](j)}(hj6}h]hstruct}(hj9#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5#ubj)}(h h]h }(hjF#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5#ubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_node}(hjW#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjY#modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.hlist_bl_add_head_rcuasbuh1hhj5#ubj)}(h h]h }(hjw#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5#ubjm)}(hjyh]hn}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1#ubj)}(hstruct hlist_bl_head *hh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(h hlist_bl_headh]h hlist_bl_head}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]js#c.hlist_bl_add_head_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)}(hhh]hh}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1#ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj #hK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj #hK5ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj #hK5hj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhj #hK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4$jj4$jjjuh1hhhhj?hNhNubj)}(hX**Parameters** ``struct hlist_bl_node *n`` the element to add to the hash list. ``struct hlist_bl_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_bl, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(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.hhK9hj8$ubj)}(hhh](j)}(hA``struct hlist_bl_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_bl_node *n``h]j)}(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.hhK6hjW$ubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjv$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr$hK6hjs$ubah}(h]h ]h"]h$]h&]uh1jhjW$ubeh}(h]h ]h"]h$]h&]uh1jhjr$hK6hjT$ubj)}(h0``struct hlist_bl_head *h`` the list to add to. h](j)}(h``struct hlist_bl_head *h``h]j)}(hj$h]hstruct hlist_bl_head *h}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK7hj$ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hK7hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hK7hjT$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:410: ./include/linux/rculist_bl.hhK9hj8$ubh)}(hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.h]hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hj8$ubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK` to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_bl_node within the struct.h](h)}(h**Parameters**h]j)}(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)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hj%h]htpos}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKYhj%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%hKYhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKYhj%ubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj%h]hpos}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKZhj%ubj)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hj&hhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hj &h]hstruct hlist_bl_node}(hj &hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj &ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j hlist_bl_nodeuh1hhj%hKZhj&ubh to use as a loop cursor.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hKZhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKZhj%ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjD&h]hhead}(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:410: ./include/linux/rculist_bl.hhK[hj>&ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj]&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY&hK[hjZ&ubah}(h]h ]h"]h$]h&]uh1jhj>&ubeh}(h]h ]h"]h$]h&]uh1jhjY&hK[hj%ubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hj}&h]hmember}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK]hjw&ubj)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hj&ubah}(h]h ]h"]h$]h&]uh1jhjw&ubeh}(h]h ]h"]h$]h&]uh1jhj&hK]hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(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)}(hj&h]h list_tail_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.hhK.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hK.ubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hK.hj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhj&hK.ubeh}(h]h ](jmacroeh"]h$]h&]jjjj'jj'jjjuh1hhhhj?hNhNubh)}(h``list_tail_rcu (head)``h]j)}(hj 'h]hlist_tail_rcu (head)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj?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}(hj''hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.hj#'ubah}(h]h ]h"]h$]h&]uh1jhj5'hK.hj?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)}(hjB'h]h Parameters}(hjD'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK2hj<'ubj)}(hhh]j)}(h``head`` the head of the list h](j)}(h``head``h]j)}(hja'h]hhead}(hjc'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.hhK/hj['ubj)}(hhh]h)}(hthe head of the listh]hthe head of the list}(hjz'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv'hK/hjw'ubah}(h]h ]h"]h$]h&]uh1jhj['ubeh}(h]h ]h"]h$]h&]uh1jhjv'hK/hjX'ubah}(h]h ]h"]h$]h&]uh1jhj<'ubh)}(h**Note**h]j)}(hj'h]hNote}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK1hj<'ubh)}(hThis 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]hThis 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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK1hj<'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_add_rcu (C function)c.list_add_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hAvoid list_add_rcu (struct list_head *new, struct list_head *head)h]j)}(h@void list_add_rcu(struct list_head *new, struct list_head *head)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKdubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hKdubjg)}(h list_add_rcuh]jm)}(h list_add_rcuh]h list_add_rcu}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hKdubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj+(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h list_headh]h list_head}(hj<(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>(modnameN classnameNjI jL )}jO ]jR )}jE j(sbc.list_add_rcuasbuh1hhj(ubj)}(h h]h }(hj\(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hnewh]hnew}(hjw(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hstruct list_head *headh](j)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h list_headh]h list_head}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jX(c.list_add_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)}(hheadh]hhead}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj'hKdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj'hKdubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hKdhj'hhubj)}(hhh]h)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKdhj)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hKdubeh}(h]h ](jfunctioneh"]h$]h&]jjjj))jj))jjjuh1hhhhj?hNhNubj)}(hX5**Parameters** ``struct list_head *new`` new entry to be added ``struct list_head *head`` list head to add it after **Description** Insert a new entry after the specified head. This is good for implementing stacks. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hj3)h]h Parameters}(hj5)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhhj-)ubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hjR)h]hstruct list_head *new}(hjT)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKehjL)ubj)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjk)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg)hKehjh)ubah}(h]h ]h"]h$]h&]uh1jhjL)ubeh}(h]h ]h"]h$]h&]uh1jhjg)hKehjI)ubj)}(h5``struct list_head *head`` list head to add it after h](j)}(h``struct list_head *head``h]j)}(hj)h]hstruct list_head *head}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKfhj)ubj)}(hhh]h)}(hlist head to add it afterh]hlist head to add it after}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKfhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hKfhjI)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.hhKhhj-)ubh)}(hRInsert a new entry after the specified head. This is good for implementing stacks.h]hRInsert a new entry after the specified head. This is good for implementing stacks.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKghj-)ubh)}(hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKjhj-)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_add_tail_rcu (C function)c.list_add_tail_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hFvoid list_add_tail_rcu (struct list_head *new, struct list_head *head)h]j)}(hEvoid list_add_tail_rcu(struct list_head *new, struct list_head *head)h](j )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKyubj)}(h h]h }(hj)*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj(*hKyubjg)}(hlist_add_tail_rcuh]jm)}(hlist_add_tail_rcuh]hlist_add_tail_rcu}(hj;*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj(*hKyubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hj6}h]hstruct}(hjW*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS*ubj)}(h h]h }(hjd*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS*ubh)}(hhh]jm)}(h list_headh]h list_head}(hju*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjw*modnameN classnameNjI jL )}jO ]jR )}jE j=*sbc.list_add_tail_rcuasbuh1hhjS*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)}(hnewh]hnew}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO*ubj)}(hstruct list_head *headh](j)}(hj6}h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h list_headh]h list_head}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]j*c.list_add_tail_rcuasbuh1hhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hheadh]hhead}(hj +hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO*ubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj(*hKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj(*hKyubah}(h]j *ah ](jjeh"]h$]h&]jj)jhuh1hhj(*hKyhj*hhubj)}(hhh]h)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hjJ+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKyhjG+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj(*hKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjb+jjb+jjjuh1hhhhj?hNhNubj)}(hX>**Parameters** ``struct list_head *new`` new entry to be added ``struct list_head *head`` list head to add it before **Description** Insert a new entry before the specified head. This is useful for implementing queues. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjl+h]h Parameters}(hjn+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK}hjf+ubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hj+h]hstruct list_head *new}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKzhj+ubj)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKzhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKzhj+ubj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hj+h]hstruct list_head *head}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK{hj+ubj)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(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&]uh1jhjf+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.hhK}hjf+ubh)}(hUInsert a new entry before the specified head. This is useful for implementing queues.h]hUInsert a new entry before the specified head. This is useful for implementing queues.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK|hjf+ubh)}(hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj$,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjf+ubeh}(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}(hjS,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO,hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjb,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO,hhhja,hKubjg)}(h list_del_rcuh]jm)}(h list_del_rcuh]h list_del_rcu}(hjt,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjO,hhhja,hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE jv,sbc.list_del_rcuasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hentryh]hentry}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubah}(h]h ]h"]h$]h&]jjuh1jhjO,hhhja,hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK,hhhja,hKubah}(h]jF,ah ](jjeh"]h$]h&]jj)jhuh1hhja,hKhjH,hhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj-hhubah}(h]h ]h"]h$]h&]uh1jhjH,hhhja,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+-jj+-jjjuh1hhhhj?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)}(hj5-h]h Parameters}(hj7-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjT-h]hstruct list_head *entry}(hjV-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjN-ubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjm-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji-hKhjj-ubah}(h]h ]h"]h$]h&]uh1jhjN-ubeh}(h]h ]h"]h$]h&]uh1jhji-hKhjK-ubah}(h]h ]h"]h$]h&]uh1jhj/-ubh)}(h**Note**h]j)}(hj-h]hNote}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubh)}(hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubh)}(hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.h]hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubh)}(hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj/-ubeh}(h]h ] kernelindentah"]h$]h&]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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj.hKubjg)}(hlist_bidir_del_rcuh]jm)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hj".hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj.hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj6}h]hstruct}(hj>.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:.ubj)}(h h]h }(hjK.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:.ubh)}(hhh]jm)}(h list_headh]h list_head}(hj\.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^.modnameN classnameNjI jL )}jO ]jR )}jE j$.sbc.list_bidir_del_rcuasbuh1hhj:.ubj)}(h h]h }(hj|.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:.ubjm)}(hentryh]hentry}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6.ubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj.hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj.hKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj.hKhj-hhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj?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)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hj/h]hstruct list_head *entry}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj/ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hKhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hj=/h]h Description}(hj?/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(hzIn contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().h]h|In contrast to list_del_rcu() doesn’t poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().}(hjS/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(h**Note**h]j)}(hjd/h]hNote}(hjf/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(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.}(hjz/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.h]hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h.void hlist_del_init_rcu (struct hlist_node *n)h]j)}(h-void hlist_del_init_rcu(struct hlist_node *n)h](j )}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/hhhj/hKubjg)}(hhlist_del_init_rcuh]jm)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj/hKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj10hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj30modnameN classnameNjI jL )}jO ]jR )}jE j/sbc.hlist_del_init_rcuasbuh1hhj0ubj)}(h h]h }(hjQ0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj_0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hjyh]hn}(hjl0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 0ubah}(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)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj?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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubj)}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj0h]hstruct hlist_node *n}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Note**h]j)}(hj1h]hNote}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubh)}(hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hj'1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubh)}(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.}(hj61hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubh)}(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().}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj0ubeh}(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}(hjt1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjp1hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp1hhhj1hKubjg)}(hlist_replace_rcuh]jm)}(hlist_replace_rcuh]hlist_replace_rcu}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjp1hhhj1hKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h list_headh]h list_head}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.list_replace_rcuasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(holdh]hold}(hj 2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct list_head *newh](j)}(hj6}h]hstruct}(hj#2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj02hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h list_headh]h list_head}(hjA2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjC2modnameN classnameNjI jL )}jO ]j1c.list_replace_rcuasbuh1hhj2ubj)}(h h]h }(hj_2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjm2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnewh]hnew}(hjz2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjp1hhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjl1hhhj1hKubah}(h]jg1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hKhji1hhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2hhubah}(h]h ]h"]h$]h&]uh1jhji1hhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj?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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hj2h]hstruct list_head *old}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hj3h]hstruct list_head *new}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj3ubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hj73hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj33hKhj43ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj33hKhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hjY3h]h Description}(hj[3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubh)}(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 }(hjo3hhhNhNubj)}(h**old**h]hold}(hjw3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo3ubh! entry will be replaced with the }(hjo3hhhNhNubj)}(h**new**h]hnew}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo3ubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjo3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubh)}(h**Note**h]j)}(hj3h]hNote}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh should not be empty.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj2ubeh}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj4hKubjg)}(h__list_splice_init_rcuh]jm)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj4hKubj)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hj44hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj04ubj)}(h h]h }(hjA4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj04ubh)}(hhh]jm)}(h list_headh]h list_head}(hjR4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjT4modnameN classnameNjI jL )}jO ]jR )}jE j4sbc.__list_splice_init_rcuasbuh1hhj04ubj)}(h h]h }(hjr4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj04ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj04ubjm)}(hlisth]hlist}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj04ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,4ubj)}(hstruct list_head *prevh](j)}(hj6}h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jn4c.__list_splice_init_rcuasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hprevh]hprev}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,4ubj)}(hstruct list_head *nexth](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj#5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h list_headh]h list_head}(hj45hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj15ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj65modnameN classnameNjI jL )}jO ]jn4c.__list_splice_init_rcuasbuh1hhj5ubj)}(h h]h }(hjR5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj`5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hnexth]hnext}(hjm5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,4ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(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&]uh1jhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hsynch]hsync}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubj)}(hj h]h)}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hjh]h(}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(hj h]h)}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,4ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj4hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj4hKubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj4hKhj3hhubj)}(hhh]h)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj6hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj4hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj36jj36jjjuh1hhhhj?hNhNubj)}(hXI**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *prev`` points to the last element of the existing list ``struct list_head *next`` points to the first element of the existing list ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... **Description** The list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function. Note that this function blocks. Important note: the caller must take whatever action is necessary to prevent any other updates to the existing list. In principle, it is possible to modify the list as soon as sync() begins execution. If this sort of thing becomes necessary, an alternative version based on call_rcu() could be created. But only if -really- needed -- there is no shortage of RCU API members.h](h)}(h**Parameters**h]j)}(hj=6h]h Parameters}(hj?6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj76ubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj\6h]hstruct list_head *list}(hj^6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjV6ubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq6hMhjr6ubah}(h]h ]h"]h$]h&]uh1jhjV6ubeh}(h]h ]h"]h$]h&]uh1jhjq6hMhjS6ubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hj6h]hstruct list_head *prev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj6ubj)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjS6ubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hj6h]hstruct list_head *next}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj6ubj)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjS6ubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hj7h]hvoid (*sync)(void)}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj7ubj)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjS6ubeh}(h]h ]h"]h$]h&]uh1jhj76ubh)}(h**Description**h]j)}(hjB7h]h Description}(hjD7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj76ubh)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjX7hhhNhNubj)}(h**prev**h]hprev}(hj`7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX7ubh and }(hjX7hhhNhNubj)}(h**next**h]hnext}(hjr7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX7ubh; can be RCU-read traversed concurrently with this function.}(hjX7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj76ubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj76ubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj76ubeh}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM;ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj7hM;ubjg)}(hlist_splice_init_rcuh]jm)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj7hM;ubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(h list_headh]h list_head}(hj$8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&8modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.list_splice_init_rcuasbuh1hhj8ubj)}(h h]h }(hjD8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjR8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hlisth]hlist}(hj_8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct list_head *headh](j)}(hj6}h]hstruct}(hjx8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt8ubh)}(hhh]jm)}(h list_headh]h list_head}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]j@8c.list_splice_init_rcuasbuh1hhjt8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt8ubjm)}(hheadh]hhead}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h(}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hsynch]hsync}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubj)}(hj h]h)}(hj,9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h(}(hj99hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj )}(hvoidh]hvoid}(hjF9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(hj h]h)}(hjT9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hM;ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hM;hj7hhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for stacks.h]hHsplice an RCU-protected list into an existing list, designed for stacks.}(hj}9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM;hjz9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj?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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?hj9ubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj9h]hstruct list_head *list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM=hj9ubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM=hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hM=hj9ubj)}(hX``struct list_head *head`` the place in the existing list to splice the first list into h](j)}(h``struct list_head *head``h]j)}(hj9h]hstruct list_head *head}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>hj9ubj)}(hhh]h)}(hhj :ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj :hM>hj9ubj)}(hF``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](j)}(h``void (*sync)(void)``h]j)}(hj0:h]hvoid (*sync)(void)}(hj2:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.:ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj*:ubj)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjI:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?hjF:ubah}(h]h ]h"]h$]h&]uh1jhj*:ubeh}(h]h ]h"]h$]h&]uh1jhjE:hM@hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&list_splice_tail_init_rcu (C function)c.list_splice_tail_init_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hcvoid list_splice_tail_init_rcu (struct list_head *list, struct list_head *head, void (*sync)(void))h]j)}(hbvoid list_splice_tail_init_rcu(struct list_head *list, struct list_head *head, void (*sync)(void))h](j )}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhj:hMJubjg)}(hlist_splice_tail_init_rcuh]jm)}(hlist_splice_tail_init_rcuh]hlist_splice_tail_init_rcu}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMJubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(h list_headh]h list_head}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]jR )}jE j:sbc.list_splice_tail_init_rcuasbuh1hhj:ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hlisth]hlist}(hj ;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hstruct list_head *headh](j)}(hj6}h]hstruct}(hj9;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5;ubj)}(h h]h }(hjF;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5;ubh)}(hhh]jm)}(h list_headh]h list_head}(hjW;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjY;modnameN classnameNjI jL )}jO ]j;c.list_splice_tail_init_rcuasbuh1hhj5;ubj)}(h h]h }(hju;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5;ubjm)}(hheadh]hhead}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h(}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hsynch]hsync}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubj)}(hj h]h)}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h(}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(hj h]h)}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hMJubah}(h]j}:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMJhj:hhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for queues.h]hHsplice an RCU-protected list into an existing list, designed for queues.}(hj><hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJhj;<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjV<jjV<jjjuh1hhhhj?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`<h]h Parameters}(hjb<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMNhjZ<ubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj<h]hstruct list_head *list}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhjy<ubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMLhj<ubah}(h]h ]h"]h$]h&]uh1jhjy<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMLhjv<ubj)}(hX``struct list_head *head`` the place in the existing list to splice the first list into h](j)}(h``struct list_head *head``h]j)}(hj<h]hstruct list_head *head}(hj<hhhNhNubah}(h]h ]h"]h$]h&]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=ah ](jjeh"]h$]h&]jj)jhuh1hhjb=hMYhj@=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@=hhhjb=hMYubeh}(h]h ](jmacroeh"]h$]h&]jjjj{=jj{=jjjuh1hhhhj?hNhNubh)}(h&``list_entry_rcu (ptr, type, member)``h]j)}(hj=h]h"list_entry_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.hhM[hj?hhubj)}(hget the struct for this entry h]h)}(hget the struct for this entryh]hget the struct for this entry}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMYhj=ubah}(h]h ]h"]h$]h&]uh1jhj=hMYhj?hhubj)}(hXg**Parameters** ``ptr`` the :c:type:`struct list_head ` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM]hj=ubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj=h]hptr}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMZhj=ubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hj=hhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hj=h]hstruct list_head}(hj=hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j list_headuh1hhj=hMZhj=ubh pointer.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hMZhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMZhj=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.hhM[hj+>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>hM[hjG>ubah}(h]h ]h"]h$]h&]uh1jhj+>ubeh}(h]h ]h"]h$]h&]uh1jhjF>hM[hj=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.hhM\hjd>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>hM\hj>ubah}(h]h ]h"]h$]h&]uh1jhjd>ubeh}(h]h ]h"]h$]h&]uh1jhj>hM\hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM^hj=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.hhM]hj=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)}(hj>h]hlist_first_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)}(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.hhMhj6?ubah}(h]h ]h"]h$]h&]uh1jhjH?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)}(hjU?h]h Parameters}(hjW?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjO?ubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjt?h]hptr}(hjv?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjn?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&]uh1jhjn?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjk?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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjk?ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj?h]hmember}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj?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&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjk?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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjO?ubh)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hj7@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjO?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().}(hjF@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjO?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)}(hjo@h]hlist_next_or_null_rcu}(hjy@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjq@hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjm@hhhj@hMubah}(h]jh@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhjj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjj@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)}(hj@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}(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** ``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)}(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 ``head`` the head for the list. h](j)}(h``head``h]j)}(hj@h]hhead}(hjAhhhNhNubah}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj@ubj)}(h5``ptr`` the list head to take the next element from. h](j)}(h``ptr``h]j)}(hj8Ah]hptr}(hj:AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Aubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj2Aubj)}(hhh]h)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjQAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMAhMhjNAubah}(h]h ]h"]h$]h&]uh1jhj2Aubeh}(h]h ]h"]h$]h&]uh1jhjMAhMhj@ubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjqAh]htype}(hjsAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkAubj)}(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&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjkAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj@ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjAh]hmember}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjAubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]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().}(hj BhhhNhNubah}(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)}(hj3Bh]hlist_for_each_entry_rcu}(hj=BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9Bubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5Bhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj1BhhhjPBhMubah}(h]j,Bah ](jjeh"]h$]h&]jj)jhuh1hhjPBhMhj.Bhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.BhhhjPBhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjiBjjiBjjjuh1hhhhj?hNhNubh)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjoBh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjqBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmBubah}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjBubah}(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)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjBubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjBh]hpos}(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 type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjBh]hhead}(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)}(hthe head for your list.h]hthe head for your list.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChMhjBubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj5Ch]hmember}(hj7ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Cubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj/Cubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjNChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJChMhjKCubah}(h]h ]h"]h$]h&]uh1jhj/Cubeh}(h]h ]h"]h$]h&]uh1jhjJChMhjBubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjnCh]hcond...}(hjpChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhCubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjhCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjBubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjBubh)}(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().}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjBubeh}(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)}(hjCh]hlist_for_each_entry_srcu}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjDhMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjChhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjChhhjDhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjDjjDjjjuh1hhhhj?hNhNubh)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hj$Dh]h2list_for_each_entry_srcu (pos, head, member, cond)}(hj&DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Dubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.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>DhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:Dubah}(h]h ]h"]h$]h&]uh1jhjLDhMhj?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)}(hjYDh]h Parameters}(hj[DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjSDubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjxDh]hpos}(hjzDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjrDubj)}(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&]uh1jhjrDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjoDubj)}(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:412: ./include/linux/rculist.hhMhjDubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjoDubj)}(h8``member`` the name of the list_head 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:412: ./include/linux/rculist.hhMhjDubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjoDubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hj#Eh]hcond}(hj%EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Eubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubj)}(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**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)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Fubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj-Fh]hptr}(hj/FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Fubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj'Fubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjFFhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjPFh]hstruct list_head}(hjRFhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjNFubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j list_headuh1hhjBFhMhjFFubh pointer.}(hjFFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBFhMhjCFubah}(h]h ]h"]h$]h&]uh1jhj'Fubeh}(h]h ]h"]h$]h&]uh1jhjBFhMhj$Fubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjFh]htype}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj$Fubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjFh]hmember}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(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&]uh1jhjFubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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)}(hjGhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj:GhhhjYGhMubah}(h]j5Gah ](jjeh"]h$]h&]jj)jhuh1hhjYGhMhj7Ghhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7GhhhjYGhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjrGjjrGjjjuh1hhhhj?hNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hjxGh]h0list_for_each_entry_lockless (pos, head, member)}(hjzGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvGubah}(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&]uh1jhjGhMhj?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)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjGubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjGh]hpos}(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 type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjHh]hhead}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjGubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjGubj)}(h:``member`` the name of the list_struct within the struct. h](j)}(h ``member``h]j)}(hj>Hh]hmember}(hj@HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM7hj:Oubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjYOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUOhM7hjVOubah}(h]h ]h"]h$]h&]uh1jhj:Oubeh}(h]h ]h"]h$]h&]uh1jhjUOhM7hjNubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hj{Oh]h Description}(hj}OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM9hjNubh)}(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 }(hjOhhhNhNubj)}(h**old**h]hold}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh! entry will be replaced with the }(hjOhhhNhNubj)}(h**new**h]hnew}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM8hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlists_swap_heads_rcu (C function)c.hlists_swap_heads_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hNvoid hlists_swap_heads_rcu (struct hlist_head *left, struct hlist_head *right)h]j)}(hMvoid hlists_swap_heads_rcu(struct hlist_head *left, struct hlist_head *right)h](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMKubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjOhMKubjg)}(hhlists_swap_heads_rcuh]jm)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjOhMKubj)}(h3(struct hlist_head *left, struct hlist_head *right)h](j)}(hstruct hlist_head *lefth](j)}(hj6}h]hstruct}(hj!PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj.PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hj?PhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjTh]hstruct hlist_node *n}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhhj Tubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hj+ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ThMhhj(Tubah}(h]h ]h"]h$]h&]uh1jhj Tubeh}(h]h ]h"]h$]h&]uh1jhj'ThMhhj Tubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjKTh]hstruct hlist_head *h}(hjMThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjITubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMihjETubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjdThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ThMihjaTubah}(h]h ]h"]h$]h&]uh1jhjETubeh}(h]h ]h"]h$]h&]uh1jhj`ThMihj Tubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMkhjSubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMkhjSubh)}(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().}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMnhjSubeh}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjThMubjg)}(hhlist_add_tail_rcuh]jm)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj$UhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj5UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2Uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7UmodnameN classnameNjI jL )}jO ]jR )}jE jTsbc.hlist_add_tail_rcuasbuh1hhjUubj)}(h h]h }(hjUUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjcUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hjyh]hn}(hjpUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct hlist_head *hh](j)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jQUc.hlist_add_tail_rcuasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hj$h]hh}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjThMhjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj?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)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjVubj)}(hhh](j)}(h>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj:Vh]hstruct hlist_node *n}(hjXubj)}(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)}(hjcXh]hstruct hlist_node *n}(hjeXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj]Xubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hj|XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxXhMhjyXubah}(h]h ]h"]h$]h&]uh1jhj]Xubeh}(h]h ]h"]h$]h&]uh1jhjxXhMhjZXubj)}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j)}(h``struct hlist_node *next``h]j)}(hjXh]hstruct hlist_node *next}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjXubj)}(hhh]h)}(h3the existing element to add the new element before.h]h3the existing element to add the new element before.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjZXubeh}(h]h ]h"]h$]h&]uh1jhj>Xubh)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj>Xubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj>Xubh)}(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.hhMhj>Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hIvoid hlist_add_behind_rcu (struct hlist_node *n, struct hlist_node *prev)h]j)}(hHvoid hlist_add_behind_rcu(struct hlist_node *n, struct hlist_node *prev)h](j )}(hvoidh]hvoid}(hj+YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Yhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hj:YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Yhhhj9YhMubjg)}(hhlist_add_behind_rcuh]jm)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjLYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'Yhhhj9YhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hjhYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdYubj)}(h h]h }(hjuYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdYubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jR )}jE jNYsbc.hlist_add_behind_rcuasbuh1hhjdYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdYubjm)}(hjyh]hn}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`Yubj)}(hstruct hlist_node *prevh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jYc.hlist_add_behind_rcuasbuh1hhjYubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hj#ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hprevh]hprev}(hj0ZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`Yubeh}(h]h ]h"]h$]h&]jjuh1jhj'Yhhhj9YhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#Yhhhj9YhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj9YhMhj Yhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj Yhhhj9YhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcZjjcZjjjuh1hhhhj?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)}(hjmZh]h Parameters}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgZubj)}(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.hhMhjZubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hjZh]hstruct hlist_node *prev}(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.hhMhjZubj)}(hhh]h)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubeh}(h]h ]h"]h$]h&]uh1jhjgZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgZubh)}(hnAdds the specified element to the specified hlist after the specified node while permitting racing traversals.h]hnAdds the specified element to the specified hlist after the specified node while permitting racing traversals.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgZubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.}(hj%[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgZubeh}(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)}(hjN[h]hhlist_for_each_entry_rcu}(hjX[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjP[hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjL[hhhjk[hMubah}(h]jG[ah ](jjeh"]h$]h&]jj)jhuh1hhjk[hMhjI[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjI[hhhjk[hMubeh}(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&]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...`` optional lockdep expression if called from non-RCU protection. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj[ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(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)}(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.}(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)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjP\h]hmember}(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)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(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)}(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\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)}(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&]jjjj9]jj9]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)}(hjA]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}(hjY]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjU]ubah}(h]h ]h"]h$]h&]uh1jhjg]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)}(hjt]h]h Parameters}(hjv]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjn]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)}(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]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.hhMhj8^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.}(hjW^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS^hMhjT^ubah}(h]h ]h"]h$]h&]uh1jhj8^ubeh}(h]h ]h"]h$]h&]uh1jhjS^hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjn]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:412: ./include/linux/rculist.hhMhjn]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.hhMhjn]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}(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)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j)}(hj^h]h4hlist_for_each_entry_rcu_notrace (pos, head, member)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.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)}(hjH_h]hpos}(hjJ_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjB_ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hja_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]_hMhj^_ubah}(h]h ]h"]h$]h&]uh1jhjB_ubeh}(h]h ]h"]h$]h&]uh1jhj]_hMhj?_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_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?_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)}(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#_ubh)}(hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.h]hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj#_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)}(hjC`h]hhlist_for_each_entry_rcu_bh}(hjM`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjE`hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM#ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjA`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&]jjjjy`jjy`jjjuh1hhhhj?hNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hj`h]h/hlist_for_each_entry_rcu_bh (pos, head, member)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM%hj?hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM#hj`ubah}(h]h ]h"]h$]h&]uh1jhj`hM#hj?hhubj)}(hXe**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM'hj`ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj`h]hpos}(hj`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.}(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!``head`` the head for your list. h](j)}(h``head``h]j)}(hj ah]hhead}(hjahhhNhNubah}(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.hhM%hjaubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj%ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ahM%hj"aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj!ahM%hj`ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjEah]hmember}(hjGahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM&hj?aubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj^ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZahM&hj[aubah}(h]h ]h"]h$]h&]uh1jhj?aubeh}(h]h ]h"]h$]h&]uh1jhjZahM&hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM(hj`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().}(hjahhhNhNubah}(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_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)}(hjah]h!hlist_for_each_entry_continue_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.hhM4ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahM4ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahM4hjahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjahhhjahM4ubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1hhhhj?hNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hjah]h/hlist_for_each_entry_continue_rcu (pos, member)}(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.hhM6hj?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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM4hjbubah}(h]h ]h"]h$]h&]uh1jhj#bhM4hj?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)}(hj0bh]h Parameters}(hj2bhhhNhNubah}(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.hhM8hj*bubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjObh]hpos}(hjQbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM5hjIbubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdbhM5hjebubah}(h]h ]h"]h$]h&]uh1jhjIbubeh}(h]h ]h"]h$]h&]uh1jhjdbhM5hjFbubj)}(h8``member`` the name of the hlist_node 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.hhM7hjbubj)}(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.hhM6hjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM7hjFbubeh}(h]h ]h"]h$]h&]uh1jhj*bubeh}(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)}(hjbh]h$hlist_for_each_entry_continue_rcu_bh}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhM@ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhM@hjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM@ubeh}(h]h ](jmacroeh"]h$]h&]jjjjcjjcjjjuh1hhhhj?hNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hjch]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(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.hhMBhj?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}(hj2chhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj.cubah}(h]h ]h"]h$]h&]uh1jhj@chM@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)}(hjMch]h Parameters}(hjOchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMDhjGcubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjlch]hpos}(hjnchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMAhjfcubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMAhjcubah}(h]h ]h"]h$]h&]uh1jhjfcubeh}(h]h ]h"]h$]h&]uh1jhjchMAhjccubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjch]hmember}(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.hhMChjcubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMBhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMChjccubeh}(h]h ]h"]h$]h&]uh1jhjGcubeh}(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)}(hjch]hhlist_for_each_entry_from_rcu}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjdhMLubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjdhMLhjchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjchhhjdhMLubeh}(h]h ](jmacroeh"]h$]h&]jjjj/djj/djjjuh1hhhhj?hNhNubh)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j)}(hj5dh]h+hlist_for_each_entry_from_rcu (pos, member)}(hj7dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3dubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMNhj?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}(hjOdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhjKdubah}(h]h ]h"]h$]h&]uh1jhj]dhMLhj?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)}(hjjdh]h Parameters}(hjldhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMPhjddubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjdh]hpos}(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.hhMMhjdubj)}(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&]uh1hhjdhMMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMMhjdubj)}(h8``member`` the name of the hlist_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:412: ./include/linux/rculist.hhMOhjdubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMNhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMOhjdubeh}(h]h ]h"]h$]h&]uh1jhjddubeh}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hj+ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhj*ehKubjg)}(hhlist_nulls_del_init_rcuh]jm)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hj=ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhj*ehKubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hj6}h]hstruct}(hjYehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubj)}(h h]h }(hjfehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUeubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjwehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjteubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjyemodnameN classnameNjI jL )}jO ]jR )}jE j?esbc.hlist_nulls_del_init_rcuasbuh1hhjUeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubjm)}(hjyh]hn}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQeubah}(h]h ]h"]h$]h&]jjuh1jhjehhhj*ehKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj*ehKubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj*ehKhjehhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjehhubah}(h]h ]h"]h$]h&]uh1jhjehhhj*ehKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhj?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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjeubj)}(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)}(hjfh]hstruct hlist_nulls_node *n}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjfubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj5fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1fhKhj2fubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhj1fhKhjfubah}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Note**h]j)}(hjWfh]hNote}(hjYfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUfubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjeubh)}(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.}(hjmfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjeubh)}(hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.h]hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.}(hj|fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjeubh)}(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().}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjeubeh}(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)}(hjfh]hhlist_nulls_first_rcu}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjfhK*ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhK*hjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjfhK*ubeh}(h]h ](jmacroeh"]h$]h&]jjjjfjjfjjjuh1hhhhj?hNhNubh)}(h ``hlist_nulls_first_rcu (head)``h]j)}(hjfh]hhlist_nulls_first_rcu (head)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.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.}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*hjgubah}(h]h ]h"]h$]h&]uh1jhjghK*hj?hhubj)}(h0**Parameters** ``head`` the head of the list.h](h)}(h**Parameters**h]j)}(hj%gh]h Parameters}(hj'ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#gubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK.hjgubj)}(hhh]j)}(h``head`` the head of the list.h](j)}(h``head``h]j)}(hjDgh]hhead}(hjFghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBgubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK0hj>gubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hj]ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK+hjZgubah}(h]h ]h"]h$]h&]uh1jhj>gubeh}(h]h ]h"]h$]h&]uh1jhjYghK0hj;gubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(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)}(hjgh]hhlist_nulls_next_rcu}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghK1ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghK1hjghhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjghhhjghK1ubeh}(h]h ](jmacroeh"]h$]h&]jjjjgjjgjjjuh1hhhhj?hNhNubh)}(h``hlist_nulls_next_rcu (node)``h]j)}(hjgh]hhlist_nulls_next_rcu (node)}(hjghhhNhNubah}(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.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 }(hjghhhNhNubj)}(h**node**h]hnode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1hjgubah}(h]h ]h"]h$]h&]uh1jhjhhK1hj?hhubj)}(h/**Parameters** ``node`` element of the list.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:414: ./include/linux/rculist_nulls.hhK5hjhubj)}(hhh]j)}(h``node`` element of the list.h](j)}(h``node``h]j)}(hj:hh]hnode}(hj` 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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjnubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hj oh]htpos}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjoubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj%ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ohKhj"oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj!ohKhjoubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjEoh]hpos}(hjGohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCoubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj?oubj)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hj^ohhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjhoh]hstruct hlist_nulls_node}(hjjohhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjfoubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jhlist_nulls_nodeuh1hhjZohKhj^oubh to use as a loop cursor.}(hj^ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZohKhj[oubah}(h]h ]h"]h$]h&]uh1jhj?oubeh}(h]h ]h"]h$]h&]uh1jhjZohKhjoubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjoh]hhead}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjoubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjoubj)}(h?``member`` the name of the hlist_nulls_node within the struct. h](j)}(h ``member``h]j)}(hjoh]hmember}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjoubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjoubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(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:414: ./include/linux/rculist_nulls.hhKhjnubh)}(hThe barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h]hThe barrier() is needed to make sure compiler doesn’t cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146}(hj+phhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjnubeh}(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)}(hjTph]hhlist_nulls_for_each_entry_safe}(hj^phhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVphhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRphhhjqphKubah}(h]jMpah ](jjeh"]h$]h&]jj)jhuh1hhjqphKhjOphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOphhhjqphKubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhj?hNhNubh)}(h=``hlist_nulls_for_each_entry_safe (tpos, pos, head, member)``h]j)}(hjph]h9hlist_nulls_for_each_entry_safe (tpos, pos, head, member)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjpubah}(h]h ]h"]h$]h&]uh1jhjphKhj?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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjpubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjph]htpos}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjpubj)}(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&]uh1hhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKhjpubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjqh]hpos}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjqubj)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hj6qhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hj@qh]hstruct hlist_nulls_node}(hjBqhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj>qubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jhlist_nulls_nodeuh1hhj2qhKhj6qubh to use as a loop cursor.}(hj6qhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2qhKhj3qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj2qhKhjpubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjyqh]hhead}(hj{qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwqubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjsqubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjqubah}(h]h ]h"]h$]h&]uh1jhjsqubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjpubj)}(h>``member`` the name of the hlist_nulls_node within the struct.h](j)}(h ``member``h]j)}(hjqh]hmember}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjqubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(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 rhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjrhKubjg)}(hrcu_sync_is_idleh]jm)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hj,rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjHrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDrubj)}(h h]h }(hjUrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDrubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjfrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhrmodnameN classnameNjI jL )}jO ]jR )}jE j.rsbc.rcu_sync_is_idleasbuh1hhjDrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDrubjm)}(hrsph]hrsp}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@rubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjrhKhjrhhubj)}(hhh]h)}(h-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhj?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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjrubj)}(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 sh]hstruct rcu_sync *rsp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjsubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hj%shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!shKhj"subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj!shKhjsubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjGsh]h Description}(hjIshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEsubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjrubh)}(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]shhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjrubeh}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjshKubjg)}(h rcu_sync_inith]jm)}(h rcu_sync_inith]h rcu_sync_init}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE jssbc.rcu_sync_initasbuh1hhjsubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hrsph]hrsp}(hj"thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjshKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshKubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshKhjshhubj)}(hhh]h)}(h Initialize an rcu_sync structureh]h Initialize an rcu_sync structure}(hjLthhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjIthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdtjjdtjjjuh1hhhhj?hNhNubj)}(hZ**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](h)}(h**Parameters**h]j)}(hjnth]h Parameters}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjltubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjhtubj)}(hhh]j)}(hH``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](j)}(h``struct rcu_sync *rsp``h]j)}(hjth]hstruct rcu_sync *rsp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjtubj)}(hhh]h)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKhjtubah}(h]h ]h"]h$]h&]uh1jhjhtubeh}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthK#ubjg)}(h rcu_sync_funch]jm)}(h rcu_sync_funch]h rcu_sync_func}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthK#ubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hj6}h]hstruct}(hj$uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj uubj)}(h h]h }(hj1uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj uubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjBuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDumodnameN classnameNjI jL )}jO ]jR )}jE j usbc.rcu_sync_funcasbuh1hhj uubj)}(h h]h }(hjbuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj uubj)}(hjh]h*}(hjpuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj uubjm)}(hrhph]hrhp}(hj}uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjthK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthK#ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthK#hjthhubj)}(hhh]h)}(h4Callback function managing reader access to fastpathh]h4Callback function managing reader access to fastpath}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#hjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhj?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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK'hjuubj)}(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)}(hjuh]hstruct rcu_head *rhp}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK$hjuubj)}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhK$hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhK$hjuubah}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hj#vh]h Description}(hj%vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!vubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK&hjuubh)}(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.}(hj9vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK%hjuubh)}(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.}(hjHvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK)hjuubh)}(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.}(hjWvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK,hjuubh)}(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.}(hjfvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK0hjuubeh}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjvhK[ubjg)}(hrcu_sync_enterh]jm)}(hrcu_sync_enterh]hrcu_sync_enter}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjvhK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classname<NjI jL )}jO ]jR )}jE jvsbc.rcu_sync_enterasbuh1hhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hrsph]hrsp}(hj+whhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhK[ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjvhK[hjvhhubj)}(hhh]h)}(hForce readers onto slowpathh]hForce readers onto slowpath}(hjUwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[hjRwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhK[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmwjjmwjjjuh1hhhhj?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)}(hjwwh]h Parameters}(hjywhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuwubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK_hjqwubj)}(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)}(hjwh]hstruct rcu_sync *rsp}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK\hjwubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhK\hjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhK\hjwubah}(h]h ]h"]h$]h&]uh1jhjqwubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK^hjqwubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK]hjqwubh)}(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().}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKchjqwubeh}(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}(hj%xhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!xhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hj4xhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!xhhhj3xhKubjg)}(h rcu_sync_exith]jm)}(h rcu_sync_exith]h rcu_sync_exit}(hjFxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!xhhhj3xhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjbxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^xubj)}(h h]h }(hjoxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^xubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}xubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE jHxsbc.rcu_sync_exitasbuh1hhj^xubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^xubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^xubjm)}(hrsph]hrsp}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZxubah}(h]h ]h"]h$]h&]jjuh1jhj!xhhhj3xhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhj3xhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhj3xhKhjxhhubj)}(hhh]h)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjxhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhj3xhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhj?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)}(hjyh]h Parameters}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjyubj)}(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&yh]hstruct rcu_sync *rsp}(hj(yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$yubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj yubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hj?yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;yhKhjhjMubj#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; };}hjnsbah}(h]h ]h"]h$]h&]jjuh1j"ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hjMubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKehjMubj)}(hhh](j)}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j)}(h ``cbs_wait``h]j)}(hjh]hcbs_wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj 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.}(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)}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j)}(h ``gp_state``h]j)}(hjIh]hgp_state}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hjCubj)}(hhh]h)}(h8Grace period's most recent state transition (debugging).h]h:Grace period’s most recent state transition (debugging).}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK@hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hK@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.hhKAhj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubj)}(h/``init_fract`` Initial backoff sleep interval. h](j)}(h``init_fract``h]j)}(hjh]h init_fract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKBhjubj)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЀhKBhjрubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЀhKBhjubj)}(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}(hjhhhNhNubah}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKDhj9ubj)}(hhh]h)}(h*Most recent grace-period start in jiffies.h]h*Most recent grace-period start in jiffies.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKDhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKDhjubj)}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j)}(h``tasks_gp_seq``h]j)}(hjxh]h tasks_gp_seq}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKEhjrubj)}(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&]uh1jhjrubeh}(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)}(hjh]hn_ipis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKFhjubj)}(hhh]h)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hjʁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƁhKFhjǁubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƁhKFhjubj)}(h.``n_ipis_fails`` Number of IPI-send failures. h](j)}(h``n_ipis_fails``h]j)}(hjh]h n_ipis_fails}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKGhjubj)}(hhh]h)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hj#h]h kthread_ptr}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKHhjubj)}(hhh]h)}(h7This flavor's grace-period/callback-invocation kthread.h]h9This flavor’s grace-period/callback-invocation kthread.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKHhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKHhjubj)}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j)}(h``lazy_jiffies``h]j)}(hj\h]h lazy_jiffies}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKIhjVubj)}(hhh]h)}(h0Number of jiffies to allow callbacks to be lazy.h]h0Number of jiffies to allow callbacks to be lazy.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKIhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKIhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hj΂h]h pregp_func}(hjЂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhĵubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKJhjȂubj)}(hhh]h)}(h3This flavor's pre-grace-period function (optional).h]h5This flavor’s pre-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjȂubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j)}(h``pertask_func``h]j)}(hjh]h pertask_func}(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.hhKKhjubj)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjubj)}(hD``postscan_func`` This flavor's post-task scan function (optional). h](j)}(h``postscan_func``h]j)}(hj@h]h postscan_func}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKLhj:ubj)}(hhh]h)}(h1This flavor's post-task scan function (optional).h]h3This flavor’s post-task scan function (optional).}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKLhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKLhjubj)}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j)}(h``holdouts_func``h]j)}(hjyh]h holdouts_func}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKMhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(hE``postgp_func`` This flavor's post-grace-period function (optional). h](j)}(h``postgp_func``h]j)}(hjh]h postgp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKNhjubj)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hj˃hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǃhKNhjȃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǃhKNhjubj)}(h<``call_func`` This flavor's call_rcu()-equivalent function. h](j)}(h ``call_func``h]j)}(hjh]h call_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKOhjubj)}(hhh]h)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hj$h]h wait_state}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKPhjubj)}(hhh]h)}(hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).h]hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKPhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKPhjubj)}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j)}(h ``rtpcpu``h]j)}(hj]h]hrtpcpu}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKQhjWubj)}(hhh]h)}(h)This flavor's rcu_tasks_percpu structure.h]h+This flavor’s rcu_tasks_percpu structure.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKQhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKQhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hjτh]hpercpu_enqueue_shift}(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.hhKShjɄubj)}(hhh]h)}(h5Shift down CPU ID this much when enqueuing callbacks.h]h5Shift down CPU ID this much when enqueuing callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjɄubeh}(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)}(hjh]hpercpu_enqueue_lim}(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.hhKThjubj)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKThjubj)}(hO``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. h](j)}(h``percpu_dequeue_lim``h]j)}(hjAh]hpercpu_dequeue_lim}(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.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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKUhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKUhjubj)}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j)}(h``percpu_dequeue_gpseq``h]j)}(hjzh]hpercpu_dequeue_gpseq}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKVhjtubj)}(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&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKVhjubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjh]hbarrier_q_mutex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKWhjubj)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hj̅hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȅhKWhjɅubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȅhKWhjubj)}(h6``barrier_q_count`` Number of queues being waited on. h](j)}(h``barrier_q_count``h]j)}(hjh]hbarrier_q_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKXhjubj)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hj%h]hbarrier_q_completion}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKYhjubj)}(hhh]h)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKYhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKYhjubj)}(h:``barrier_q_seq`` Sequence number for barrier operations. h](j)}(h``barrier_q_seq``h]j)}(hj^h]h barrier_q_seq}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKZhjXubj)}(hhh]h)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKZhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKZhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubj)}(h%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hjІh]hname}(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 textual name.h]hThis flavor’s textual name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjʆubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjubj)}(hhh]h)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(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}(hjchhhNhNubah}(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 }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjqhMubjg)}(hcall_rcu_tasksh]jm)}(hcall_rcu_tasksh]hcall_rcu_tasks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjqhMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_tasksasbuh1hhjubj)}(h h]h }(hjއhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jڇc.call_rcu_tasksasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfunch]hfunc}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjqhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjqhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjXhhubj)}(hhh]h)}(h3Queue an RCU for invocation task-based grace periodh]h3Queue an RCU for invocation task-based grace period}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhMubeh}(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)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjňhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjˆubah}(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)}(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.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&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.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.}(hj6hhhNhNubah}(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.}(hjEhhhNhNubah}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjphhhW/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&]uh1jhjphhhjhMubjg)}(hsynchronize_rcu_tasksh]jm)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhjhMubj)}(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&]jjuh1jhjphhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjihhubj)}(hhh]h)}(h1wait until an rcu-tasks grace period has elapsed.h]h1wait until an rcu-tasks grace period has elapsed.}(hjۉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj؉hhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]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().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjɊhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjȊhMubjg)}(hrcu_barrier_tasksh]jm)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hjۊhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj׊ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjȊhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjȊhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȊhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȊhMhjhhubj)}(hhh]h)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȊhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj?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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj=ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjbh]hvoid}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjYubah}(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'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 hjދhhhW/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&]uh1jhjދhhhjhMpubjg)}(hsynchronize_rcu_tasks_rudeh]jm)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjދhhhjhMpubj)}(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ދhhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjڋhhhjhMpubah}(h]jՋah ](jjeh"]h$]h&]jj)jhuh1hhjhMphj׋hhubj)}(hhh]h)}(h&wait for a rude rcu-tasks grace periodh]h&wait for a rude rcu-tasks grace period}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMphjFhhubah}(h]h ]h"]h$]h&]uh1jhj׋hhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj?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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMthjeubj)}(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&]uh1jhjeubh)}(h**Description**h]j)}(hjŌh]h Description}(hjnjhhhNhNubah}(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.hhKhjeubh)}(hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().}(hjیhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMqhjeubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMxhjeubh)}(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}hjeubeh}(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}(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 }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj6hMubjg)}(hcall_rcu_tasks_traceh]jm)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.call_rcu_tasks_traceasbuh1hhjaubj)}(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]ubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjڍhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj׍ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj܍modnameN classnameNjI jL )}jO ]jc.call_rcu_tasks_traceasbuh1hhjӍ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&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhjhhubj)}(hhh]h)}(h.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hj0hhhNhNubah}(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&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj?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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjLubj)}(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)}(hjqh]hstruct rcu_head *rhp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjkubj)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(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}(hjÎhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjLubh)}(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.hhMhjLubh)}(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.hhMhjLubeh}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMubjg)}(hsynchronize_rcu_tasks_traceh]jm)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubah}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]h)}(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&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?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)}(hjh]h Parameters}(hjďhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߏubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjۏubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjۏubeh}(h]h ]h"]h$]h&]uh1jhjhKhj؏ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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)}(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().}(hj2hhhNhNubah}(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_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.}(hjAhhhNhNubah}(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.}(hjPhhhNhNubah}(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$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 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_tasks_traceh]jm)}(hrcu_barrier_tasks_traceh]hrcu_barrier_tasks_trace}(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&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj)}(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&]uh1jhjthhhjhMubeh}(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)}(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.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)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubh)}(hAlthough the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.h]hAlthough the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.}(hjxhhhNhNubah}(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 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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrcu_cpu_stall_reseth]jm)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hjȑhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjđubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjܑubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h6restart stall-warning timeout for current grace periodh]h6restart stall-warning timeout for current grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhj?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)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj*ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjOh]hvoid}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjIubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj*ubh)}(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.hhKhj*ubh)}(h"The caller must disable hard irqs.h]h"The caller must disable hard irqs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj*ubeh}(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}(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.hhMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjڒhhhjhMmubjg)}(h!rcu_stall_chain_notifier_registerh]jm)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjڒhhhjhMmubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE jsb#c.rcu_stall_chain_notifier_registerasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjڒhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj֒hhhjhMmubah}(h]jђah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjӒhhubj)}(hhh]h)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjӒhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXq**Parameters** ``struct notifier_block *n`` Entry to add. **Description** Adds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer. Returns 0 on success, ``-EEXIST`` on error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMqhjubj)}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjޓh]hstruct notifier_block *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܓubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMnhjؓubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjؓubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjՓ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.hhMphjubh)}(hAdds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.h](h@Adds an RCU CPU stall notifier to an atomic notifier chain. The }(hj/hhhNhNubj)}(h **action**h]haction}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh passed to a notifier will be }(hj/hhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh or friends. The }(hj/hhhNhNubj)}(h**data**h]hdata}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMohjubh)}(h+Returns 0 on success, ``-EEXIST`` on error.h](hReturns 0 on success, }(hjthhhNhNubj)}(h ``-EEXIST``h]h-EEXIST}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh on error.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMthjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMubj)}(h h]h }(hjĔhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjÔhMubjg)}(h#rcu_stall_chain_notifier_unregisterh]jm)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hj֔hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҔubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjÔhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jؔsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjÔhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjÔhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjÔhMhjhhubj)}(hhh]h)}(h Remove an RCU CPU stall notifierh]h Remove an RCU CPU stall notifier}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjÔhMubeh}(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)}(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.hhMhjubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(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&]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.}(hjhhhNhNubah}(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, }(hjhhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on failure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK&ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhK&ubjg)}(hrcu_read_lock_traceh]jm)}(hrcu_read_lock_traceh]hrcu_read_lock_trace}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhK&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&]jjuh1jhjRhhhjdhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhK&ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhK&hjKhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK&hjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjՖjjՖjjjuh1hhhhj?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)}(hjߖh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݖubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK*hjٖubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjٖubh)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjٖubh)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK'hjٖubh)}(hCFor more details, please see the documentation for rcu_read_lock().h]hCFor more details, please see the documentation for rcu_read_lock().}(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ٖubeh}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjʗhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjƗubah}(h]h ]h"]h$]h&]noemphjjuh1jhj—ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKBhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj5h]hvoid}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj/ubj)}(hhh]h)}(h no argumentsh]h no arguments}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubh)}(hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.h]hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK?hjubh)}(hEFor more details, please see the documentation for rcu_read_unlock().h]hEFor more details, please see the documentation for rcu_read_unlock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKChjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjh]hsynchronize_rcu_mult}(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:426: ./include/linux/rcupdate_wait.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&]jjjjjjjjjuh1hhhhj?hNhNubh)}(h``synchronize_rcu_mult (...)``h]j)}(hjh]hsynchronize_rcu_mult (...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK)hj?hhubj)}(h-Wait concurrently for multiple grace periods h]h)}(h,Wait concurrently for multiple grace periodsh]h,Wait concurrently for multiple grace periods}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK'hjubah}(h]h ]h"]h$]h&]uh1jhj"hK'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)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK+hj)ubj)}(hhh]j)}(hL``...`` List of call_rcu() functions for different grace periods to wait on h](j)}(h``...``h]j)}(hjNh]h...}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK(hjHubj)}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchK(hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchK(hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK*hj)ubh)}(hX|This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.h]hX~This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain’s call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK)hj)ubh)}(hNote that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds.h]hNote that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK0hj)ubh)}(hThe first argument tells Tiny RCU's _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.h]hThe first argument tells Tiny RCU’s _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK5hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_init (C function) c.rcuref_inithNtauh1hhj?hhhNhNubh)}(hhh](j)}(h2void rcuref_init (rcuref_t *ref, unsigned int cnt)h]j)}(h1void rcuref_init(rcuref_t *ref, unsigned int cnt)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h rcuref_inith]jm)}(h rcuref_inith]h rcuref_init}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h!(rcuref_t *ref, unsigned int cnt)h](j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_initasbuh1hhj%ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hrefh]href}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hunsigned int cnth](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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(hcnth]hcnt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jߙah ](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.hhKhjߚhhubah}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hhh](j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hj#h]h rcuref_t *ref}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubj)}(h>``unsigned int cnt`` The initial reference count typically '1'h](j)}(h``unsigned int cnt``h]j)}(hj\h]hunsigned int cnt}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjVubj)}(hhh]h)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjubeh}(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 }(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjěhKubjg)}(h rcuref_readh]jm)}(h rcuref_readh]h rcuref_read}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjěhKubj)}(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_readasbuh1hhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hrefh]href}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(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)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhjěhKubeh}(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}(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 **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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjEhK0ubjg)}(hrcuref_is_deadh]jm)}(hrcuref_is_deadh]hrcuref_is_dead}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhK0ubj)}(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 jZsbc.rcuref_is_deadasbuh1hhjpubj)}(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&]jjuh1jhj4hhhjEhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhK0ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjEhK0hj-hhubj)}(hhh]h)}(h0Check if the rcuref has been already marked deadh]h0Check if the rcuref has been already marked dead}(hjܝhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0hjٝhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hX;**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** True if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK4hjubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK1hjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hK1hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hK1hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjXh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(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.}(hjnhhhNhNubah}(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}(hjܞhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjٞubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjޞmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_getasbuh1hhj՞ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj՞ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj՞ubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj՞ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjўubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKBhjhhubj)}(hhh]h)}(h1Acquire one reference on a rcuref reference counth]h1Acquire one reference on a rcuref reference count}(hjAhhhNhNubah}(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&]jjjjYjjYjjjuh1hhhhj?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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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.hhKChj|ubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKChjyubah}(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.}(hjӟhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKDhj]ubh)}(hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.ch]hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKFhj]ubj)}(h.True if a reference was successfully acquired h]h)}(h-True if a reference was successfully acquiredh]h-True if a reference was successfully acquired}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKKhjubah}(h]h ]h"]h$]h&]uh1jhjhKKhj]ubh)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKMhj]ubh)}(hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put alreadyh]hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put already}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKKhj]ubeh}(h]h ] kernelindentah"]h$]h&]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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKyubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKyubjg)}(hrcuref_put_rcusafeh]jm)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj^hKyubj)}(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 jssbc.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}(hjˠhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhj^hKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj^hKyubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj^hKyhjFhhubj)}(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&]uh1jhjFhhhj^hKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXt**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Provides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after. Can be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. **Return** True if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK}hj#ubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjHh]h rcuref_t *ref}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKzhjBubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKzhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKzhj?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:428: ./include/linux/rcuref.hhK|hj#ubh)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK{hj#ubh)}(hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify.h]hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()’ed and atomic contexts qualify.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj#ubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. h]h)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjɡhKhj#ubh)}(h **Return**h]j)}(hjҡh]hReturn}(hjԡhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjСubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj#ubh)}(hTrue if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.h]hTrue if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put (C function) c.rcuref_puthNtauh1hhj?hhhNhNubh)}(hhh](j)}(hbool rcuref_put (rcuref_t *ref)h]j)}(hbool rcuref_put(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hKubjg)}(h rcuref_puth]jm)}(h rcuref_puth]h rcuref_put}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE j9sb c.rcuref_putasbuh1hhjOubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(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]j)}(hhh]j)}(h2Release one reference for a rcuref reference counth]h)}(hjh]h2Release one reference for a rcuref reference count}(hj¢hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjϢhNubah}(h]h ]h"]h$]h&]jjuh1jhjϢhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKubeh}(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.hhKhjubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubh)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubh)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hXfTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h](h)}(hTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction.h]hTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj}ubh)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]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}(hjţhhhNhNubah}(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 }(hjӣhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjңhK3ubjg)}(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&]jjuh1jfhjhhhjңhK3ubj)}(h@(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j)}(hstruct rcu_gp_oldstate *rgosp1h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN 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*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosp1h]hrgosp1}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_gp_oldstate *rgosp2h](j)}(hj6}h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(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_fullasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hrgosp2h]hrgosp2}(hjʤhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjңhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjңhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjңhK3hjhhubj)}(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&]uh1jhjhhhjңhK3ubeh}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK7hjubj)}(hhh](j)}(h:``struct rcu_gp_oldstate *rgosp1`` First old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp1``h]j)}(hj5h]hstruct rcu_gp_oldstate *rgosp1}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK4hj/ubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK4hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK4hj,ubj)}(h;``struct rcu_gp_oldstate *rgosp2`` Second old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp2``h]j)}(hjnh]hstruct rcu_gp_oldstate *rgosp2}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK5hjhubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhK5hj,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:430: ./include/linux/rcutree.hhK7hjubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hjǥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hj٥hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK6hjubh)}(hXUNote that equality is judged on a bitwise basis, so that an **rcu_gp_oldstate** structure with an already-completed state in one field will compare not-equal to a structure with an already-completed state in the other field. After all, the **rcu_gp_oldstate** structure is opaque so how did such a situation come to pass in the first place?h](hjjj,`j)`jjjjjjj\bjYbj;jH9jijijtjtjjjjjjjhjejj j{jxjnjkj,j)jjjTjTjTjTjj jjjjjjjjjjjjjjjjjjj j jjje jb j j jjj:`j7`jdjdj jjjj+j(j9j6j1j.u nametypes}(jAjj,`jjjj\bj;jijtjjjjhjj{jnj,jjTjTjjjjjjjjjjj jje j jj:`jdj jj+j9j1uh}(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Ⱦj1j6jjjhjmjjjTjYjjjLjQjQjVjPjUjojtjjjjj4j9jjjjjjjjjj jj*jGjLj_jdjUjZjljqjajfjVj[jKjPj]jbjojtjjjjjjjjjjjjjjjjjjjYbjjjj j jjjjj7j<j jj9"j>"j$j$jM'jR'j)j)ja,jf,j70j<0jA9j79j~;jt;jH9j;j<j<j8@j=@j DjDjGjGj#Lj(LjPjPjRjRjUjUjQXjVXjYjYj[j[j^j^jij_bj|bjbjdjdjgjgjtjijijijjjjjljlj$nj)njojoj0qj5qjrjrjjtjtjtjxjxj|j|jjjjjYj^jjjjjjj1j6jjj̓jѓj4j9jjjejjݖjjvj{jjjjj3j8jjžjWj\jjjljqjjjujzjjjɫjΫjڭj߭jjjjj`jej9j>jjjjjźjʺjjjԾjپj@jEj jkjjj9j>jjjjjjjj"jjj"j'jjj7j<jjjj jsjxjxjj/j4jjj-j2jjjjjjjjjjjjjj jkj~jjjjjjjjj0j5j)jqjjjQjVjj jjjj$j jjjj j j j jdjijjj8j=jjj jjUjZjj/jLjQjjjTjjTjjjjjjjj"j"jd$ji$j'j'j*j*jf.jk.j 2j2j64j;4jF6jK6jp8ju8j:j:ja=jf=j?j?jAjBj9Dj>DjuFjzFj JjJjLjLjPjPjXRj]Rj jTjjUj+Uj0UjHVjMVjWjWjXjXjYjZj,[j1[j\j\j\j\j]j]j^j^j_j_j`j`jajajbjbjcjcjdjdjejejfjfjgjgjhjhjLjjQjj0kj5kjljlj njnj_ojdojpjpjDjCDj]GjbGjIjIjJjJjMj Mj1Oj6OjuQjzQj;Tj@TjVjVjWjWjYjYj[j\jq^jv^j`j`j|bjbjdjdjejejwgj|gjijijkjkj)pj.pjQrjVrjtjtj_wjdwjczjhzj|j|jR~jW~jjjjjjjjj/j4jjjZj_jj$jjj jjj jWj\j>jCjjjjjjjjjjjjjGjLj jjjjKjPjAjFj:j?j3j8j)j.jjj'j,jjjjjjjQjVjjjJjOjjjjj$j)jNjSjjjjj]jbjjj_jdj-j2jjjjjjjjjojtjdjij jjjjSjXj j j j jA jF jjjjjjj/j4jjj jjjj* j/ j"j"j%j %j&j&jx(j}(j*j*j,j,j.j.j1j1j4j4j}6j6j68j;8j9j9j=j=jZAj_AjCjCjFEjKEj\GjaGjIjIj.Kj3KjLjLjiNjnNjOjPjRjRj:Tj?TjWj"Wj[j[j\j\jd^ji^jz`j`jbjbj{ejej5gj:gjhjhjjjjjmj mjEpjJpjsjsjwj wjzjzj}j}jjjjjjjjjj jjjΐjӐjjjGjLjj j3j8jۜjjjjjjjjץjܥj jjj!jjj4j9jjjjjLjQjjjźjʺjEjJjnjsjjjjjj jjjijnjjjjjzjj4j9jjjjjjjjjjjjjijnj~jjjjjjjjjjjjjjjj7j<jjjjj\jajjjSjXjjjjj3 j8 j j jjj7`jjjjjjjjjjjjK jP jO"jT"j#j#jQ%jV%j&j&j-(j2(j*j*j+j+j-j-j1j1j2j2jn4js4j5j5j8j8jY;j^;j=j=j@j@jBjBjxDj}DjEjEjHjHjmJjrJjKjKjMjMj7Oj|j}j}jjjjj>jCjjj߇jjjj^jcjjjjj*j/jjjj jjjjj?jDjjj]jbjjjjĨjjj-j2j:j?jjj<jAjfjkjjjjjjjjjjjjjjj(j-jjj~jjjj jjjjjjXj]jfjkj|jj$j)jjjjjjjjjjjj j*j/jjjrjwjjj~jjjj@jEjijnjjj\ ja j j jz j j(jjijnjAjFjjjLjQjvj{jzjjMjRjjjjj> jC j"j"j$j$j'j'j?)jD)j+j+j;-j@-j.j.ji0jn0j1j1j4j4j7j7j":j':j<j<ja?jf?j\BjaBjDjDj GjGjJjJjLjLjOjOjRjRjUjUjjXjoXj[j[j^j^j`j`jbjbjHdjMdjpfjufjgjgjwij|ijukjzkjsmjxmjojoj(rj-rjBtjGtjkvjpvjxjyj{j{j}j}jjjҁjׁjjjjj7j<j_jdjjj6j.j.j?j\jajijnjjjNjSjjj˒jВjzjj)j.jؔjݔjjjjjjjj jܚjjj jIjNjjjϠjԠj3j8j=jBjGjLjQjVjjjojݧjjjjKjPjsjxjjjҭj׭j,j1jojtjjjejjjjjejjjjjjj6j;j8j=j~jj/j4j{jjjjjjLjQjjj#j(jjj jjjjjjjjRjWjjj=jBjjjjj jjjjj#jjjjjjjj j,j1jTjYjjjjjpjujjjrjwjjjjjj jjjbjgjjjjjRjWj>jCjj jjjJjOj9j>jujzjjj j j j j j j jj~jjjjjjHjMjjjjjjjj$jYj^jjjQ!jV!j"j"j%j%j&j&j'j'j *j*jF,jK,j-j-j/j/jg1jl1j3j3j7j7j}:j:j>=jC=j>j>jh@jm@j,Bj1BjCjCjEjEj5Gj:GjHjHjNJjSJjKjKjMjMjOjOjRjRjTjTjVjVjYj#YjG[jL[j\j]j^j^j<`jA`jajajbjbjcjcjejejfjfjgjgjhjhj%jj*jjMljRljunjznjMpjRpjqjrjsjsjtjtjvjvjxjxjyjyjzjzj~j~jVj[jgjljjjՋjڋjj j,j1jrjwjjjђj֒jjjIjNjjjjjߙjjjj+j0jjjDjIj jjju footnote_refs}j](j79jt;es citation_refs} autofootnotes]j;aautofootnote_refs](j79jt;esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jtKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.