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)}(hList Management Functionsh]hList Management Functions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singleINIT_LIST_HEAD (C function)c.INIT_LIST_HEADhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h,void INIT_LIST_HEAD (struct list_head *list)h]hdesc_signature_line)}(h+void INIT_LIST_HEAD(struct list_head *list)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hhhhhNhNubah}(h]h ]ktah"]h$]h&]uh1hhhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKubhdesc_sig_space)}(h h]h }(hhhhhNhNubah}(h]h ]wah"]h$]h&]uh1hhhhhhhhKubh desc_name)}(hINIT_LIST_HEADh]h desc_sig_name)}(hINIT_LIST_HEADh]hINIT_LIST_HEAD}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1j hhhhhhhKubhdesc_parameterlist)}(h(struct list_head *list)h]hdesc_parameter)}(hstruct list_head *listh](hdesc_sig_keyword)}(hstructh]hstruct}(hj<hhhNhNubah}(h]h ]kah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(h list_headh]h list_head}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomaincreftype identifier reftargetj^modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jx ASTIdentifier)}jsjsbc.INIT_LIST_HEADasbuh1hhj6ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhj6ubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubah}(h]h ]h"]h$]h&]j,j-uh1j.hhhhhhhKubeh}(h]h ]h"]h$]h&]j,j- add_permalinkuh1hsphinx_line_type declaratorhhhhhhhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhhhKhhhhubh desc_content)}(hhh]h paragraph)}(h Initialize a list_head structureh]h Initialize a list_head structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhhhhhhhKubeh}(h]h ](jqfunctioneh"]h$]h&]domainjqobjtypejdesctypejnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh container)}(h**Parameters** ``struct list_head *list`` list_head structure to be initialized. **Description** Initializes the list_head to point to itself. If it is a list header, the result is an empty list.h](j)}(h**Parameters**h]hstrong)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhK!hjubhdefinition_list)}(hhh]hdefinition_list_item)}(hB``struct list_head *list`` list_head structure to be initialized. h](hterm)}(h``struct list_head *list``h]hliteral)}(hj+h]hstruct list_head *list}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj#ubh definition)}(hhh]j)}(h&list_head structure to be initialized.h]h&list_head structure to be initialized.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhKhjEubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hjBhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhK hjubj)}(hcInitializes the list_head to point to itself. If it is a list header, the result is an empty list.h]hcInitializes the list_head to point to itself. If it is a list header, the result is an empty list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhK hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add (C function) c.list_addhNtauh1hhhhhhNhNubh)}(hhh](h)}(h=void list_add (struct list_head *new, struct list_head *head)h]h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsb c.list_addasbuh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(h list_headh]h list_head}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j& c.list_addasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hadd a new entryh]hadd a new entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(h**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.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hKhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hKhjubj")}(h5``struct list_head *head`` list head to add it after h](j()}(h``struct list_head *head``h]j.)}(hjYh]hstruct list_head *head}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjSubjD)}(hhh]j)}(hlist head to add it afterh]hlist head to add it after}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add_tail (C function)c.list_add_tailhNtauh1hhhhhhNhNubh)}(hhh](h)}(hBvoid list_add_tail (struct list_head *new, struct list_head *head)h]h)}(hAvoid list_add_tail(struct list_head *new, struct list_head *head)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h list_add_tailh]j)}(h list_add_tailh]h list_add_tail}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h/(struct list_head *new, struct list_head *head)h](j5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j)}jsjsbc.list_add_tailasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jPc.list_add_tailasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hadd a new entryh]hadd a new entry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!jj!jjjuh1hhhhhhNhNubj)}(h**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.h](j)}(h**Parameters**h]j)}(hj+h]h Parameters}(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:9: ./include/linux/list.hhKhj%ubj)}(hhh](j")}(h0``struct list_head *new`` new entry to be added h](j()}(h``struct list_head *new``h]j.)}(hjJh]hstruct list_head *new}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjDubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhjAubj")}(h6``struct list_head *head`` list head to add it before h](j()}(h``struct list_head *head``h]j.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj}ubjD)}(hhh]j)}(hlist head to add it beforeh]hlist head to add it before}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj%ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_del (C function) c.list_delhNtauh1hhhhhhNhNubh)}(hhh](h)}(h'void list_del (struct list_head *entry)h]h)}(h&void list_del(struct list_head *entry)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hlist_delh]j)}(hlist_delh]hlist_del}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj@hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj<ubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j)}(h list_headh]h list_head}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj`modnameN classnameNjwjz)}j}]j)}jsj&sb c.list_delasbuh1hhj<ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hdeletes entry from list.h]hdeletes entry from list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(h**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.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubj)}(hhh]j")}(hA``struct list_head *entry`` the element to delete from the list. h](j()}(h``struct list_head *entry``h]j.)}(hjh]hstruct list_head *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubjD)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hj?h]hNote}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubj)}(hZlist_empty() on entry does not return true after this, the entry is in an undefined state.h]hZlist_empty() on entry does not return true after this, the entry is in an undefined state.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_replace (C function)c.list_replacehNtauh1hhhhhhNhNubh)}(hhh](h)}(h@void list_replace (struct list_head *old, struct list_head *new)h]h)}(h?void list_replace(struct list_head *old, struct list_head *new)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h list_replaceh]j)}(h list_replaceh]h list_replace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h.(struct list_head *old, struct list_head *new)h](j5)}(hstruct list_head *oldh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_replaceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hj3 hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ ubh)}(h h]h }(hj@ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ ubh)}(hhh]j)}(h list_headh]h list_head}(hjQ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjS modnameN classnameNjwjz)}j}]jc.list_replaceasbuh1hhj/ ubh)}(h h]h }(hjo hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ ubj)}(hjh]h*}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ ubj)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjyhhubj)}(hhh]j)}(hreplace old entry by new oneh]hreplace old entry by new one}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *old`` the element to be replaced ``struct list_head *new`` the new element to insert **Description** If **old** was empty, it will be overwritten.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:9: ./include/linux/list.hhKhj ubj)}(hhh](j")}(h5``struct list_head *old`` the element to be replaced h](j()}(h``struct list_head *old``h]j.)}(hj h]hstruct list_head *old}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj ubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubj")}(h4``struct list_head *new`` the new element to insert h](j()}(h``struct list_head *new``h]j.)}(hj. h]hstruct list_head *new}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj, ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj( ubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC hKhjD ubah}(h]h ]h"]h$]h&]uh1jChj( ubeh}(h]h ]h"]h$]h&]uh1j!hjC hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hji h]h Description}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj ubj)}(h-If **old** was empty, it will be overwritten.h](hIf }(hj hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh# was empty, it will be overwritten.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_replace_init (C function)c.list_replace_inithNtauh1hhhhhhNhNubh)}(hhh](h)}(hEvoid list_replace_init (struct list_head *old, struct list_head *new)h]h)}(hDvoid list_replace_init(struct list_head *old, struct list_head *new)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hKubj)}(hlist_replace_inith]j)}(hlist_replace_inith]hlist_replace_init}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hKubj/)}(h.(struct list_head *old, struct list_head *new)h](j5)}(hstruct list_head *oldh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.list_replace_initasbuh1hhj ubh)}(h h]h }(hj; hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(holdh]hold}(hjV hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hjo hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjk ubh)}(h h]h }(hj| hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk ubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j7 c.list_replace_initasbuh1hhjk ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhj hhubj)}(hhh]j)}(h7replace old entry by new one and initialize the old oneh]h7replace old entry by new one and initialize the old one}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *old`` the element to be replaced ``struct list_head *new`` the new element to insert **Description** If **old** was empty, it will be overwritten.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:9: ./include/linux/list.hhKhj ubj)}(hhh](j")}(h5``struct list_head *old`` the element to be replaced h](j()}(h``struct list_head *old``h]j.)}(hj1 h]hstruct list_head *old}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj+ ubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF hKhjG ubah}(h]h ]h"]h$]h&]uh1jChj+ ubeh}(h]h ]h"]h$]h&]uh1j!hjF hKhj( ubj")}(h4``struct list_head *new`` the new element to insert h](j()}(h``struct list_head *new``h]j.)}(hjj h]hstruct list_head *new}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjh ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhjd ubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChjd ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj( ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj h]h Description}(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:9: ./include/linux/list.hhKhj ubj)}(h-If **old** was empty, it will be overwritten.h](hIf }(hj hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh# was empty, it will be overwritten.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_swap (C function) c.list_swaphNtauh1hhhhhhNhNubh)}(hhh](h)}(hCvoid list_swap (struct list_head *entry1, struct list_head *entry2)h]h)}(hBvoid list_swap(struct list_head *entry1, struct list_head *entry2)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hM ubj)}(h list_swaph]j)}(h list_swaph]h list_swap}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hM ubj/)}(h4(struct list_head *entry1, struct list_head *entry2)h](j5)}(hstruct list_head *entry1h](j;)}(hj>h]hstruct}(hj9 hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5 ubh)}(h h]h }(hjF hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5 ubh)}(hhh]j)}(h list_headh]h list_head}(hjW hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjY modnameN classnameNjwjz)}j}]j)}jsj sb c.list_swapasbuh1hhj5 ubh)}(h h]h }(hjw hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5 ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5 ubj)}(hentry1h]hentry1}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5 ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1 ubj5)}(hstruct list_head *entry2h](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]js c.list_swapasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hentry2h]hentry2}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1 ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM hj hhubj)}(hhh]j)}(hAreplace entry1 with entry2 and re-add entry1 at entry2's positionh]hCreplace entry1 with entry2 and re-add entry1 at entry2’s position}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hj)hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *entry1`` the location to place entry2 ``struct list_head *entry2`` the location to place entry1h](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjHubj)}(hhh](j")}(h:``struct list_head *entry1`` the location to place entry2 h](j()}(h``struct list_head *entry1``h]j.)}(hjmh]hstruct list_head *entry1}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjgubjD)}(hhh]j)}(hthe location to place entry2h]hthe location to place entry2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(h9``struct list_head *entry2`` the location to place entry1h](j()}(h``struct list_head *entry2``h]j.)}(hjh]hstruct list_head *entry2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjubjD)}(hhh]j)}(hthe location to place entry1h]hthe location to place entry1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_del_init (C function)c.list_del_inithNtauh1hhhhhhNhNubh)}(hhh](h)}(h,void list_del_init (struct list_head *entry)h]h)}(h+void list_del_init(struct list_head *entry)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h list_del_inith]j)}(h list_del_inith]h list_del_init}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj=hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj9ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j)}(h list_headh]h list_head}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj#sbc.list_del_initasbuh1hhj9ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h,deletes entry from list and reinitialize it.h]h,deletes entry from list and reinitialize it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(hR**Parameters** ``struct list_head *entry`` the element to delete from the list.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjubj)}(hhh]j")}(h@``struct list_head *entry`` the element to delete from the list.h](j()}(h``struct list_head *entry``h]j.)}(hjh]hstruct list_head *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjubjD)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_move (C function) c.list_movehNtauh1hhhhhhNhNubh)}(hhh](h)}(h?void list_move (struct list_head *list, struct list_head *head)h]h)}(h>void list_move(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM$ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWhhhjihM$ubj)}(h list_moveh]j)}(h list_moveh]h list_move}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjWhhhjihM$ubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj~sb c.list_moveasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]j c.list_moveasbuh1hhjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjWhhhjihM$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjihM$ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihM$hjPhhubj)}(hhh]j)}(h.delete from one list and add as another's headh]h0delete from one list and add as another’s head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjihM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` the entry to move ``struct list_head *head`` the head that will precede our entryh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM(hjubj)}(hhh](j")}(h-``struct list_head *list`` the entry to move h](j()}(h``struct list_head *list``h]j.)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM%hjubjD)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM%hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM%hjubj")}(h?``struct list_head *head`` the head that will precede our entryh](j()}(h``struct list_head *head``h]j.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM'hjubjD)}(hhh]j)}(h$the head that will precede our entryh]h$the head that will precede our entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM&hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_move_tail (C function)c.list_move_tailhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDvoid list_move_tail (struct list_head *list, struct list_head *head)h]h)}(hCvoid list_move_tail(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM/ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[hhhjmhM/ubj)}(hlist_move_tailh]j)}(hlist_move_tailh]hlist_move_tail}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[hhhjmhM/ubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_move_tailasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]jc.list_move_tailasbuh1hhj ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hheadh]hhead}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj[hhhjmhM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjmhM/ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhM/hjThhubj)}(hhh]j)}(h.delete from one list and add as another's tailh]h0delete from one list and add as another’s tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM/hjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` the entry to move ``struct list_head *head`` the head that will follow our entryh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM3hjubj)}(hhh](j")}(h-``struct list_head *list`` the entry to move h](j()}(h``struct list_head *list``h]j.)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM0hjubjD)}(hhh]j)}(hthe entry to moveh]hthe entry to move}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM0hjubj")}(h>``struct list_head *head`` the head that will follow our entryh](j()}(h``struct list_head *head``h]j.)}(hj h]hstruct list_head *head}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM2hjubjD)}(hhh]j)}(h#the head that will follow our entryh]h#the head that will follow our entry}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM1hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ list_bulk_move_tail (C function)c.list_bulk_move_tailhNtauh1hhhhhhNhNubh)}(hhh](h)}(hbvoid list_bulk_move_tail (struct list_head *head, struct list_head *first, struct list_head *last)h]h)}(havoid list_bulk_move_tail(struct list_head *head, struct list_head *first, struct list_head *last)h](h)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM;ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhjqhM;ubj)}(hlist_bulk_move_tailh]j)}(hlist_bulk_move_tailh]hlist_bulk_move_tail}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhhjqhM;ubj/)}(hI(struct list_head *head, struct list_head *first, struct list_head *last)h](j5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_bulk_move_tailasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *firsth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]jc.list_bulk_move_tailasbuh1hhjubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfirsth]hfirst}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *lasth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.list_bulk_move_tailasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hlasth]hlast}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj_hhhjqhM;ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhjqhM;ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhM;hjXhhubj)}(hhh]j)}(h'move a subsection of a list to its tailh]h'move a subsection of a list to its tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM;hjhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhM;ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(hXb**Parameters** ``struct list_head *head`` the head that will follow our entry ``struct list_head *first`` first entry to move ``struct list_head *last`` last entry to move, can be the same as first **Description** Move all entries between **first** and including **last** before **head**. All three entries must belong to the same linked list.h](j)}(h**Parameters**h]j)}(hj%h]h Parameters}(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:9: ./include/linux/list.hhM?hjubj)}(hhh](j")}(h?``struct list_head *head`` the head that will follow our entry h](j()}(h``struct list_head *head``h]j.)}(hjDh]hstruct list_head *head}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM<hj>ubjD)}(hhh]j)}(h#the head that will follow our entryh]h#the head that will follow our entry}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM<hjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhM<hj;ubj")}(h0``struct list_head *first`` first entry to move h](j()}(h``struct list_head *first``h]j.)}(hj}h]hstruct list_head *first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM=hjwubjD)}(hhh]j)}(hfirst entry to moveh]hfirst entry to move}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhM=hj;ubj")}(hH``struct list_head *last`` last entry to move, can be the same as first h](j()}(h``struct list_head *last``h]j.)}(hjh]hstruct list_head *last}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM>hjubjD)}(hhh]j)}(h,last entry to move, can be the same as firsth]h,last entry to move, can be the same as first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM>hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM>hj;ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM@hjubj)}(hMove all entries between **first** and including **last** before **head**. All three entries must belong to the same linked list.h](hMove all entries between }(hjhhhNhNubj)}(h **first**h]hfirst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and including }(hjhhhNhNubj)}(h**last**h]hlast}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh before }(hjhhhNhNubj)}(h**head**h]hhead}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8. All three entries must belong to the same linked list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_is_first (C function)c.list_is_firsthNtauh1hhhhhhNhNubh)}(hhh](h)}(hNint list_is_first (const struct list_head *list, const struct list_head *head)h]h)}(hMint list_is_first(const struct list_head *list, const struct list_head *head)h](h)}(hinth]hint}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMRubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhMRubj)}(h list_is_firsth]j)}(h list_is_firsth]h list_is_first}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhhjzhMRubj/)}(h<(const struct list_head *list, const struct list_head *head)h](j5)}(hconst struct list_head *listh](j;)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_is_firstasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(h list_headh]h list_head}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jc.list_is_firstasbuh1hhj3ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhhjzhMRubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjzhMRubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMRhjahhubj)}(hhh]h bullet_list)}(hhh]h list_item)}(h:tests whether **list** is the first entry in list **head**h]j)}(hjh](htests whether }(hjhhhNhNubj)}(h**list**h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is the first entry in list }(hjhhhNhNubj)}(h**head**h]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMRhjubah}(h]h ]h"]h$]h&]uh1jhjhhhj hNubah}(h]h ]h"]h$]h&]bullet-uh1jhj hMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhMRubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#jj#jjjuh1hhhhhhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](j)}(h**Parameters**h]j)}(hj-h]h Parameters}(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:9: ./include/linux/list.hhMVhj'ubj)}(hhh](j")}(h3``const struct list_head *list`` the entry to test h](j()}(h ``const struct list_head *list``h]j.)}(hjLh]hconst struct list_head *list}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMShjFubjD)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMShjbubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjahMShjCubj")}(h5``const struct list_head *head`` the head of the listh](j()}(h ``const struct list_head *head``h]j.)}(hjh]hconst struct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMUhjubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMThjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMUhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_is_last (C function)c.list_is_lasthNtauh1hhhhhhNhNubh)}(hhh](h)}(hMint list_is_last (const struct list_head *list, const struct list_head *head)h]h)}(hLint list_is_last(const struct list_head *list, const struct list_head *head)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM\ubj)}(h list_is_lasth]j)}(h list_is_lasth]h list_is_last}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM\ubj/)}(h<(const struct list_head *list, const struct list_head *head)h](j5)}(hconst struct list_head *listh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_is_lastasbuh1hhjubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jqc.list_is_lastasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM\hjhhubj)}(hhh]j)}(h9tests whether **list** is the last entry in list **head**h](htests whether }(hjEhhhNhNubj)}(h**list**h]hlist}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh is the last entry in list }(hjEhhhNhNubj)}(h**head**h]hhead}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM\hjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}jj}jjjuh1hhhhhhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM`hjubj)}(hhh](j")}(h3``const struct list_head *list`` the entry to test h](j()}(h ``const struct list_head *list``h]j.)}(hjh]hconst struct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM]hjubjD)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM]hjubj")}(h5``const struct list_head *head`` the head of the listh](j()}(h ``const struct list_head *head``h]j.)}(hjh]hconst struct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM_hjubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM^hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM_hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_is_head (C function)c.list_is_headhNtauh1hhhhhhNhNubh)}(hhh](h)}(hMint list_is_head (const struct list_head *list, const struct list_head *head)h]h)}(hLint list_is_head(const struct list_head *list, const struct list_head *head)h](h)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMfubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjGhMfubj)}(h list_is_headh]j)}(h list_is_headh]h list_is_head}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhjGhMfubj/)}(h<(const struct list_head *list, const struct list_head *head)h](j5)}(hconst struct list_head *listh](j;)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj\sbc.list_is_headasbuh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]jc.list_is_headasbuh1hhjubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhjGhMfubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjGhMfubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMfhj.hhubj)}(hhh]j)}(h+tests whether **list** is the list **head**h](htests whether }(hjhhhNhNubj)}(h**list**h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is the list }(hjhhhNhNubj)}(h**head**h]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMfhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMfubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(h}**Parameters** ``const struct list_head *list`` the entry to test ``const struct list_head *head`` the head of the listh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMjhjubj)}(hhh](j")}(h3``const struct list_head *list`` the entry to test h](j()}(h ``const struct list_head *list``h]j.)}(hjh]hconst struct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMghjubjD)}(hhh]j)}(hthe entry to testh]hthe entry to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMghjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMghjubj")}(h5``const struct list_head *head`` the head of the listh](j()}(h ``const struct list_head *head``h]j.)}(hj9h]hconst struct list_head *head}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMihj3ubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhMihjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_empty (C function) c.list_emptyhNtauh1hhhhhhNhNubh)}(hhh](h)}(h-int list_empty (const struct list_head *head)h]h)}(h,int list_empty(const struct list_head *head)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMpubj)}(h list_emptyh]j)}(h list_emptyh]h list_empty}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMpubj/)}(h(const struct list_head *head)h]j5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsb c.list_emptyasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjhhubj)}(hhh]j)}(htests whether a list is emptyh]htests whether a list is empty}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMphjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhhhNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMthjubj)}(hhh]j")}(h2``const struct list_head *head`` the list to test.h](j()}(h ``const struct list_head *head``h]j.)}(hjh]hconst struct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMvhjubjD)}(hhh]j)}(hthe list to test.h]hthe list to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMqhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_del_init_careful (C function)c.list_del_init_carefulhNtauh1hhhhhhNhNubh)}(hhh](h)}(h4void list_del_init_careful (struct list_head *entry)h]h)}(h3void list_del_init_careful(struct list_head *entry)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMyubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMyubj)}(hlist_del_init_carefulh]j)}(hlist_del_init_carefulh]hlist_del_init_careful}(hj* hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj& ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hMyubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hjF hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjB ubh)}(h h]h }(hjS hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB ubh)}(hhh]j)}(h list_headh]h list_head}(hjd hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjf modnameN classnameNjwjz)}j}]j)}jsj, sbc.list_del_init_carefulasbuh1hhjB ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB ubj)}(hentryh]hentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjB ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj> ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hMyubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMyhjhhubj)}(hhh]j)}(h,deletes entry from list and reinitialize it.h]h,deletes entry from list and reinitialize it.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMyhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMyubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct list_head *entry`` the element to delete from the list. **Description** This is the same as list_del_init(), except designed to be used together with list_empty_careful() in a way to guarantee ordering of other memory operations. Any memory operations done before a list_del_init_careful() are guaranteed to be visible after a list_empty_careful() test.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:9: ./include/linux/list.hhM}hj 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&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMzhj!ubjD)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj#!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMzhj !ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMzhj!ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjE!h]h Description}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM|hj ubj)}(hThis is the same as list_del_init(), except designed to be used together with list_empty_careful() in a way to guarantee ordering of other memory operations.h]hThis is the same as list_del_init(), except designed to be used together with list_empty_careful() in a way to guarantee ordering of other memory operations.}(hj[!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM|hj ubj)}(h{Any memory operations done before a list_del_init_careful() are guaranteed to be visible after a list_empty_careful() test.h]h{Any memory operations done before a list_del_init_careful() are guaranteed to be visible after a list_empty_careful() test.}(hjj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_empty_careful (C function)c.list_empty_carefulhNtauh1hhhhhhNhNubh)}(hhh](h)}(h5int list_empty_careful (const struct list_head *head)h]h)}(h4int list_empty_careful(const struct list_head *head)h](h)}(hinth]hint}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj!hMubj)}(hlist_empty_carefulh]j)}(hlist_empty_carefulh]hlist_empty_careful}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj!hMubj/)}(h(const struct list_head *head)h]j5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj;)}(hj>h]hstruct}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hhh]j)}(h list_headh]h list_head}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj "ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j)}jsj!sbc.list_empty_carefulasbuh1hhj!ubh)}(h h]h }(hj/"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hj="hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hheadh]hhead}(hjJ"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj!ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj!hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj!hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hMhj!hhubj)}(hhh]j)}(h4tests whether a list is empty and not being modifiedh]h4tests whether a list is empty and not being modified}(hjt"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjq"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const struct list_head *head`` the list to test **Description** tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev) **NOTE** using list_empty_careful() without synchronization can only be safe if the only activity that can happen to the list entry is list_del_init(). Eg. it cannot be used if another CPU could re-list_add() it.h](j)}(h**Parameters**h]j)}(hj"h]h Parameters}(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:9: ./include/linux/list.hhMhj"ubj)}(hhh]j")}(h2``const struct list_head *head`` the list to test h](j()}(h ``const struct list_head *head``h]j.)}(hj"h]hconst struct list_head *head}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj"ubjD)}(hhh]j)}(hthe list to testh]hthe list to test}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubj)}(h**Description**h]j)}(hj"h]h Description}(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:9: ./include/linux/list.hhMhj"ubj)}(h~tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev)h]h~tests whether a list is empty _and_ checks that no other CPU might be in the process of modifying either member (next or prev)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj"ubj)}(h**NOTE**h]j)}(hj#h]hNOTE}(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:9: ./include/linux/list.hhMhj"ubj)}(husing list_empty_careful() without synchronization can only be safe if the only activity that can happen to the list entry is list_del_init(). Eg. it cannot be used if another CPU could re-list_add() it.h]husing list_empty_careful() without synchronization can only be safe if the only activity that can happen to the list entry is list_del_init(). Eg. it cannot be used if another CPU could re-list_add() it.}(hj-#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_rotate_left (C function)c.list_rotate_lefthNtauh1hhhhhhNhNubh)}(hhh](h)}(h.void list_rotate_left (struct list_head *head)h]h)}(h-void list_rotate_left(struct list_head *head)h](h)}(hvoidh]hvoid}(hj\#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX#hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjk#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjX#hhhjj#hMubj)}(hlist_rotate_lefth]j)}(hlist_rotate_lefth]hlist_rotate_left}(hj}#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjX#hhhjj#hMubj/)}(h(struct list_head *head)h]j5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hhh]j)}(h list_headh]h list_head}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsj#sbc.list_rotate_leftasbuh1hhj#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hheadh]hhead}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjX#hhhjj#hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjT#hhhjj#hMubah}(h]jO#ah ](jjeh"]h$]h&]jj)jhuh1hhjj#hMhjQ#hhubj)}(hhh]j)}(hrotate the list to the lefth]hrotate the list to the left}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjQ#hhhjj#hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4$jj4$jjjuh1hhhhhhNhNubj)}(hA**Parameters** ``struct list_head *head`` the head of the listh](j)}(h**Parameters**h]j)}(hj>$h]h Parameters}(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:9: ./include/linux/list.hhMhj8$ubj)}(hhh]j")}(h/``struct list_head *head`` the head of the listh](j()}(h``struct list_head *head``h]j.)}(hj]$h]hstruct list_head *head}(hj_$hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[$ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjW$ubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjv$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjs$ubah}(h]h ]h"]h$]h&]uh1jChjW$ubeh}(h]h ]h"]h$]h&]uh1j!hjr$hMhjT$ubah}(h]h ]h"]h$]h&]uh1jhj8$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_rotate_to_front (C function)c.list_rotate_to_fronthNtauh1hhhhhhNhNubh)}(hhh](h)}(hJvoid list_rotate_to_front (struct list_head *list, struct list_head *head)h]h)}(hIvoid list_rotate_to_front(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj$hMubj)}(hlist_rotate_to_fronth]j)}(hlist_rotate_to_fronth]hlist_rotate_to_front}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj$hMubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(h list_headh]h list_head}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j)}jsj$sbc.list_rotate_to_frontasbuh1hhj$ubh)}(h h]h }(hj2%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hj@%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hlisth]hlist}(hjM%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjf%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjb%ubh)}(h h]h }(hjs%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjb%ubh)}(hhh]j)}(h list_headh]h list_head}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j.%c.list_rotate_to_frontasbuh1hhjb%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjb%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb%ubj)}(hheadh]hhead}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjb%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj$hhhj$hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj$hhhj$hMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj$hhubj)}(hhh]j)}(hRotate list to specific item.h]hRotate list to specific item.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` The desired new front of the list. ``struct list_head *head`` The head of the list. **Description** Rotates list so that **list** becomes the new front of the list.h](j)}(h**Parameters**h]j)}(hj &h]h Parameters}(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:9: ./include/linux/list.hhMhj&ubj)}(hhh](j")}(h>``struct list_head *list`` The desired new front of the list. h](j()}(h``struct list_head *list``h]j.)}(hj(&h]hstruct list_head *list}(hj*&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj&&ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj"&ubjD)}(hhh]j)}(h"The desired new front of the list.h]h"The desired new front of the list.}(hjA&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=&hMhj>&ubah}(h]h ]h"]h$]h&]uh1jChj"&ubeh}(h]h ]h"]h$]h&]uh1j!hj=&hMhj&ubj")}(h1``struct list_head *head`` The head of the list. h](j()}(h``struct list_head *head``h]j.)}(hja&h]hstruct list_head *head}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_&ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj[&ubjD)}(hhh]j)}(hThe head of the list.h]hThe head of the list.}(hjz&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv&hMhjw&ubah}(h]h ]h"]h$]h&]uh1jChj[&ubeh}(h]h ]h"]h$]h&]uh1j!hjv&hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubj)}(h**Description**h]j)}(hj&h]h Description}(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:9: ./include/linux/list.hhMhj&ubj)}(h@Rotates list so that **list** becomes the new front of the list.h](hRotates list so that }(hj&hhhNhNubj)}(h**list**h]hlist}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh# becomes the new front of the list.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_is_singular (C function)c.list_is_singularhNtauh1hhhhhhNhNubh)}(hhh](h)}(h3int list_is_singular (const struct list_head *head)h]h)}(h2int list_is_singular(const struct list_head *head)h](h)}(hinth]hint}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj'hMubj)}(hlist_is_singularh]j)}(hlist_is_singularh]hlist_is_singular}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhhj'hMubj/)}(h(const struct list_head *head)h]j5)}(hconst struct list_head *headh](j;)}(hjh]hconst}(hj0'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,'ubh)}(h h]h }(hj='hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,'ubj;)}(hj>h]hstruct}(hjK'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,'ubh)}(h h]h }(hjX'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,'ubh)}(hhh]j)}(h list_headh]h list_head}(hji'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjk'modnameN classnameNjwjz)}j}]j)}jsj'sbc.list_is_singularasbuh1hhj,'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,'ubj)}(hheadh]hhead}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj('ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj&hhhj'hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj'hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhj&hhubj)}(hhh]j)}(h(tests whether a list has just one entry.h]h(tests whether a list has just one entry.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj'hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'jj'jjjuh1hhhhhhNhNubj)}(hD**Parameters** ``const struct list_head *head`` the list to test.h](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(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:9: ./include/linux/list.hhMhj'ubj)}(hhh]j")}(h2``const struct list_head *head`` the list to test.h](j()}(h ``const struct list_head *head``h]j.)}(hj(h]hconst struct list_head *head}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj (ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj (ubjD)}(hhh]j)}(hthe list to test.h]hthe list to test.}(hj((hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj%(ubah}(h]h ]h"]h$]h&]uh1jChj (ubeh}(h]h ]h"]h$]h&]uh1j!hj$(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_cut_position (C function)c.list_cut_positionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h`void list_cut_position (struct list_head *list, struct list_head *head, struct list_head *entry)h]h)}(h_void list_cut_position(struct list_head *list, struct list_head *head, struct list_head *entry)h](h)}(hvoidh]hvoid}(hji(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhje(hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjx(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhje(hhhjw(hMubj)}(hlist_cut_positionh]j)}(hlist_cut_positionh]hlist_cut_position}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hje(hhhjw(hMubj/)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(h list_headh]h list_head}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j)}jsj(sbc.list_cut_positionasbuh1hhj(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hlisth]hlist}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hj%)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(h list_headh]h list_head}(hj6)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8)modnameN classnameNjwjz)}j}]j(c.list_cut_positionasbuh1hhj)ubh)}(h h]h }(hjT)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hjb)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hheadh]hhead}(hjo)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubj5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(h list_headh]h list_head}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j(c.list_cut_positionasbuh1hhj)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hentryh]hentry}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hje(hhhjw(hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhja(hhhjw(hMubah}(h]j\(ah ](jjeh"]h$]h&]jj)jhuh1hhjw(hMhj^(hhubj)}(hhh]j)}(hcut a list into twoh]hcut a list into two}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhj^(hhhjw(hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!*jj!*jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct list_head *list`` a new list to add all removed entries ``struct list_head *head`` a list with entries ``struct list_head *entry`` an entry within head, could be the head itself and if so we won't cut the list **Description** This helper moves the initial part of **head**, up to and including **entry**, from **head** to **list**. You should pass on **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data.h](j)}(h**Parameters**h]j)}(hj+*h]h Parameters}(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:9: ./include/linux/list.hhMhj%*ubj)}(hhh](j")}(hA``struct list_head *list`` a new list to add all removed entries h](j()}(h``struct list_head *list``h]j.)}(hjJ*h]hstruct list_head *list}(hjL*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjH*ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjD*ubjD)}(hhh]j)}(h%a new list to add all removed entriesh]h%a new list to add all removed entries}(hjc*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_*hMhj`*ubah}(h]h ]h"]h$]h&]uh1jChjD*ubeh}(h]h ]h"]h$]h&]uh1j!hj_*hMhjA*ubj")}(h/``struct list_head *head`` a list with entries h](j()}(h``struct list_head *head``h]j.)}(hj*h]hstruct list_head *head}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj}*ubjD)}(hhh]j)}(ha list with entriesh]ha list with entries}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jChj}*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hMhjA*ubj")}(hk``struct list_head *entry`` an entry within head, could be the head itself and if so we won't cut the list h](j()}(h``struct list_head *entry``h]j.)}(hj*h]hstruct list_head *entry}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj*ubjD)}(hhh]j)}(hNan entry within head, could be the head itself and if so we won't cut the listh]hPan entry within head, could be the head itself and if so we won’t cut the list}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj*ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hMhjA*ubeh}(h]h ]h"]h$]h&]uh1jhj%*ubj)}(h**Description**h]j)}(hj*h]h Description}(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:9: ./include/linux/list.hhMhj%*ubj)}(hThis helper moves the initial part of **head**, up to and including **entry**, from **head** to **list**. You should pass on **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data.h](h&This helper moves the initial part of }(hj+hhhNhNubj)}(h**head**h]hhead}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh, up to and including }(hj+hhhNhNubj)}(h **entry**h]hentry}(hj(+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh, from }(hj+hhhNhNubj)}(h**head**h]hhead}(hj:+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh to }(hj+hhhNhNubj)}(h**list**h]hlist}(hjL+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh. You should pass on }(hj+hhhNhNubj)}(h **entry**h]hentry}(hj^+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh an element you know is on }(hj+hhhNhNubj)}(h**head**h]hhead}(hjp+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh. }(hj+hhhNhNubj)}(h**list**h]hlist}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubhI should be an empty list or a list you do not care about losing its data.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj%*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_cut_before (C function)c.list_cut_beforehNtauh1hhhhhhNhNubh)}(hhh](h)}(h^void list_cut_before (struct list_head *list, struct list_head *head, struct list_head *entry)h]h)}(h]void list_cut_before(struct list_head *list, struct list_head *head, struct list_head *entry)h](h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hMubj)}(hlist_cut_beforeh]j)}(hlist_cut_beforeh]hlist_cut_before}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj+hMubj/)}(hI(struct list_head *list, struct list_head *head, struct list_head *entry)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hhh]j)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsj+sbc.list_cut_beforeasbuh1hhj+ubh)}(h h]h }(hj6,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hjh]h*}(hjD,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hlisth]hlist}(hjQ,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjf,ubh)}(h h]h }(hjw,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf,ubh)}(hhh]j)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j2,c.list_cut_beforeasbuh1hhjf,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf,ubj)}(hheadh]hhead}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(h list_headh]h list_head}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j2,c.list_cut_beforeasbuh1hhj,ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hj$-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hentryh]hentry}(hj1-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj+hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj+hMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hMhj+hhubj)}(hhh]j)}(h'cut a list into two, before given entryh]h'cut a list into two, before given entry}(hj[-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjX-hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjs-jjs-jjjuh1hhhhhhNhNubj)}(hX,**Parameters** ``struct list_head *list`` a new list to add all removed entries ``struct list_head *head`` a list with entries ``struct list_head *entry`` an entry within head, could be the head itself **Description** This helper moves the initial part of **head**, up to but excluding **entry**, from **head** to **list**. You should pass in **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data. If **entry** == **head**, all entries on **head** are moved to **list**.h](j)}(h**Parameters**h]j)}(hj}-h]h Parameters}(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:9: ./include/linux/list.hhMhjw-ubj)}(hhh](j")}(hA``struct list_head *list`` a new list to add all removed entries h](j()}(h``struct list_head *list``h]j.)}(hj-h]hstruct list_head *list}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj-ubjD)}(hhh]j)}(h%a new list to add all removed entriesh]h%a new list to add all removed entries}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj-hMhj-ubj")}(h/``struct list_head *head`` a list with entries h](j()}(h``struct list_head *head``h]j.)}(hj-h]hstruct list_head *head}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj-ubjD)}(hhh]j)}(ha list with entriesh]ha list with entries}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj-hMhj-ubj")}(hK``struct list_head *entry`` an entry within head, could be the head itself h](j()}(h``struct list_head *entry``h]j.)}(hj.h]hstruct list_head *entry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj .ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj.ubjD)}(hhh]j)}(h.an entry within head, could be the head itselfh]h.an entry within head, could be the head itself}(hj'.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#.hMhj$.ubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hj#.hMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjw-ubj)}(h**Description**h]j)}(hjI.h]h Description}(hjK.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjw-ubj)}(hXGThis helper moves the initial part of **head**, up to but excluding **entry**, from **head** to **list**. You should pass in **entry** an element you know is on **head**. **list** should be an empty list or a list you do not care about losing its data. If **entry** == **head**, all entries on **head** are moved to **list**.h](h&This helper moves the initial part of }(hj_.hhhNhNubj)}(h**head**h]hhead}(hjg.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh, up to but excluding }(hj_.hhhNhNubj)}(h **entry**h]hentry}(hjy.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh, from }(hj_.hhhNhNubj)}(h**head**h]hhead}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh to }(hj_.hhhNhNubj)}(h**list**h]hlist}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh. You should pass in }(hj_.hhhNhNubj)}(h **entry**h]hentry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh an element you know is on }(hj_.hhhNhNubj)}(h**head**h]hhead}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh. }(hj_.hhhNhNubj)}(h**list**h]hlist}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubhM should be an empty list or a list you do not care about losing its data. If }(hj_.hhhNhNubj)}(h **entry**h]hentry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh == }(hj_.hhhNhNubj)}(h**head**h]hhead}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh, all entries on }(hj_.hhhNhNubj)}(h**head**h]hhead}(hj /hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh are moved to }(hj_.hhhNhNubj)}(h**list**h]hlist}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_.ubh.}(hj_.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjw-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_splice (C function) c.list_splicehNtauh1hhhhhhNhNubh)}(hhh](h)}(hGvoid list_splice (const struct list_head *list, struct list_head *head)h]h)}(hFvoid list_splice(const struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hjT/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP/hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjc/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP/hhhjb/hMubj)}(h list_spliceh]j)}(h list_spliceh]h list_splice}(hju/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjq/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjP/hhhjb/hMubj/)}(h6(const struct list_head *list, struct list_head *head)h](j5)}(hconst struct list_head *listh](j;)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj;)}(hj>h]hstruct}(hj/hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(h list_headh]h list_head}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj/modnameN classnameNjwjz)}j}]j)}jsjw/sb c.list_spliceasbuh1hhj/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hlisth]hlist}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hj+0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(h list_headh]h list_head}(hj<0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj90ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>0modnameN classnameNjwjz)}j}]j/ c.list_spliceasbuh1hhj0ubh)}(h h]h }(hjZ0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hjh0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hheadh]hhead}(hju0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjP/hhhjb/hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjL/hhhjb/hMubah}(h]jG/ah ](jjeh"]h$]h&]jj)jhuh1hhjb/hMhjI/hhubj)}(hhh]j)}(h+join two lists, this is designed for stacksh]h+join two lists, this is designed for stacks}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjI/hhhjb/hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhhhNhNubj)}(h**Parameters** ``const struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list.h](j)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0ubj)}(hhh](j")}(h6``const struct list_head *list`` the new list to add. h](j()}(h ``const struct list_head *list``h]j.)}(hj0h]hconst struct list_head *list}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0ubjD)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhj0ubj")}(hA``struct list_head *head`` the place to add it in the first list.h](j()}(h``struct list_head *head``h]j.)}(hj1h]hstruct list_head *head}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj1ubjD)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hj21hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj/1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj.1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_splice_tail (C function)c.list_splice_tailhNtauh1hhhhhhNhNubh)}(hhh](h)}(hFvoid list_splice_tail (struct list_head *list, struct list_head *head)h]h)}(hEvoid list_splice_tail(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hjs1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo1hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM&ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjo1hhhj1hM&ubj)}(hlist_splice_tailh]j)}(hlist_splice_tailh]hlist_splice_tail}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjo1hhhj1hM&ubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j)}(h list_headh]h list_head}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsj1sbc.list_splice_tailasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hlisth]hlist}(hj 2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj"2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2ubh)}(h h]h }(hj/2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j)}(h list_headh]h list_head}(hj@2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjB2modnameN classnameNjwjz)}j}]j1c.list_splice_tailasbuh1hhj2ubh)}(h h]h }(hj^2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hjl2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hheadh]hhead}(hjy2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjo1hhhj1hM&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjk1hhhj1hM&ubah}(h]jf1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hM&hjh1hhubj)}(hhh]j)}(h'join two lists, each list being a queueh]h'join two lists, each list being a queue}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM&hj2hhubah}(h]h ]h"]h$]h&]uh1jhjh1hhhj1hM&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list.h](j)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM*hj2ubj)}(hhh](j")}(h0``struct list_head *list`` the new list to add. h](j()}(h``struct list_head *list``h]j.)}(hj2h]hstruct list_head *list}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM'hj2ubjD)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM'hj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hM'hj2ubj")}(hA``struct list_head *head`` the place to add it in the first list.h](j()}(h``struct list_head *head``h]j.)}(hj3h]hstruct list_head *head}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM)hj3ubjD)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hj63hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM(hj33ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj23hM)hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_splice_init (C function)c.list_splice_inithNtauh1hhhhhhNhNubh)}(hhh](h)}(hFvoid list_splice_init (struct list_head *list, struct list_head *head)h]h)}(hEvoid list_splice_init(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hjw3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs3hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM2ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs3hhhj3hM2ubj)}(hlist_splice_inith]j)}(hlist_splice_inith]hlist_splice_init}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjs3hhhj3hM2ubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(h list_headh]h list_head}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsj3sbc.list_splice_initasbuh1hhj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlisth]hlist}(hj 4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj&4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"4ubh)}(h h]h }(hj34hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"4ubh)}(hhh]j)}(h list_headh]h list_head}(hjD4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjA4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjF4modnameN classnameNjwjz)}j}]j3c.list_splice_initasbuh1hhj"4ubh)}(h h]h }(hjb4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"4ubj)}(hjh]h*}(hjp4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"4ubj)}(hheadh]hhead}(hj}4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjs3hhhj3hM2ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjo3hhhj3hM2ubah}(h]jj3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM2hjl3hhubj)}(hhh]j)}(h1join two lists and reinitialise the emptied list.h]h1join two lists and reinitialise the emptied list.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM2hj4hhubah}(h]h ]h"]h$]h&]uh1jhjl3hhhj3hM2ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list. **Description** The list at **list** is reinitialisedh](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM6hj4ubj)}(hhh](j")}(h0``struct list_head *list`` the new list to add. h](j()}(h``struct list_head *list``h]j.)}(hj4h]hstruct list_head *list}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM3hj4ubjD)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hM3hj4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj4hM3hj4ubj")}(hB``struct list_head *head`` the place to add it in the first list. h](j()}(h``struct list_head *head``h]j.)}(hj!5h]hstruct list_head *head}(hj#5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM4hj5ubjD)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj65hM4hj75ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj65hM4hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hj\5h]h Description}(hj^5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM6hj4ubj)}(h%The list at **list** is reinitialisedh](h The list at }(hjr5hhhNhNubj)}(h**list**h]hlist}(hjz5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh is reinitialised}(hjr5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM6hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_splice_tail_init (C function)c.list_splice_tail_inithNtauh1hhhhhhNhNubh)}(hhh](h)}(hKvoid list_splice_tail_init (struct list_head *list, struct list_head *head)h]h)}(hJvoid list_splice_tail_init(struct list_head *list, struct list_head *head)h](h)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMBubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhj5hMBubj)}(hlist_splice_tail_inith]j)}(hlist_splice_tail_inith]hlist_splice_tail_init}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhj5hMBubj/)}(h0(struct list_head *list, struct list_head *head)h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(h list_headh]h list_head}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j)}jsj5sbc.list_splice_tail_initasbuh1hhj5ubh)}(h h]h }(hj.6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hj<6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hlisth]hlist}(hjI6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjb6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^6ubh)}(h h]h }(hjo6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^6ubh)}(hhh]j)}(h list_headh]h list_head}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j*6c.list_splice_tail_initasbuh1hhj^6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^6ubj)}(hheadh]hhead}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhj5hMBubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhj5hMBubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMBhj5hhubj)}(hhh]j)}(h0join two lists and reinitialise the emptied listh]h0join two lists and reinitialise the emptied list}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMBhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMBubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6jj6jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct list_head *list`` the new list to add. ``struct list_head *head`` the place to add it in the first list. **Description** Each of the lists is a queue. The list at **list** is reinitialisedh](j)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMFhj6ubj)}(hhh](j")}(h0``struct list_head *list`` the new list to add. h](j()}(h``struct list_head *list``h]j.)}(hj$7h]hstruct list_head *list}(hj&7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"7ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMChj7ubjD)}(hhh]j)}(hthe new list to add.h]hthe new list to add.}(hj=7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj97hMChj:7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj97hMChj7ubj")}(hB``struct list_head *head`` the place to add it in the first list. h](j()}(h``struct list_head *head``h]j.)}(hj]7h]hstruct list_head *head}(hj_7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[7ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMDhjW7ubjD)}(hhh]j)}(h&the place to add it in the first list.h]h&the place to add it in the first list.}(hjv7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr7hMDhjs7ubah}(h]h ]h"]h$]h&]uh1jChjW7ubeh}(h]h ]h"]h$]h&]uh1j!hjr7hMDhj7ubeh}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMFhj6ubj)}(hCEach of the lists is a queue. The list at **list** is reinitialisedh](h*Each of the lists is a queue. The list at }(hj7hhhNhNubj)}(h**list**h]hlist}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh is reinitialised}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMFhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_entry (C macro) c.list_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(h list_entryh]h)}(h list_entryh]j)}(h list_entryh]j)}(hj7h]h list_entry}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMSubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj7hhhj8hMSubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMShj7hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7hhhj8hMSubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj8jj8jjjuh1hhhhhhNhNubj)}(h"``list_entry (ptr, type, member)``h]j.)}(hj%8h]hlist_entry (ptr, type, member)}(hj'8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMUhhhhubh block_quote)}(hget the struct for this entry h]j)}(hget the struct for this entryh]hget the struct for this entry}(hjA8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMShj=8ubah}(h]h ]h"]h$]h&]uh1j;8hjO8hMShhhhubj)}(h**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.h](j)}(h**Parameters**h]j)}(hj\8h]h Parameters}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMWhjV8ubj)}(hhh](j")}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j()}(h``ptr``h]j.)}(hj{8h]hptr}(hj}8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjy8ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMThju8ubjD)}(hhh]j)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hj8hhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hj8h]hstruct list_head}(hj8hhhNhNubah}(h]h ](xrefjqc-typeeh"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]refdoccore-api/kernel-api refdomainjqreftypetype refexplicitrefwarnjwjz)}j}]sb reftarget list_headuh1hhj8hMThj8ubh pointer.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj8hMThj8ubah}(h]h ]h"]h$]h&]uh1jChju8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMThjr8ubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hj8h]htype}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMUhj8ubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMUhj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMUhjr8ubj")}(h7``member`` the name of the list_head within the struct.h](j()}(h ``member``h]j.)}(hj9h]hmember}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMWhj9ubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj/9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMVhj,9ubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hj+9hMWhjr8ubeh}(h]h ]h"]h$]h&]uh1jhjV8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_first_entry (C macro)c.list_first_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_first_entryh]h)}(hlist_first_entryh]j)}(hlist_first_entryh]j)}(hjj9h]hlist_first_entry}(hjt9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjp9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjl9hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM\ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjh9hhhj9hM\ubah}(h]jc9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM\hje9hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhje9hhhj9hM\ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj9jj9jjjuh1hhhhhhNhNubj)}(h(``list_first_entry (ptr, type, member)``h]j.)}(hj9h]h$list_first_entry (ptr, type, member)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM^hhhhubj<8)}(h"get the first element from a list h]j)}(h!get the first element from a listh]h!get the first element from a list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM\hj9ubah}(h]h ]h"]h$]h&]uh1j;8hj9hM\hhhhubj)}(h**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 list is expected to be not empty.h](j)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM`hj9ubj)}(hhh](j")}(h0``ptr`` the list head to take the element from. h](j()}(h``ptr``h]j.)}(hj9h]hptr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM]hj9ubjD)}(hhh]j)}(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&]uh1jhj:hM]hj:ubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hj:hM]hj9ubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hj3:h]htype}(hj5:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1:ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM^hj-:ubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjL:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH:hM^hjI:ubah}(h]h ]h"]h$]h&]uh1jChj-:ubeh}(h]h ]h"]h$]h&]uh1j!hjH:hM^hj9ubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjl:h]hmember}(hjn:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjj:ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM_hjf:ubjD)}(hhh]j)}(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&]uh1jhj:hM_hj:ubah}(h]h ]h"]h$]h&]uh1jChjf:ubeh}(h]h ]h"]h$]h&]uh1j!hj:hM_hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubj)}(h**Description**h]j)}(hj:h]h Description}(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:9: ./include/linux/list.hhMahj9ubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMahj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_last_entry (C macro)c.list_last_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_last_entryh]h)}(hlist_last_entryh]j)}(hlist_last_entryh]j)}(hj:h]hlist_last_entry}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMgubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhj;hMgubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMghj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj;hMgubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj;jj;jjjuh1hhhhhhNhNubj)}(h'``list_last_entry (ptr, type, member)``h]j.)}(hj";h]h#list_last_entry (ptr, type, member)}(hj$;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMihhhhubj<8)}(h!get the last element from a list h]j)}(h get the last element from a listh]h get the last element from a list}(hj<;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMghj8;ubah}(h]h ]h"]h$]h&]uh1j;8hjJ;hMghhhhubj)}(h**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 list is expected to be not empty.h](j)}(h**Parameters**h]j)}(hjW;h]h Parameters}(hjY;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMkhjQ;ubj)}(hhh](j")}(h0``ptr`` the list head to take the element from. h](j()}(h``ptr``h]j.)}(hjv;h]hptr}(hjx;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjt;ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhjp;ubjD)}(hhh]j)}(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&]uh1jhj;hMhhj;ubah}(h]h ]h"]h$]h&]uh1jChjp;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhhjm;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&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMihj;ubjD)}(hhh]j)}(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&]uh1jhj;hMihj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMihjm;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&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMjhj;ubjD)}(hhh]j)}(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&]uh1jhj;hMjhj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMjhjm;ubeh}(h]h ]h"]h$]h&]uh1jhjQ;ubj)}(h**Description**h]j)}(hj#<h]h Description}(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:9: ./include/linux/list.hhMlhjQ;ubj)}(h,Note, that list is expected to be not empty.h]h,Note, that list is expected to be not empty.}(hj9<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMlhjQ;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_first_entry_or_null (C macro)c.list_first_entry_or_nullhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_first_entry_or_nullh]h)}(hlist_first_entry_or_nullh]j)}(hlist_first_entry_or_nullh]j)}(hjb<h]hlist_first_entry_or_null}(hjl<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjd<hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMrubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj`<hhhj<hMrubah}(h]j[<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMrhj]<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]<hhhj<hMrubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj<jj<jjjuh1hhhhhhNhNubj)}(h0``list_first_entry_or_null (ptr, type, member)``h]j.)}(hj<h]h,list_first_entry_or_null (ptr, type, member)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMthhhhubj<8)}(h"get the first element from a list h]j)}(h!get the first element from a listh]h!get the first element from a list}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMrhj<ubah}(h]h ]h"]h$]h&]uh1j;8hj<hMrhhhhubj)}(h**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.h](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(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:9: ./include/linux/list.hhMvhj<ubj)}(hhh](j")}(h0``ptr`` the list head to take the element from. h](j()}(h``ptr``h]j.)}(hj<h]hptr}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMshj<ubjD)}(hhh]j)}(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&]uh1jhj=hMshj=ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMshj<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&]uh1j-hj)=ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMthj%=ubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@=hMthjA=ubah}(h]h ]h"]h$]h&]uh1jChj%=ubeh}(h]h ]h"]h$]h&]uh1j!hj@=hMthj<ubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjd=h]hmember}(hjf=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjb=ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMuhj^=ubjD)}(hhh]j)}(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&]uh1jhjy=hMuhjz=ubah}(h]h ]h"]h$]h&]uh1jChj^=ubeh}(h]h ]h"]h$]h&]uh1j!hjy=hMuhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hj=h]h Description}(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:9: ./include/linux/list.hhMwhj<ubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMwhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_next_entry (C macro)c.list_next_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_next_entryh]h)}(hlist_next_entryh]j)}(hlist_next_entryh]j)}(hj=h]hlist_next_entry}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhj=hMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhj=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj>jj>jjjuh1hhhhhhNhNubj)}(h!``list_next_entry (pos, member)``h]j.)}(hj>h]hlist_next_entry (pos, member)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hj4>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0>ubah}(h]h ]h"]h$]h&]uh1j;8hjB>hMhhhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjO>h]h Parameters}(hjQ>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjI>ubj)}(hhh](j")}(h``pos`` the type * to cursor h](j()}(h``pos``h]j.)}(hjn>h]hpos}(hjp>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjl>ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjh>ubjD)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jChjh>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhje>ubj")}(h7``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&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj>ubjD)}(hhh]j)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhje>ubeh}(h]h ]h"]h$]h&]uh1jhjI>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_next_entry_circular (C macro)c.list_next_entry_circularhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_next_entry_circularh]h)}(hlist_next_entry_circularh]j)}(hlist_next_entry_circularh]j)}(hj>h]hlist_next_entry_circular}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj>hhhj?hMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMhj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj?hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj1?jj1?jjjuh1hhhhhhNhNubj)}(h0``list_next_entry_circular (pos, head, member)``h]j.)}(hj7?h]h,list_next_entry_circular (pos, head, member)}(hj9?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hget the next element in list h]j)}(hget the next element in listh]hget the next element in list}(hjQ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjM?ubah}(h]h ]h"]h$]h&]uh1j;8hj_?hMhhhhubj)}(hX**Parameters** ``pos`` the type * to cursor. ``head`` the list head to take the element from. ``member`` the name of the list_head within the struct. **Description** Wraparound if pos is the last element (return the first element). Note, that list is expected to be not empty.h](j)}(h**Parameters**h]j)}(hjl?h]h Parameters}(hjn?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjf?ubj)}(hhh](j")}(h``pos`` the type * to cursor. h](j()}(h``pos``h]j.)}(hj?h]hpos}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj?ubjD)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj?ubj")}(h1``head`` the list head to take the element from. h](j()}(h``head``h]j.)}(hj?h]hhead}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj?ubjD)}(hhh]j)}(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&]uh1jhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj?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&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj?ubjD)}(hhh]j)}(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&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhj?ubeh}(h]h ]h"]h$]h&]uh1jhjf?ubj)}(h**Description**h]j)}(hj8@h]h Description}(hj:@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjf?ubj)}(hnWraparound if pos is the last element (return the first element). Note, that list is expected to be not empty.h]hnWraparound if pos is the last element (return the first element). Note, that list is expected to be not empty.}(hjN@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjf?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_prev_entry (C macro)c.list_prev_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_prev_entryh]h)}(hlist_prev_entryh]j)}(hlist_prev_entryh]j)}(hjw@h]hlist_prev_entry}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjy@hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhju@hhhj@hMubah}(h]jp@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhjr@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjr@hhhj@hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj@jj@jjjuh1hhhhhhNhNubj)}(h!``list_prev_entry (pos, member)``h]j.)}(hj@h]hlist_prev_entry (pos, member)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj@ubah}(h]h ]h"]h$]h&]uh1j;8hj@hMhhhhubj)}(hi**Parameters** ``pos`` the type * to cursor ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(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:9: ./include/linux/list.hhMhj@ubj)}(hhh](j")}(h``pos`` the type * to cursor h](j()}(h``pos``h]j.)}(hjAh]hpos}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjAubjD)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhj@ubj")}(h7``member`` the name of the list_head within the struct.h](j()}(h ``member``h]j.)}(hj@Ah]hmember}(hjBAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>Aubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj:AubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjYAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjVAubah}(h]h ]h"]h$]h&]uh1jChj:Aubeh}(h]h ]h"]h$]h&]uh1j!hjUAhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_prev_entry_circular (C macro)c.list_prev_entry_circularhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_prev_entry_circularh]h)}(hlist_prev_entry_circularh]j)}(hlist_prev_entry_circularh]j)}(hjAh]hlist_prev_entry_circular}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjAhMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhjAhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjAjjAjjjuh1hhhhhhNhNubj)}(h0``list_prev_entry_circular (pos, head, member)``h]j.)}(hjAh]h,list_prev_entry_circular (pos, head, member)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hget the prev element in list h]j)}(hget the prev element in listh]hget the prev element in list}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjAubah}(h]h ]h"]h$]h&]uh1j;8hjAhMhhhhubj)}(hX**Parameters** ``pos`` the type * to cursor. ``head`` the list head to take the element from. ``member`` the name of the list_head within the struct. **Description** Wraparound if pos is the first element (return the last element). Note, that list is expected to be not empty.h](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjAubj)}(hhh](j")}(h``pos`` the type * to cursor. h](j()}(h``pos``h]j.)}(hj$Bh]hpos}(hj&BhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"Bubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjBubjD)}(hhh]j)}(hthe type * to cursor.h]hthe type * to cursor.}(hj=BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9BhMhj:Bubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj9BhMhjBubj")}(h1``head`` the list head to take the element from. h](j()}(h``head``h]j.)}(hj]Bh]hhead}(hj_BhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[Bubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjWBubjD)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjvBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrBhMhjsBubah}(h]h ]h"]h$]h&]uh1jChjWBubeh}(h]h ]h"]h$]h&]uh1j!hjrBhMhjBubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjBh]hmember}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjBubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhjBubeh}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjAubj)}(hnWraparound if pos is the first element (return the last element). Note, that list is expected to be not empty.h]hnWraparound if pos is the first element (return the last element). Note, that list is expected to be not empty.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_for_each (C macro)c.list_for_eachhNtauh1hhhhhhNhNubh)}(hhh](h)}(h list_for_eachh]h)}(h list_for_eachh]j)}(h list_for_eachh]j)}(hjCh]h list_for_each}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhj-ChMubah}(h]j Cah ](jjeh"]h$]h&]jj)jhuh1hhj-ChMhj Chhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj Chhhj-ChMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjFCjjFCjjjuh1hhhhhhNhNubj)}(h``list_for_each (pos, head)``h]j.)}(hjLCh]hlist_for_each (pos, head)}(hjNChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hiterate over a list h]j)}(hiterate over a listh]hiterate over a list}(hjfChhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjbCubah}(h]h ]h"]h$]h&]uh1j;8hjtChMhhhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj{Cubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjCh]hpos}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjCubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjChhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjCh]hstruct list_head}(hjChhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjChMhjCubh to use as a loop cursor.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjCubj")}(h ``head`` the head for your list.h](j()}(h``head``h]j.)}(hjCh]hhead}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjCubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjDubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjDhMhjCubeh}(h]h ]h"]h$]h&]uh1jhj{Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_for_each_rcu (C macro)c.list_for_each_rcuhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_rcuh]h)}(hlist_for_each_rcuh]j)}(hlist_for_each_rcuh]j)}(hjPDh]hlist_for_each_rcu}(hjZDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRDhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjNDhhhjmDhMubah}(h]jIDah ](jjeh"]h$]h&]jj)jhuh1hhjmDhMhjKDhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKDhhhjmDhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjDjjDjjjuh1hhhhhhNhNubj)}(h!``list_for_each_rcu (pos, head)``h]j.)}(hjDh]hlist_for_each_rcu (pos, head)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h+Iterate over a list in an RCU-safe fashion h]j)}(h*Iterate over a list in an RCU-safe fashionh]h*Iterate over a list in an RCU-safe fashion}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjDubah}(h]h ]h"]h$]h&]uh1j;8hjDhMhhhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjDubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjDh]hpos}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjDubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjDhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjEh]hstruct list_head}(hjEhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjDhMhjDubh to use as a loop cursor.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hjDhMhjDubj")}(h ``head`` the head for your list.h](j()}(h``head``h]j.)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:Eubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj6EubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjUEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjREubah}(h]h ]h"]h$]h&]uh1jChj6Eubeh}(h]h ]h"]h$]h&]uh1j!hjQEhMhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ list_for_each_continue (C macro)c.list_for_each_continuehNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_continueh]h)}(hlist_for_each_continueh]j)}(hlist_for_each_continueh]j)}(hjEh]hlist_for_each_continue}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjEhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhjEhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjEjjEjjjuh1hhhhhhNhNubj)}(h&``list_for_each_continue (pos, head)``h]j.)}(hjEh]h"list_for_each_continue (pos, head)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hcontinue iteration over a list h]j)}(hcontinue iteration over a listh]hcontinue iteration over a list}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjEubah}(h]h ]h"]h$]h&]uh1j;8hjEhMhhhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list. **Description** Continue to iterate over a list, continuing after the current position.h](j)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjEubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hj Fh]hpos}(hj"FhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjFubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj9FhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjCFh]hstruct list_head}(hjEFhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjAFubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhj5FhMhj9Fubh to use as a loop cursor.}(hj9FhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj5FhMhj6Fubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hj5FhMhjFubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj|Fh]hhead}(hj~FhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzFubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjvFubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jChjvFubeh}(h]h ]h"]h$]h&]uh1j!hjFhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjEubj)}(hGContinue to iterate over a list, continuing after the current position.h]hGContinue to iterate over a list, continuing after the current position.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_for_each_prev (C macro)c.list_for_each_prevhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_prevh]h)}(hlist_for_each_prevh]j)}(hlist_for_each_prevh]j)}(hjFh]hlist_for_each_prev}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjFhhhjGhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjGhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj,Gjj,Gjjjuh1hhhhhhNhNubj)}(h"``list_for_each_prev (pos, head)``h]j.)}(hj2Gh]hlist_for_each_prev (pos, head)}(hj4GhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0Gubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hiterate over a list backwards h]j)}(hiterate over a list backwardsh]hiterate over a list backwards}(hjLGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjHGubah}(h]h ]h"]h$]h&]uh1j;8hjZGhMhhhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjgGh]h Parameters}(hjiGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeGubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjaGubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjGh]hpos}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjGubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjGhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjGh]hstruct list_head}(hjGhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjGhMhjGubh to use as a loop cursor.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhj}Gubj")}(h ``head`` the head for your list.h](j()}(h``head``h]j.)}(hjGh]hhead}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjGubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhj}Gubeh}(h]h ]h"]h$]h&]uh1jhjaGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_for_each_safe (C macro)c.list_for_each_safehNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_safeh]h)}(hlist_for_each_safeh]j)}(hlist_for_each_safeh]j)}(hj6Hh]hlist_for_each_safe}(hj@HhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj` to use as a loop cursor. ``n`` another :c:type:`struct list_head ` to use as temporary storage ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjHubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjHh]hpos}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjHubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjHhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjHh]hstruct list_head}(hjHhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjHhMhjHubh to use as a loop cursor.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhjHubj")}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j()}(h``n``h]j.)}(hj"Ih]hn}(hj$IhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Iubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjIubjD)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hj;IhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjEIh]hstruct list_head}(hjGIhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjCIubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhj7IhMhj;Iubh to use as temporary storage}(hj;IhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj7IhMhj8Iubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hj7IhMhjHubj")}(h ``head`` the head for your list.h](j()}(h``head``h]j.)}(hj~Ih]hhead}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|Iubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjxIubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjIubah}(h]h ]h"]h$]h&]uh1jChjxIubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjHubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_for_each_prev_safe (C macro)c.list_for_each_prev_safehNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_prev_safeh]h)}(hlist_for_each_prev_safeh]j)}(hlist_for_each_prev_safeh]j)}(hjIh]hlist_for_each_prev_safe}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhjIhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjJjjJjjjuh1hhhhhhNhNubj)}(h*``list_for_each_prev_safe (pos, n, head)``h]j.)}(hjJh]h&list_for_each_prev_safe (pos, n, head)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Jubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hAiterate over a list backwards safe against removal of list entry h]j)}(h@iterate over a list backwards safe against removal of list entryh]h@iterate over a list backwards safe against removal of list entry}(hj(JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj$Jubah}(h]h ]h"]h$]h&]uh1j;8hj6JhMhhhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``n`` another :c:type:`struct list_head ` to use as temporary storage ``head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjCJh]h Parameters}(hjEJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj=Jubj)}(hhh](j")}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjbJh]hpos}(hjdJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`Jubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj\JubjD)}(hhh]j)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj{JhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjJh]hstruct list_head}(hjJhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjwJhMhj{Jubh to use as a loop cursor.}(hj{JhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjwJhMhjxJubah}(h]h ]h"]h$]h&]uh1jChj\Jubeh}(h]h ]h"]h$]h&]uh1j!hjwJhMhjYJubj")}(hQ``n`` another :c:type:`struct list_head ` to use as temporary storage h](j()}(h``n``h]j.)}(hjJh]hn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjJubjD)}(hhh]j)}(hJanother :c:type:`struct list_head ` to use as temporary storageh](hanother }(hjJhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjJh]hstruct list_head}(hjJhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjJhMhjJubh to use as temporary storage}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjJhMhjYJubj")}(h ``head`` the head for your list.h](j()}(h``head``h]j.)}(hjKh]hhead}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjKubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj3KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0Kubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hj/KhMhjYJubeh}(h]h ]h"]h$]h&]uh1jhj=Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_count_nodes (C function)c.list_count_nodeshNtauh1hhhhhhNhNubh)}(hhh](h)}(h0size_t list_count_nodes (struct list_head *head)h]h)}(h/size_t list_count_nodes(struct list_head *head)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjwKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjyKmodnameN classnameNjwjz)}j}]j)}jslist_count_nodessbc.list_count_nodesasbuh1hhjpKhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpKhhhjKhMubj)}(hlist_count_nodesh]j)}(hjKh]hlist_count_nodes}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjpKhhhjKhMubj/)}(h(struct list_head *head)h]j5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(h list_headh]h list_head}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jKc.list_count_nodesasbuh1hhjKubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hheadh]hhead}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubah}(h]h ]h"]h$]h&]j,j-uh1j.hjpKhhhjKhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlKhhhjKhMubah}(h]jgKah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhjiKhhubj)}(hhh]j)}(hcount nodes in the listh]hcount nodes in the list}(hjGLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjDLhhubah}(h]h ]h"]h$]h&]uh1jhjiKhhhjKhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_Ljj_Ljjjuh1hhhhhhNhNubj)}(hD**Parameters** ``struct list_head *head`` the head for your list.h](j)}(h**Parameters**h]j)}(hjiLh]h Parameters}(hjkLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjcLubj)}(hhh]j")}(h2``struct list_head *head`` the head for your list.h](j()}(h``struct list_head *head``h]j.)}(hjLh]hstruct list_head *head}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjLubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjLubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjcLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_entry_is_head (C macro)c.list_entry_is_headhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_entry_is_headh]h)}(hlist_entry_is_headh]j)}(hlist_entry_is_headh]j)}(hjLh]hlist_entry_is_head}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjMjjMjjjuh1hhhhhhNhNubj)}(h*``list_entry_is_head (pos, head, member)``h]j.)}(hjMh]h&list_entry_is_head (pos, head, member)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h1test if the entry points to the head of the list h]j)}(h0test if the entry points to the head of the listh]h0test if the entry points to the head of the list}(hj2MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj.Mubah}(h]h ]h"]h$]h&]uh1j;8hj@MhMhhhhubj)}(h**Parameters** ``pos`` the type * to cursor ``head`` the head for your list. ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjMMh]h Parameters}(hjOMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjGMubj)}(hhh](j")}(h``pos`` the type * to cursor h](j()}(h``pos``h]j.)}(hjlMh]hpos}(hjnMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjMubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjfMubjD)}(hhh]j)}(hthe type * to cursorh]hthe type * to cursor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jChjfMubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjcMubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjMh]hhead}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjMubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjcMubj")}(h7``member`` the name of the list_head within the struct.h](j()}(h ``member``h]j.)}(hjMh]hmember}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjMubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjcMubeh}(h]h ]h"]h$]h&]uh1jhjGMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_for_each_entry (C macro)c.list_for_each_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_entryh]h)}(hlist_for_each_entryh]j)}(hlist_for_each_entryh]j)}(hj2Nh]hlist_for_each_entry}(hjprepare a pos entry for use in list_for_each_entry_continue() h]j)}(h=prepare a pos entry for use in list_for_each_entry_continue()h]h=prepare a pos entry for use in list_for_each_entry_continue()}(hj4QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj0Qubah}(h]h ]h"]h$]h&]uh1j;8hjBQhMhhhhubj)}(h**Parameters** ``pos`` the type * to use as a start point ``head`` the head of the list ``member`` the name of the list_head within the struct. **Description** Prepares a pos entry for use as a start point in list_for_each_entry_continue().h](j)}(h**Parameters**h]j)}(hjOQh]h Parameters}(hjQQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjIQubj)}(hhh](j")}(h+``pos`` the type * to use as a start point h](j()}(h``pos``h]j.)}(hjnQh]hpos}(hjpQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlQubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjhQubjD)}(hhh]j)}(h"the type * to use as a start pointh]h"the type * to use as a start point}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jChjhQubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjeQubj")}(h``head`` the head of the list h](j()}(h``head``h]j.)}(hjQh]hhead}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjQubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjeQubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjQh]hmember}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjQubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjeQubeh}(h]h ]h"]h$]h&]uh1jhjIQubj)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjIQubj)}(hPPrepares a pos entry for use as a start point in list_for_each_entry_continue().h]hPPrepares a pos entry for use as a start point in list_for_each_entry_continue().}(hj1RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjIQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_for_each_entry_continue (C macro)c.list_for_each_entry_continuehNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_entry_continueh]h)}(hlist_for_each_entry_continueh]j)}(hlist_for_each_entry_continueh]j)}(hjZRh]hlist_for_each_entry_continue}(hjdRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`Rubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\RhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjXRhhhjwRhMubah}(h]jSRah ](jjeh"]h$]h&]jj)jhuh1hhjwRhMhjURhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjURhhhjwRhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjRjjRjjjuh1hhhhhhNhNubj)}(h4``list_for_each_entry_continue (pos, head, member)``h]j.)}(hjRh]h0list_for_each_entry_continue (pos, head, member)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h+continue iteration over list of given type h]j)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjRubah}(h]h ]h"]h$]h&]uh1j;8hjRhMhhhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Continue to iterate over list of given type, continuing after the current position.h](j)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM!hjRubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjRh]hpos}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjRubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhjRubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj#Sh]hhead}(hj%ShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!Subah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjSubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhjUubj)}(hBIterate over list of given type, continuing from current position.h]hBIterate over list of given type, continuing from current position.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM>hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*list_for_each_entry_from_reverse (C macro)"c.list_for_each_entry_from_reversehNtauh1hhhhhhNhNubh)}(hhh](h)}(h list_for_each_entry_from_reverseh]h)}(h list_for_each_entry_from_reverseh]j)}(h list_for_each_entry_from_reverseh]j)}(hjVh]h list_for_each_entry_from_reverse}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMEubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjVhMEubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMEhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMEubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjWjjWjjjuh1hhhhhhNhNubj)}(h8``list_for_each_entry_from_reverse (pos, head, member)``h]j.)}(hj Wh]h4list_for_each_entry_from_reverse (pos, head, member)}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMGhhhhubj<8)}(hAiterate backwards over list of given type from the current point h]j)}(h@iterate backwards over list of given type from the current pointh]h@iterate backwards over list of given type from the current point}(hj$WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMEhj Wubah}(h]h ]h"]h$]h&]uh1j;8hj2WhMEhhhhubj)}(h**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate backwards over list of given type, continuing from current position.h](j)}(h**Parameters**h]j)}(hj?Wh]h Parameters}(hjAWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Wubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMIhj9Wubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hj^Wh]hpos}(hj`WhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\Wubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMGhjXWubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjwWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsWhMGhjtWubah}(h]h ]h"]h$]h&]uh1jChjXWubeh}(h]h ]h"]h$]h&]uh1j!hjsWhMGhjUWubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjWh]hhead}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMHhjWubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMHhjWubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjWhMHhjUWubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjWh]hmember}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMIhjWubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMIhjWubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjWhMIhjUWubeh}(h]h ]h"]h$]h&]uh1jhj9Wubj)}(h**Description**h]j)}(hj Xh]h Description}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Xubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMKhj9Wubj)}(hLIterate backwards over list of given type, continuing from current position.h]hLIterate backwards over list of given type, continuing from current position.}(hj!XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMKhj9Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_for_each_entry_safe (C macro)c.list_for_each_entry_safehNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_entry_safeh]h)}(hlist_for_each_entry_safeh]j)}(hlist_for_each_entry_safeh]j)}(hjJXh]hlist_for_each_entry_safe}(hjTXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLXhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMRubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjHXhhhjgXhMRubah}(h]jCXah ](jjeh"]h$]h&]jj)jhuh1hhjgXhMRhjEXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEXhhhjgXhMRubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjXjjXjjjuh1hhhhhhNhNubj)}(h3``list_for_each_entry_safe (pos, n, head, member)``h]j.)}(hjXh]h/list_for_each_entry_safe (pos, n, head, member)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMThhhhubj<8)}(hCiterate over list of given type safe against removal of list entry h]j)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMRhjXubah}(h]h ]h"]h$]h&]uh1j;8hjXhMRhhhhubj)}(h**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct.h](j)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMVhjXubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjXh]hpos}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMShjXubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMShjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhMShjXubj")}(h1``n`` another type * to use as temporary storage h](j()}(h``n``h]j.)}(hjYh]hn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMThj YubjD)}(hhh]j)}(h*another type * to use as temporary storageh]h*another type * to use as temporary storage}(hj,YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(YhMThj)Yubah}(h]h ]h"]h$]h&]uh1jChj Yubeh}(h]h ]h"]h$]h&]uh1j!hj(YhMThjXubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjLYh]hhead}(hjNYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJYubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMUhjFYubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjeYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaYhMUhjbYubah}(h]h ]h"]h$]h&]uh1jChjFYubeh}(h]h ]h"]h$]h&]uh1j!hjaYhMUhjXubj")}(h7``member`` the name of the list_head within the struct.h](j()}(h ``member``h]j.)}(hjYh]hmember}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMWhjYubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMVhjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhMWhjXubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+list_for_each_entry_safe_continue (C macro)#c.list_for_each_entry_safe_continuehNtauh1hhhhhhNhNubh)}(hhh](h)}(h!list_for_each_entry_safe_continueh]h)}(h!list_for_each_entry_safe_continueh]j)}(h!list_for_each_entry_safe_continueh]j)}(hjYh]h!list_for_each_entry_safe_continue}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM_ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjYhM_ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhM_hjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM_ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjZjjZjjjuh1hhhhhhNhNubj)}(h<``list_for_each_entry_safe_continue (pos, n, head, member)``h]j.)}(hjZh]h8list_for_each_entry_safe_continue (pos, n, head, member)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMahhhhubj<8)}(h-continue list iteration safe against removal h]j)}(h,continue list iteration safe against removalh]h,continue list iteration safe against removal}(hj/ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM_hj+Zubah}(h]h ]h"]h$]h&]uh1j;8hj=ZhM_hhhhubj)}(hXG**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate over list of given type, continuing after current point, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(hjJZh]h Parameters}(hjLZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMchjDZubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjiZh]hpos}(hjkZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgZubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM`hjcZubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ZhM`hjZubah}(h]h ]h"]h$]h&]uh1jChjcZubeh}(h]h ]h"]h$]h&]uh1j!hj~ZhM`hj`Zubj")}(h1``n`` another type * to use as temporary storage h](j()}(h``n``h]j.)}(hjZh]hn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMahjZubjD)}(hhh]j)}(h*another type * to use as temporary storageh]h*another type * to use as temporary storage}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMahjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhMahj`Zubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjZh]hhead}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMbhjZubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMbhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhMbhj`Zubj")}(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&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMchj[ubjD)}(hhh]j)}(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&]uh1jhj)[hMchj*[ubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hj)[hMchj`Zubeh}(h]h ]h"]h$]h&]uh1jhjDZubj)}(h**Description**h]j)}(hjO[h]h Description}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMehjDZubj)}(hdIterate over list of given type, continuing after current point, safe against removal of list entry.h]hdIterate over list of given type, continuing after current point, safe against removal of list entry.}(hje[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMehjDZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'list_for_each_entry_safe_from (C macro)c.list_for_each_entry_safe_fromhNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_for_each_entry_safe_fromh]h)}(hlist_for_each_entry_safe_fromh]j)}(hlist_for_each_entry_safe_fromh]j)}(hj[h]hlist_for_each_entry_safe_from}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMoubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhj[hMoubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMohj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMoubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj[jj[jjjuh1hhhhhhNhNubj)}(h8``list_for_each_entry_safe_from (pos, n, head, member)``h]j.)}(hj[h]h4list_for_each_entry_safe_from (pos, n, head, member)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMqhhhhubj<8)}(h:iterate over list from current point safe against removal h]j)}(h9iterate over list from current point safe against removalh]h9iterate over list from current point safe against removal}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMohj[ubah}(h]h ]h"]h$]h&]uh1j;8hj[hMohhhhubj)}(hX:**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate over list of given type from current point, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(hj[h]h Parameters}(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:9: ./include/linux/list.hhMshj[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&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMphj\ubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj7\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3\hMphj4\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj3\hMphj\ubj")}(h1``n`` another type * to use as temporary storage h](j()}(h``n``h]j.)}(hjW\h]hn}(hjY\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjU\ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMqhjQ\ubjD)}(hhh]j)}(h*another type * to use as temporary storageh]h*another type * to use as temporary storage}(hjp\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl\hMqhjm\ubah}(h]h ]h"]h$]h&]uh1jChjQ\ubeh}(h]h ]h"]h$]h&]uh1j!hjl\hMqhj\ubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj\h]hhead}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMrhj\ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMrhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hMrhj\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&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMshj\ubjD)}(hhh]j)}(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&]uh1jhj\hMshj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hMshj\ubeh}(h]h ]h"]h$]h&]uh1jhj[ubj)}(h**Description**h]j)}(hj]h]h Description}(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:9: ./include/linux/list.hhMuhj[ubj)}(hWIterate over list of given type from current point, safe against removal of list entry.h]hWIterate over list of given type from current point, safe against removal of list entry.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMuhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*list_for_each_entry_safe_reverse (C macro)"c.list_for_each_entry_safe_reversehNtauh1hhhhhhNhNubh)}(hhh](h)}(h list_for_each_entry_safe_reverseh]h)}(h list_for_each_entry_safe_reverseh]j)}(h list_for_each_entry_safe_reverseh]j)}(hjC]h]h list_for_each_entry_safe_reverse}(hjM]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjE]hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM~ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjA]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 ](jqmacroeh"]h$]h&]jjqjjy]jjy]jjjuh1hhhhhhNhNubj)}(h;``list_for_each_entry_safe_reverse (pos, n, head, member)``h]j.)}(hj]h]h7list_for_each_entry_safe_reverse (pos, n, head, member)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h1iterate backwards over list safe against removal h]j)}(h0iterate backwards over list safe against removalh]h0iterate backwards over list safe against removal}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM~hj]ubah}(h]h ]h"]h$]h&]uh1j;8hj]hM~hhhhubj)}(hX1**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` another type * to use as temporary storage ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Iterate backwards over list of given type, safe against removal of list entry.h](j)}(h**Parameters**h]j)}(hj]h]h Parameters}(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:9: ./include/linux/list.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&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj]ubjD)}(hhh]j)}(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&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhj]ubj")}(h1``n`` another type * to use as temporary storage h](j()}(h``n``h]j.)}(hj ^h]hn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ^ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj^ubjD)}(hhh]j)}(h*another type * to use as temporary storageh]h*another type * to use as temporary storage}(hj%^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!^hMhj"^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj!^hMhj]ubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjE^h]hhead}(hjG^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjC^ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj?^ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj^^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ^hMhj[^ubah}(h]h ]h"]h$]h&]uh1jChj?^ubeh}(h]h ]h"]h$]h&]uh1j!hjZ^hMhj]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&]uh1j-hj|^ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjx^ubjD)}(hhh]j)}(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&]uh1jhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jChjx^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]ubj)}(h**Description**h]j)}(hj^h]h Description}(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:9: ./include/linux/list.hhMhj]ubj)}(hNIterate backwards over list of given type, safe against removal of list entry.h]hNIterate backwards over list of given type, safe against removal of list entry.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_safe_reset_next (C macro)c.list_safe_reset_nexthNtauh1hhhhhhNhNubh)}(hhh](h)}(hlist_safe_reset_nexth]h)}(hlist_safe_reset_nexth]j)}(hlist_safe_reset_nexth]j)}(hj^h]hlist_safe_reset_next}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj^hhhj_hMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhj^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^hhhj_hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj._jj._jjjuh1hhhhhhNhNubj)}(h)``list_safe_reset_next (pos, n, member)``h]j.)}(hj4_h]h%list_safe_reset_next (pos, n, member)}(hj6_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h,reset a stale list_for_each_entry_safe loop h]j)}(h+reset a stale list_for_each_entry_safe looph]h+reset a stale list_for_each_entry_safe loop}(hjN_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjJ_ubah}(h]h ]h"]h$]h&]uh1j;8hj\_hMhhhhubj)}(hX)**Parameters** ``pos`` the loop cursor used in the list_for_each_entry_safe loop ``n`` temporary storage used in list_for_each_entry_safe ``member`` the name of the list_head within the struct. **Description** list_safe_reset_next is not safe to use in general if the list may be modified concurrently (eg. the lock is dropped in the loop body). An exception to this is if the cursor element (pos) is pinned in the list, and list_safe_reset_next is called after re-taking the lock and before completing the current iteration of the loop body.h](j)}(h**Parameters**h]j)}(hji_h]h Parameters}(hjk_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjc_ubj)}(hhh](j")}(hB``pos`` the loop cursor used in the list_for_each_entry_safe loop h](j()}(h``pos``h]j.)}(hj_h]hpos}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj_ubjD)}(hhh]j)}(h9the loop cursor used in the list_for_each_entry_safe looph]h9the loop cursor used in the list_for_each_entry_safe loop}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhj_ubj")}(h9``n`` temporary storage used in list_for_each_entry_safe h](j()}(h``n``h]j.)}(hj_h]hn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj_ubjD)}(hhh]j)}(h2temporary storage used in list_for_each_entry_safeh]h2temporary storage used in list_for_each_entry_safe}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhj_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&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj_ubjD)}(hhh]j)}(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&]uh1jhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhj_ubeh}(h]h ]h"]h$]h&]uh1jhjc_ubj)}(h**Description**h]j)}(hj5`h]h Description}(hj7`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjc_ubj)}(hXLlist_safe_reset_next is not safe to use in general if the list may be modified concurrently (eg. the lock is dropped in the loop body). An exception to this is if the cursor element (pos) is pinned in the list, and list_safe_reset_next is called after re-taking the lock and before completing the current iteration of the loop body.h]hXLlist_safe_reset_next is not safe to use in general if the list may be modified concurrently (eg. the lock is dropped in the loop body). An exception to this is if the cursor element (pos) is pinned in the list, and list_safe_reset_next is called after re-taking the lock and before completing the current iteration of the loop body.}(hjK`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjc_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_unhashed (C function)c.hlist_unhashedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h/int hlist_unhashed (const struct hlist_node *h)h]h)}(h.int hlist_unhashed(const struct hlist_node *h)h](h)}(hinth]hint}(hjz`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv`hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv`hhhj`hMubj)}(hhlist_unhashedh]j)}(hhlist_unhashedh]hhlist_unhashed}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjv`hhhj`hMubj/)}(h(const struct hlist_node *h)h]j5)}(hconst struct hlist_node *hh](j;)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj;)}(hj>h]hstruct}(hj`hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj`modnameN classnameNjwjz)}j}]j)}jsj`sbc.hlist_unhashedasbuh1hhj`ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hhh]hh}(hj+ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjv`hhhj`hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjr`hhhj`hMubah}(h]jm`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMhjo`hhubj)}(hhh]j)}(h2Has node been removed from list and reinitialized?h]h2Has node been removed from list and reinitialized?}(hjUahhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjRahhubah}(h]h ]h"]h$]h&]uh1jhjo`hhhj`hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmajjmajjjuh1hhhhhhNhNubj)}(hX **Parameters** ``const struct hlist_node *h`` Node to be checked **Description** Not that not all removal functions will leave a node in unhashed state. For example, hlist_nulls_del_init_rcu() does leave the node in unhashed state, but hlist_nulls_del() does not.h](j)}(h**Parameters**h]j)}(hjwah]h Parameters}(hjyahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjqaubj)}(hhh]j")}(h2``const struct hlist_node *h`` Node to be checked h](j()}(h``const struct hlist_node *h``h]j.)}(hjah]hconst struct hlist_node *h}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjaubjD)}(hhh]j)}(hNode to be checkedh]hNode to be checked}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMhjaubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjqaubj)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjqaubj)}(hNot that not all removal functions will leave a node in unhashed state. For example, hlist_nulls_del_init_rcu() does leave the node in unhashed state, but hlist_nulls_del() does not.h]hNot that not all removal functions will leave a node in unhashed state. For example, hlist_nulls_del_init_rcu() does leave the node in unhashed state, but hlist_nulls_del() does not.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjqaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$hlist_unhashed_lockless (C function)c.hlist_unhashed_locklesshNtauh1hhhhhhNhNubh)}(hhh](h)}(h8int hlist_unhashed_lockless (const struct hlist_node *h)h]h)}(h7int hlist_unhashed_lockless(const struct hlist_node *h)h](h)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj%bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhj$bhMubj)}(hhlist_unhashed_locklessh]j)}(hhlist_unhashed_locklessh]hhlist_unhashed_lockless}(hj7bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3bubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhj$bhMubj/)}(h(const struct hlist_node *h)h]j5)}(hconst struct hlist_node *hh](j;)}(hjh]hconst}(hjSbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjObubh)}(h h]h }(hj`bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjObubj;)}(hj>h]hstruct}(hjnbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjObubh)}(h h]h }(hj{bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjObubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsj9bsbc.hlist_unhashed_locklessasbuh1hhjObubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjObubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjObubj)}(hj-ah]hh}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjObubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKbubah}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhj$bhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhj$bhMubah}(h]j bah ](jjeh"]h$]h&]jj)jhuh1hhj$bhMhj bhhubj)}(hhh]j)}(h*Version of hlist_unhashed for lockless useh]h*Version of hlist_unhashed for lockless use}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjbhhubah}(h]h ]h"]h$]h&]uh1jhj bhhhj$bhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const struct hlist_node *h`` Node to be checked **Description** This variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.h](j)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj cubj)}(hhh]j")}(h2``const struct hlist_node *h`` Node to be checked h](j()}(h``const struct hlist_node *h``h]j.)}(hj1ch]hconst struct hlist_node *h}(hj3chhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/cubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj+cubjD)}(hhh]j)}(hNode to be checkedh]hNode to be checked}(hjJchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFchMhjGcubah}(h]h ]h"]h$]h&]uh1jChj+cubeh}(h]h ]h"]h$]h&]uh1j!hjFchMhj(cubah}(h]h ]h"]h$]h&]uh1jhj cubj)}(h**Description**h]j)}(hjlch]h Description}(hjnchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj cubj)}(hThis variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.h]hThis variant of hlist_unhashed() must be used in lockless contexts to avoid potential load-tearing. The READ_ONCE() is paired with the various WRITE_ONCE() in hlist helpers that are defined below.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_empty (C function) c.hlist_emptyhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,int hlist_empty (const struct hlist_head *h)h]h)}(h+int hlist_empty(const struct hlist_head *h)h](h)}(hinth]hint}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjchMubj)}(h hlist_emptyh]j)}(h hlist_emptyh]h hlist_empty}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjchMubj/)}(h(const struct hlist_head *h)h]j5)}(hconst struct hlist_head *hh](j;)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj;)}(hj>h]hstruct}(hj dhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hj'dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$dubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)dmodnameN classnameNjwjz)}j}]j)}jsjcsb c.hlist_emptyasbuh1hhjcubh)}(h h]h }(hjGdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hjUdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hj-ah]hh}(hjbdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubah}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjchMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjchMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjchhubj)}(hhh]j)}(h5Is the specified hlist_head structure an empty hlist?h]h5Is the specified hlist_head structure an empty hlist?}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjdjjdjjjuh1hhhhhhNhNubj)}(hD**Parameters** ``const struct hlist_head *h`` Structure to check.h](j)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjdubj)}(hhh]j")}(h2``const struct hlist_head *h`` Structure to check.h](j()}(h``const struct hlist_head *h``h]j.)}(hjdh]hconst struct hlist_head *h}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjdubjD)}(hhh]j)}(hStructure to check.h]hStructure to check.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjdubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_del (C function) c.hlist_delhNtauh1hhhhhhNhNubh)}(hhh](h)}(h%void hlist_del (struct hlist_node *n)h]h)}(h$void hlist_del(struct hlist_node *n)h](h)}(hvoidh]hvoid}(hj&ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ehhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj5ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ehhhj4ehMubj)}(h hlist_delh]j)}(h hlist_delh]h hlist_del}(hjGehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"ehhhj4ehMubj/)}(h(struct hlist_node *n)h]j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjcehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_eubh)}(h h]h }(hjpehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_eubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~eubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j)}jsjIesb c.hlist_delasbuh1hhj_eubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_eubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_eubj)}(hj h]hn}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_eubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[eubah}(h]h ]h"]h$]h&]j,j-uh1j.hj"ehhhj4ehMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhj4ehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj4ehMhjehhubj)}(hhh]j)}(h-Delete the specified hlist_node from its listh]h-Delete the specified hlist_node from its list}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhjehhhj4ehMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct hlist_node *n`` Node to delete. **Description** Note that this function leaves the node in hashed state. Use hlist_del_init() or similar instead to unhash **n**.h](j)}(h**Parameters**h]j)}(hjfh]h Parameters}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjfubj)}(hhh]j")}(h)``struct hlist_node *n`` Node to delete. h](j()}(h``struct hlist_node *n``h]j.)}(hj&fh]hstruct hlist_node *n}(hj(fhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$fubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj fubjD)}(hhh]j)}(hNode to delete.h]hNode to delete.}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;fhMhjh]hstruct}(hjfhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]j)}jsjfsbc.hlist_del_initasbuh1hhjfubh)}(h h]h }(hj3ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjAghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hj h]hn}(hjNghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubah}(h]h ]h"]h$]h&]j,j-uh1j.hjfhhhjfhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjfhhubj)}(hhh]j)}(hh]hstruct}(hjuhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsj[hsbc.hlist_add_headasbuh1hhjqhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubj)}(hj h]hn}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmhubj5)}(hstruct hlist_head *hh](j;)}(hj>h]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]jhc.hlist_add_headasbuh1hhjhubh)}(h h]h }(hj"ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hj0ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hj-ah]hh}(hj=ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhhjFhhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhhjFhhMubah}(h]j+hah ](jjeh"]h$]h&]jj)jhuh1hhjFhhMhj-hhhubj)}(hhh]j)}(h-add a new entry at the beginning of the hlisth]h-add a new entry at the beginning of the hlist}(hjfihhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjcihhubah}(h]h ]h"]h$]h&]uh1jhj-hhhhjFhhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~ijj~ijjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct hlist_node *n`` new entry to be added ``struct hlist_head *h`` hlist head to add it after **Description** Insert a new entry after the specified head. This is good for implementing stacks.h](j)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjiubj)}(hhh](j")}(h/``struct hlist_node *n`` new entry to be added h](j()}(h``struct hlist_node *n``h]j.)}(hjih]hstruct hlist_node *n}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjiubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjihMhjiubj")}(h4``struct hlist_head *h`` hlist head to add it after h](j()}(h``struct hlist_head *h``h]j.)}(hjih]hstruct hlist_head *h}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjiubjD)}(hhh]j)}(hhlist head to add it afterh]hhlist head to add it after}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMhjiubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjihMhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubj)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjiubj)}(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.}(hj1jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_before (C function)c.hlist_add_beforehNtauh1hhhhhhNhNubh)}(hhh](h)}(hEvoid hlist_add_before (struct hlist_node *n, struct hlist_node *next)h]h)}(hDvoid hlist_add_before(struct hlist_node *n, struct hlist_node *next)h](h)}(hvoidh]hvoid}(hj`jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\jhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjojhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\jhhhjnjhMubj)}(hhlist_add_beforeh]j)}(hhlist_add_beforeh]hhlist_add_before}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}jubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\jhhhjnjhMubj/)}(h/(struct hlist_node *n, struct hlist_node *next)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}jsjjsbc.hlist_add_beforeasbuh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hj h]hn}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct hlist_node *nexth](j;)}(hj>h]hstruct}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj kubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj kubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj,khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)kubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.kmodnameN classnameNjwjz)}j}]jjc.hlist_add_beforeasbuh1hhj kubh)}(h h]h }(hjJkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj kubj)}(hjh]h*}(hjXkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(hnexth]hnext}(hjekhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj kubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj\jhhhjnjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXjhhhjnjhMubah}(h]jSjah ](jjeh"]h$]h&]jj)jhuh1hhjnjhMhjUjhhubj)}(hhh]j)}(h(add a new entry before the one specifiedh]h(add a new entry before the one specified}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjUjhhhjnjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct hlist_node *n`` new entry to be added ``struct hlist_node *next`` hlist node to add it before, which must be non-NULLh](j)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjkubj)}(hhh](j")}(h/``struct hlist_node *n`` new entry to be added h](j()}(h``struct hlist_node *n``h]j.)}(hjkh]hstruct hlist_node *n}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjkubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhM hjkubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjkhM hjkubj")}(hO``struct hlist_node *next`` hlist node to add it before, which must be non-NULLh](j()}(h``struct hlist_node *next``h]j.)}(hj lh]hstruct hlist_node *next}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjlubjD)}(hhh]j)}(h3hlist node to add it before, which must be non-NULLh]h3hlist node to add it before, which must be non-NULL}(hj"lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM hjlubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjlhM hjkubeh}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_behind (C function)c.hlist_add_behindhNtauh1hhhhhhNhNubh)}(hhh](h)}(hEvoid hlist_add_behind (struct hlist_node *n, struct hlist_node *prev)h]h)}(hDvoid hlist_add_behind(struct hlist_node *n, struct hlist_node *prev)h](h)}(hvoidh]hvoid}(hjclhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_lhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hjrlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_lhhhjqlhMubj)}(hhlist_add_behindh]j)}(hhlist_add_behindh]hhlist_add_behind}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_lhhhjqlhMubj/)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]j)}jsjlsbc.hlist_add_behindasbuh1hhjlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hj h]hn}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(hstruct hlist_node *prevh](j;)}(hj>h]hstruct}(hjmhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj mubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj mubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj/mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1mmodnameN classnameNjwjz)}j}]jlc.hlist_add_behindasbuh1hhj mubh)}(h h]h }(hjMmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj mubj)}(hjh]h*}(hj[mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubj)}(hprevh]hprev}(hjhmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj_lhhhjqlhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj[lhhhjqlhMubah}(h]jVlah ](jjeh"]h$]h&]jj)jhuh1hhjqlhMhjXlhhubj)}(hhh]j)}(h'add a new entry after the one specifiedh]h'add a new entry after the one specified}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjXlhhhjqlhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct hlist_node *n`` new entry to be added ``struct hlist_node *prev`` hlist node to add it after, which must be non-NULLh](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjmubj)}(hhh](j")}(h/``struct hlist_node *n`` new entry to be added h](j()}(h``struct hlist_node *n``h]j.)}(hjmh]hstruct hlist_node *n}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjmubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjmubj")}(hN``struct hlist_node *prev`` hlist node to add it after, which must be non-NULLh](j()}(h``struct hlist_node *prev``h]j.)}(hj nh]hstruct hlist_node *prev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj nubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjnubjD)}(hhh]j)}(h2hlist node to add it after, which must be non-NULLh]h2hlist node to add it after, which must be non-NULL}(hj%nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj"nubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hj!nhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_fake (C function)c.hlist_add_fakehNtauh1hhhhhhNhNubh)}(hhh](h)}(h*void hlist_add_fake (struct hlist_node *n)h]h)}(h)void hlist_add_fake(struct hlist_node *n)h](h)}(hvoidh]hvoid}(hjfnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbnhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM&ubh)}(h h]h }(hjunhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbnhhhjtnhM&ubj)}(hhlist_add_fakeh]j)}(hhlist_add_fakeh]hhlist_add_fake}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbnhhhjtnhM&ubj/)}(h(struct hlist_node *n)h]j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsjnsbc.hlist_add_fakeasbuh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hj h]hn}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubah}(h]h ]h"]h$]h&]j,j-uh1j.hjbnhhhjtnhM&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj^nhhhjtnhM&ubah}(h]jYnah ](jjeh"]h$]h&]jj)jhuh1hhjtnhM&hj[nhhubj)}(hhh]j)}(h8create a fake hlist consisting of a single headless nodeh]h8create a fake hlist consisting of a single headless node}(hj%ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM&hj"ohhubah}(h]h ]h"]h$]h&]uh1jhj[nhhhjtnhM&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=ojj=ojjjuh1hhhhhhNhNubj)}(hX **Parameters** ``struct hlist_node *n`` Node to make a fake list out of **Description** This makes **n** appear to be its own predecessor on a headless hlist. The point of this is to allow things like hlist_del() to work correctly in cases where there is no list.h](j)}(h**Parameters**h]j)}(hjGoh]h Parameters}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM*hjAoubj)}(hhh]j")}(h9``struct hlist_node *n`` Node to make a fake list out of h](j()}(h``struct hlist_node *n``h]j.)}(hjfoh]hstruct hlist_node *n}(hjhohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdoubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM'hj`oubjD)}(hhh]j)}(hNode to make a fake list out ofh]hNode to make a fake list out of}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ohM'hj|oubah}(h]h ]h"]h$]h&]uh1jChj`oubeh}(h]h ]h"]h$]h&]uh1j!hj{ohM'hj]oubah}(h]h ]h"]h$]h&]uh1jhjAoubj)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM)hjAoubj)}(hThis makes **n** appear to be its own predecessor on a headless hlist. The point of this is to allow things like hlist_del() to work correctly in cases where there is no list.h](h This makes }(hjohhhNhNubj)}(h**n**h]hn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh appear to be its own predecessor on a headless hlist. The point of this is to allow things like hlist_del() to work correctly in cases where there is no list.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM)hjAoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_fake (C function) c.hlist_fakehNtauh1hhhhhhNhNubh)}(hhh](h)}(h&bool hlist_fake (struct hlist_node *h)h]h)}(h%bool hlist_fake(struct hlist_node *h)h](h)}(hboolh]hbool}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM3ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjphM3ubj)}(h hlist_fakeh]j)}(h hlist_fakeh]h hlist_fake}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjphM3ubj/)}(h(struct hlist_node *h)h]j5)}(hstruct hlist_node *hh](j;)}(hj>h]hstruct}(hj5phhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1pubh)}(h h]h }(hjBphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1pubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjSphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUpmodnameN classnameNjwjz)}j}]j)}jsjpsb c.hlist_fakeasbuh1hhj1pubh)}(h h]h }(hjsphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1pubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1pubj)}(hj-ah]hh}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1pubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-pubah}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjphM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjphM3ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjphM3hjohhubj)}(hhh]j)}(hIs this node a fake hlist?h]hIs this node a fake hlist?}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM3hjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjphM3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhhhNhNubj)}(ha**Parameters** ``struct hlist_node *h`` Node to check for being a self-referential fake hlist.h](j)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM7hjpubj)}(hhh]j")}(hO``struct hlist_node *h`` Node to check for being a self-referential fake hlist.h](j()}(h``struct hlist_node *h``h]j.)}(hjph]hstruct hlist_node *h}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM9hjpubjD)}(hhh]j)}(h6Node to check for being a self-referential fake hlist.h]h6Node to check for being a self-referential fake hlist.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM4hjqubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hj qhM9hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#hlist_is_singular_node (C function)c.hlist_is_singular_nodehNtauh1hhhhhhNhNubh)}(hhh](h)}(hHbool hlist_is_singular_node (struct hlist_node *n, struct hlist_head *h)h]h)}(hGbool hlist_is_singular_node(struct hlist_node *n, struct hlist_head *h)h](h)}(hjoh]hbool}(hjRqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNqhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM<ubh)}(h h]h }(hj`qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNqhhhj_qhM<ubj)}(hhlist_is_singular_nodeh]j)}(hhlist_is_singular_nodeh]hhlist_is_singular_node}(hjrqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNqhhhj_qhM<ubj/)}(h,(struct hlist_node *n, struct hlist_head *h)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jsjtqsbc.hlist_is_singular_nodeasbuh1hhjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hj h]hn}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hstruct hlist_head *hh](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hj rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jqc.hlist_is_singular_nodeasbuh1hhjqubh)}(h h]h }(hj;rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjIrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hj-ah]hh}(hjVrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjNqhhhj_qhM<ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjJqhhhj_qhM<ubah}(h]jEqah ](jjeh"]h$]h&]jj)jhuh1hhj_qhM<hjGqhhubj)}(hhh]j)}(h0is node the only element of the specified hlist?h]h0is node the only element of the specified hlist?}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM<hj|rhhubah}(h]h ]h"]h$]h&]uh1jhjGqhhhj_qhM<ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` Node to check for singularity. ``struct hlist_head *h`` Header for potentially singular list. **Description** Check whether the node is the only node of the head without accessing head, thus avoiding unnecessary cache misses.h](j)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM@hjrubj)}(hhh](j")}(h8``struct hlist_node *n`` Node to check for singularity. h](j()}(h``struct hlist_node *n``h]j.)}(hjrh]hstruct hlist_node *n}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM=hjrubjD)}(hhh]j)}(hNode to check for singularity.h]hNode to check for singularity.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhM=hjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhM=hjrubj")}(h?``struct hlist_head *h`` Header for potentially singular list. h](j()}(h``struct hlist_head *h``h]j.)}(hjrh]hstruct hlist_head *h}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM>hjrubjD)}(hhh]j)}(h%Header for potentially singular list.h]h%Header for potentially singular list.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshM>hjsubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjshM>hjrubeh}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hj4sh]h Description}(hj6shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM@hjrubj)}(hsCheck whether the node is the only node of the head without accessing head, thus avoiding unnecessary cache misses.h]hsCheck whether the node is the only node of the head without accessing head, thus avoiding unnecessary cache misses.}(hjJshhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM@hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_move_list (C function)c.hlist_move_listhNtauh1hhhhhhNhNubh)}(hhh](h)}(hEvoid hlist_move_list (struct hlist_head *old, struct hlist_head *new)h]h)}(hDvoid hlist_move_list(struct hlist_head *old, struct hlist_head *new)h](h)}(hvoidh]hvoid}(hjyshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjushhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMJubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjushhhjshMJubj)}(hhlist_move_listh]j)}(hhlist_move_listh]hhlist_move_list}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjushhhjshMJubj/)}(h0(struct hlist_head *old, struct hlist_head *new)h](j5)}(hstruct hlist_head *oldh](j;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsjssbc.hlist_move_listasbuh1hhjsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(holdh]hold}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubj5)}(hstruct hlist_head *newh](j;)}(hj>h]hstruct}(hj(thhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$tubh)}(h h]h }(hj5thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$tubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjFthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHtmodnameN classnameNjwjz)}j}]jsc.hlist_move_listasbuh1hhj$tubh)}(h h]h }(hjdthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$tubj)}(hjh]h*}(hjrthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$tubj)}(hnewh]hnew}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$tubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjushhhjshMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqshhhjshMJubah}(h]jlsah ](jjeh"]h$]h&]jj)jhuh1hhjshMJhjnshhubj)}(hhh]j)}(h Move an hlisth]h Move an hlist}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMJhjthhubah}(h]h ]h"]h$]h&]uh1jhjnshhhjshMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct hlist_head *old`` hlist_head for old list. ``struct hlist_head *new`` hlist_head for new list. **Description** Move a list from one list head to another. Fixup the pprev reference of the first entry if it exists.h](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMNhjtubj)}(hhh](j")}(h4``struct hlist_head *old`` hlist_head for old list. h](j()}(h``struct hlist_head *old``h]j.)}(hjth]hstruct hlist_head *old}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMKhjtubjD)}(hhh]j)}(hhlist_head for old list.h]hhlist_head for old list.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMKhjuubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjthMKhjtubj")}(h4``struct hlist_head *new`` hlist_head for new list. h](j()}(h``struct hlist_head *new``h]j.)}(hj#uh]hstruct hlist_head *new}(hj%uhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!uubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMLhjuubjD)}(hhh]j)}(hhlist_head for new list.h]hhlist_head for new list.}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsjusbc.hlist_splice_initasbuh1hhjuubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hj,vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hfromh]hfrom}(hj9vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(hstruct hlist_node *lasth](j;)}(hj>h]hstruct}(hjRvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNvubh)}(h h]h }(hj_vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNvubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjpvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrvmodnameN classnameNjwjz)}j}]jvc.hlist_splice_initasbuh1hhjNvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNvubj)}(hlasth]hlast}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(hstruct hlist_head *toh](j;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]jvc.hlist_splice_initasbuh1hhjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hj whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(htoh]hto}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjuhM[ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjuhM[ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhM[hjuhhubj)}(hhh]j)}(h)move all entries from one list to anotherh]h)move all entries from one list to another}(hjCwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM[hj@whhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhM[ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[wjj[wjjjuh1hhhhhhNhNubj)}(hX/**Parameters** ``struct hlist_head *from`` hlist_head from which entries will be moved ``struct hlist_node *last`` last entry on the **from** list ``struct hlist_head *to`` hlist_head to which entries will be moved **Description** **to** can be empty, **from** must contain at least **last**.h](j)}(h**Parameters**h]j)}(hjewh]h Parameters}(hjgwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM_hj_wubj)}(hhh](j")}(hH``struct hlist_head *from`` hlist_head from which entries will be moved h](j()}(h``struct hlist_head *from``h]j.)}(hjwh]hstruct hlist_head *from}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM\hj~wubjD)}(hhh]j)}(h+hlist_head from which entries will be movedh]h+hlist_head from which entries will be moved}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhM\hjwubah}(h]h ]h"]h$]h&]uh1jChj~wubeh}(h]h ]h"]h$]h&]uh1j!hjwhM\hj{wubj")}(h<``struct hlist_node *last`` last entry on the **from** list h](j()}(h``struct hlist_node *last``h]j.)}(hjwh]hstruct hlist_node *last}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM]hjwubjD)}(hhh]j)}(hlast entry on the **from** listh](hlast entry on the }(hjwhhhNhNubj)}(h**from**h]hfrom}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh list}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjwhM]hjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhM]hj{wubj")}(hD``struct hlist_head *to`` hlist_head to which entries will be moved h](j()}(h``struct hlist_head *to``h]j.)}(hjxh]hstruct hlist_head *to}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM^hjxubjD)}(hhh]j)}(h)hlist_head to which entries will be movedh]h)hlist_head to which entries will be moved}(hj!xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM^hjxubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjxhM^hj{wubeh}(h]h ]h"]h$]h&]uh1jhj_wubj)}(h**Description**h]j)}(hjCxh]h Description}(hjExhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM`hj_wubj)}(h=**to** can be empty, **from** must contain at least **last**.h](j)}(h**to**h]hto}(hj]xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYxubh can be empty, }(hjYxhhhNhNubj)}(h**from**h]hfrom}(hjoxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYxubh must contain at least }(hjYxhhhNhNubj)}(h**last**h]hlast}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYxubh.}(hjYxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM`hj_wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_for_each_entry (C macro)c.hlist_for_each_entryhNtauh1hhhhhhNhNubh)}(hhh](h)}(hhlist_for_each_entryh]h)}(hhlist_for_each_entryh]j)}(hhlist_for_each_entryh]j)}(hjxh]hhlist_for_each_entry}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM}ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjxhM}ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhM}hjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhM}ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjxjjxjjjuh1hhhhhhNhNubj)}(h,``hlist_for_each_entry (pos, head, member)``h]j.)}(hjxh]h(hlist_for_each_entry (pos, head, member)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h iterate over list of given type h]j)}(hiterate over list of given typeh]hiterate over list of given type}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM}hjyubah}(h]h ]h"]h$]h&]uh1j;8hjyhM}hhhhubj)}(h**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.h](j)}(h**Parameters**h]j)}(hj%yh]h Parameters}(hj'yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#yubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjyubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjDyh]hpos}(hjFyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjByubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhM~hj>yubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj]yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYyhM~hjZyubah}(h]h ]h"]h$]h&]uh1jChj>yubeh}(h]h ]h"]h$]h&]uh1j!hjYyhM~hj;yubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj}yh]hhead}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{yubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjwyubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jChjwyubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj;yubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hjyh]hmember}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjyubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj;yubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'hlist_for_each_entry_continue (C macro)c.hlist_for_each_entry_continuehNtauh1hhhhhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_continueh]h)}(hhlist_for_each_entry_continueh]j)}(hhlist_for_each_entry_continueh]j)}(hj zh]hhlist_for_each_entry_continue}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj zhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhj'zhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhj'zhMhjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhj'zhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj@zjj@zjjjuh1hhhhhhNhNubj)}(h/``hlist_for_each_entry_continue (pos, member)``h]j.)}(hjFzh]h+hlist_for_each_entry_continue (pos, member)}(hjHzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h4iterate over a hlist continuing after current point h]j)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hj`zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj\zubah}(h]h ]h"]h$]h&]uh1j;8hjnzhMhhhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hj{zh]h Parameters}(hj}zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjuzubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjzh]hpos}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjzubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhMhjzubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hjzh]hmember}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjzubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhMhjzubeh}(h]h ]h"]h$]h&]uh1jhjuzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#hlist_for_each_entry_from (C macro)c.hlist_for_each_entry_fromhNtauh1hhhhhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_fromh]h)}(hhlist_for_each_entry_fromh]j)}(hhlist_for_each_entry_fromh]j)}(hj'{h]hhlist_for_each_entry_from}(hj1{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj){hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj%{hhhjD{hMubah}(h]j {ah ](jjeh"]h$]h&]jj)jhuh1hhjD{hMhj"{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"{hhhjD{hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj]{jj]{jjjuh1hhhhhhNhNubj)}(h+``hlist_for_each_entry_from (pos, member)``h]j.)}(hjc{h]h'hlist_for_each_entry_from (pos, member)}(hje{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hja{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(h3iterate over a hlist continuing from current point h]j)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(hj}{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjy{ubah}(h]h ]h"]h$]h&]uh1j;8hj{hMhhhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hj{h]h Parameters}(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:9: ./include/linux/list.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&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj{ubjD)}(hhh]j)}(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&]uh1jhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMhj{ubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hj{h]hmember}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj{ubjD)}(hhh]j)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj|ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#hlist_for_each_entry_safe (C macro)c.hlist_for_each_entry_safehNtauh1hhhhhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_safeh]h)}(hhlist_for_each_entry_safeh]j)}(hhlist_for_each_entry_safeh]j)}(hjD|h]hhlist_for_each_entry_safe}(hjN|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJ|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjF|hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjB|hhhja|hMubah}(h]j=|ah ](jjeh"]h$]h&]jj)jhuh1hhja|hMhj?|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj?|hhhja|hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjz|jjz|jjjuh1hhhhhhNhNubj)}(h4``hlist_for_each_entry_safe (pos, n, head, member)``h]j.)}(hj|h]h0hlist_for_each_entry_safe (pos, n, head, member)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhhhhubj<8)}(hCiterate over list of given type safe against removal of list entry h]j)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj|ubah}(h]h ]h"]h$]h&]uh1j;8hj|hMhhhhubj)}(h**Parameters** ``pos`` the type * to use as a loop cursor. ``n`` a :c:type:`struct hlist_node ` to use as temporary storage ``head`` the head for your list. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hj|h]h Parameters}(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:9: ./include/linux/list.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&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj|ubjD)}(hhh]j)}(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&]uh1jhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhj|ubj")}(hM``n`` a :c:type:`struct hlist_node ` to use as temporary storage h](j()}(h``n``h]j.)}(hj }h]hn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj }ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj}ubjD)}(hhh]j)}(hFa :c:type:`struct hlist_node ` to use as temporary storageh](ha }(hj&}hhhNhNubh)}(h(:c:type:`struct hlist_node `h]j.)}(hj0}h]hstruct hlist_node}(hj2}hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj.}ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 hlist_nodeuh1hhj"}hMhj&}ubh to use as temporary storage}(hj&}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj"}hMhj#}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj"}hMhj|ubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hji}h]hhead}(hjk}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjg}ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhjc}ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~}hMhj}ubah}(h]h ]h"]h$]h&]uh1jChjc}ubeh}(h]h ]h"]h$]h&]uh1j!hj~}hMhj|ubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hj}h]hmember}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj}ubjD)}(hhh]j)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_count_nodes (C function)c.hlist_count_nodeshNtauh1hhhhhhNhNubh)}(hhh](h)}(h2size_t hlist_count_nodes (struct hlist_head *head)h]h)}(h1size_t hlist_count_nodes(struct hlist_head *head)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j)}jshlist_count_nodessbc.hlist_count_nodesasbuh1hhj}hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMubh)}(h h]h }(hj!~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}hhhj ~hMubj)}(hhlist_count_nodesh]j)}(hj~h]hhlist_count_nodes}(hj3~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj}hhhj ~hMubj/)}(h(struct hlist_head *head)h]j5)}(hstruct hlist_head *headh](j;)}(hj>h]hstruct}(hjN~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJ~ubh)}(h h]h }(hj[~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ~ubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjl~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjn~modnameN classnameNjwjz)}j}]j~c.hlist_count_nodesasbuh1hhjJ~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ~ubj)}(hheadh]hhead}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJ~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjF~ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj}hhhj ~hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}hhhj ~hMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj ~hMhj}hhubj)}(hhh]j)}(hcount nodes in the hlisth]hcount nodes in the hlist}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj ~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhhhNhNubj)}(hF**Parameters** ``struct hlist_head *head`` the head for your hlist.h](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(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:9: ./include/linux/list.hhMhj~ubj)}(hhh]j")}(h4``struct hlist_head *head`` the head for your hlist.h](j()}(h``struct hlist_head *head``h]j.)}(hjh]hstruct hlist_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj ubjD)}(hhh]j)}(hthe head for your hlist.h]hthe head for your hlist.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:9: ./include/linux/list.hhMhj&ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj%hMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]list-management-functionsah ]h"]list management functionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBasic C Library Functionsh]hBasic C Library Functions}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhhhhhK ubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjYhhubh)}(hhh](h)}(hString Conversionsh]hString Conversions}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsimple_strtoull (C function)c.simple_strtoullhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hSunsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)h]h)}(hRunsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKYubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhKYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKYubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhKYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKYubj)}(hsimple_strtoullh]j)}(hsimple_strtoullh]hsimple_strtoull}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKYubj/)}(h0(const char *cp, char **endp, unsigned int base)h](j5)}(hconst char *cph](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcph]hcp}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h char **endph](h)}(hcharh]hchar}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hendph]hendp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjÀhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjрhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj߀hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKYubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKYhjhhubj)}(hhh]j)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKYhj"hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK]hjAubj)}(hhh](j")}(h+``const char *cp`` The start of the string h](j()}(h``const char *cp``h]j.)}(hjfh]hconst char *cp}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKZhj`ubjD)}(hhh]j)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hKZhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hKZhj]ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK[hjubjD)}(hhh]j)}(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&]uh1jhjhK[hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK[hj]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&]uh1j-hjցubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK\hjҁubjD)}(hhh]j)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK\hjubah}(h]h ]h"]h$]h&]uh1jChjҁubeh}(h]h ]h"]h$]h&]uh1j!hjhK\hj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK^hjAubj)}(h8This function has caveats. Please use kstrtoull instead.h]h8This function has caveats. Please use kstrtoull instead.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK^hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsimple_strtoul (C function)c.simple_strtoulhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hMunsigned long simple_strtoul (const char *cp, char **endp, unsigned int base)h]h)}(hLunsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)h](h)}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhKhubh)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhjfhKhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhKhubj)}(hsimple_strtoulh]j)}(hsimple_strtoulh]hsimple_strtoul}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjfhKhubj/)}(h0(const char *cp, char **endp, unsigned int base)h](j5)}(hconst char *cph](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hĵhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjڂhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcph]hcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h char **endph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendph]hendp}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hinth]hint}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjfhKhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjPhhhjfhKhubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhKhhjMhhubj)}(hhh]j)}(h$convert a string to an unsigned longh]h$convert a string to an unsigned long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhKhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj׃jj׃jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߃ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKlhjۃ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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKihjubjD)}(hhh]j)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKihjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKihjubj")}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j()}(h``char **endp``h]j.)}(hj9h]h char **endp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKjhj3ubjD)}(hhh]j)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhKjhjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhKjhjubj")}(h-``unsigned int base`` The number base to use h](j()}(h``unsigned int base``h]j.)}(hjrh]hunsigned int base}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKkhjlubjD)}(hhh]j)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKkhjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhKkhjubeh}(h]h ]h"]h$]h&]uh1jhjۃubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKmhjۃubj)}(h7This function has caveats. Please use kstrtoul instead.h]h7This function has caveats. Please use kstrtoul instead.}(hjÄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKmhjۃubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsimple_strtol (C function)c.simple_strtolhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hClong simple_strtol (const char *cp, char **endp, unsigned int base)h]h)}(hBlong simple_strtol(const char *cp, char **endp, unsigned int base)h](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK}ubj)}(h simple_strtolh]j)}(h simple_strtolh]h simple_strtol}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK}ubj/)}(h0(const char *cp, char **endp, unsigned int base)h](j5)}(hconst char *cph](j;)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hcph]hcp}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(h char **endph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendph]hendp}(hj…hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjۅhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjׅubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjׅubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjׅubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjׅubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjׅubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK}ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK}hjhhubj)}(hhh]j)}(h!convert a string to a signed longh]h!convert a string to a signed long}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK}hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK}ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjYubj)}(hhh](j")}(h+``const char *cp`` The start of the string h](j()}(h``const char *cp``h]j.)}(hj~h]hconst char *cp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chK~hjxubjD)}(hhh]j)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK~hjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhK~hjuubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubjD)}(hhh]j)}(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&]uh1jhj̆hKhj͆ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̆hKhjuubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubjD)}(hhh]j)}(hThe number base to useh]hThe number base to use}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubj)}(h**Description**h]j)}(hj+h]h Description}(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:24: ./lib/vsprintf.chKhjYubj)}(h6This function has caveats. Please use kstrtol instead.h]h6This function has caveats. Please use kstrtol instead.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsimple_strtoll (C function)c.simple_strtollhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hIlong long simple_strtoll (const char *cp, char **endp, unsigned int base)h]h)}(hHlong long simple_strtoll(const char *cp, char **endp, unsigned int base)h](h)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhj~hKubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhj~hKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhj~hKubj)}(hsimple_strtollh]j)}(hsimple_strtollh]hsimple_strtoll}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlhhhj~hKubj/)}(h0(const char *cp, char **endp, unsigned int base)h](j5)}(hconst char *cph](j;)}(hjh]hconst}(hjɇhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjŇubh)}(h h]h }(hjևhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjŇubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjŇubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjŇubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŇubj)}(hcph]hcp}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjŇubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h char **endph](h)}(hcharh]hchar}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hendph]hendp}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhj~hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhj~hKubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hKhjehhubj)}(hhh]j)}(h&convert a string to a signed long longh]h&convert a string to a signed long long}(hj׈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjԈhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubjD)}(hhh]j)}(hThe start of the stringh]hThe start of the string}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hKhjubj")}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j()}(h``char **endp``h]j.)}(hjQh]h char **endp}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjKubjD)}(hhh]j)}(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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhKhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhKhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubjD)}(hhh]j)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjʼnh]h Description}(hjljhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÉubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubj)}(h7This function has caveats. Please use kstrtoll instead.h]h7This function has caveats. Please use kstrtoll instead.}(hjۉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvsnprintf (C function) c.vsnprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hIint vsnprintf (char *buf, size_t size, const char *fmt_str, va_list args)h]h)}(hHint vsnprintf(char *buf, size_t size, const char *fmt_str, va_list args)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(h vsnprintfh]j)}(h vsnprintfh]h vsnprintf}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h;(char *buf, size_t size, const char *fmt_str, va_list args)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hbufh]hbuf}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj-sb c.vsnprintfasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst char *fmt_strh](j;)}(hjh]hconst}(hjӊhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjϊubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjϊubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjϊubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjϊubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϊubj)}(hfmt_strh]hfmt_str}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϊubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j c.vsnprintfasbuh1hhj,ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hargsh]hargs}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./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&]uh1j-hjȋubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjċubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߋhM hjubah}(h]h ]h"]h$]h&]uh1jChjċubeh}(h]h ]h"]h$]h&]uh1j!hjߋhM hjubj")}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(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&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj6ubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhM hjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhM hjubj")}(h1``va_list args`` Arguments for the format string h](j()}(h``va_list args``h]j.)}(hjuh]h va_list args}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjoubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(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:}(hjƌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj<8)}(h@- ````n```` is unsupported - ````p*```` is handled by pointer() h]j)}(hhh](j)}(h````n```` is unsupportedh]j)}(hjތh](j.)}(h ````n````h]h``n``}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh is unsupported}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj܌ubah}(h]h ]h"]h$]h&]uh1jhjٌubj)}(h#````p*```` is handled by pointer() h]j)}(h"````p*```` is handled by pointer()h](j.)}(h ````p*````h]h``p*``}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh is handled by pointer()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubah}(h]h ]h"]h$]h&]uh1jhjٌubeh}(h]h ]h"]h$]h&]jjuh1jhjhM hjՌubah}(h]h ]h"]h$]h&]uh1j;8hjhM hjubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(hF**Please update the documentation in both places when making changes**h]j)}(hjFh]hBPlease update the documentation in both places when making changes}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(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}(hjdhhhNhNubah}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh$, the resulting string is truncated.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvscnprintf (C function) c.vscnprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hFint vscnprintf (char *buf, size_t size, const char *fmt, va_list args)h]h)}(hEint vscnprintf(char *buf, size_t size, const char *fmt, va_list args)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMf ubh)}(h h]h }(hj͍hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj̍hMf ubj)}(h vscnprintfh]j)}(h vscnprintfh]h vscnprintf}(hjߍhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۍubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj̍hMf ubj/)}(h7(char *buf, size_t size, const char *fmt, va_list args)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsjsb c.vscnprintfasbuh1hhj9ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hsizeh]hsize}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hjˎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j\ c.vscnprintfasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj̍hMf ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj̍hMf ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̍hMf hjhhubj)}(hhh]j)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMf hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̍hMf ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMj hjYubj)}(hhh](j")}(h2``char *buf`` The buffer to place the result into h](j()}(h ``char *buf``h]j.)}(hj~h]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMg hjxubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMg hjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMg hjuubj")}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMh hjubjD)}(hhh]j)}(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&]uh1jhj̏hMh hj͏ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̏hMh hjuubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMi hjubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMi hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMi hjuubj")}(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&]uh1j-hj'ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMj hj#ubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMj hj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMj hjuubeh}(h]h ]h"]h$]h&]uh1jhjYubj)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMl hjYubj)}(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 }(hjzhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh) not including the trailing ‘0’. If }(hjzhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh is == 0 the function returns 0.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMl hjYubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMp hjYubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMr hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsnprintf (C function) c.snprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h;int snprintf (char *buf, size_t size, const char *fmt, ...)h]h)}(h:int snprintf(char *buf, size_t size, const char *fmt, ...)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hsnprintfh]j)}(hsnprintfh]hsnprintf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h.(char *buf, size_t size, const char *fmt, ...)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbufh]hbuf}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}jsjsb c.snprintfasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjϑhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjݑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h...h]j)}(h...h]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jސah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj]h]h Parameters}(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:24: ./lib/vsprintf.chM hjWubj)}(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&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjvubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjsubj")}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(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&]uh1jhjʒhM hj˒ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjʒhM hjsubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjsubj")}(h(``...`` Arguments for the format string h](j()}(h``...``h]j.)}(hj'h]h...}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj!ubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hM hj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hM hjsubeh}(h]h ]h"]h$]h&]uh1jhjWubj)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjWubj)}(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 }(hjxhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh$, the resulting string is truncated.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjWubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌscnprintf (C function) c.scnprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hh]h Description}(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:24: ./lib/vsprintf.chM hj3ubj)}(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 }(hjThhhNhNubj)}(h**buf**h]hbuf}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh) not including the trailing ‘0’. If }(hjThhhNhNubj)}(h**size**h]hsize}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh is == 0 the function returns 0.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvsprintf (C function) c.vsprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h7int vsprintf (char *buf, const char *fmt, va_list args)h]h)}(h6int vsprintf(char *buf, const char *fmt, va_list args)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hvsprintfh]j)}(hvsprintfh]hvsprintf}(hjȖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĖubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h*(char *buf, const char *fmt, va_list args)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjܖubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hcharh]hchar}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hfmth]hfmt}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjܖubj5)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjʖsb c.vsprintfasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjܖubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjޗhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjۗhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(hhh](j")}(h2``char *buf`` The buffer to place the result into h](j()}(h ``char *buf``h]j.)}(hjh]h char *buf}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hM hjubj")}(h-``const char *fmt`` The format string to use h](j()}(h``const char *fmt``h]j.)}(hjXh]hconst char *fmt}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjRubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhM hjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhM 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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj̘h]h Description}(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:24: ./lib/vsprintf.chM hjubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsprintf (C function) c.sprintfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h-int sprintf (char *buf, const char *fmt, ...)h]h)}(h,int sprintf(char *buf, const char *fmt, ...)h](h)}(hinth]hint}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhjOhM ubj)}(hsprintfh]j)}(hsprintfh]hsprintf}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhhjOhM ubj/)}(h!(char *buf, const char *fmt, ...)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj͙hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjۙhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubj5)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj=hhhjOhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhjOhM ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhM hj6hhubj)}(hhh]j)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjChhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjbubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj~ubj")}(h-``const char *fmt`` The format string to use h](j()}(h``const char *fmt``h]j.)}(hjh]hconst char *fmt}(hjšhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjٚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՚hM hj֚ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj՚hM hj~ubj")}(h(``...`` Arguments for the format string h](j()}(h``...``h]j.)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjbubj)}(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 }(hjJhhhNhNubj)}(h**buf**h]hbuf}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhC. Use snprintf() or scnprintf() in order to avoid buffer overflows.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjbubj)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvbin_printf (C function) c.vbin_printfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hNint vbin_printf (u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h]h)}(hMint vbin_printf(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(h vbin_printfh]j)}(h vbin_printfh]h vbin_printf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhhjhM ubj/)}(h>(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j5)}(h u32 *bin_bufh](h)}(hhh]j)}(hu32h]hu32}(hjڛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjכubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjܛmodnameN classnameNjwjz)}j}]j)}jsjsb c.vbin_printfasbuh1hhjӛubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӛubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӛubj)}(hbin_bufh]hbin_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӛubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjϛubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j c.vbin_printfasbuh1hhj*ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hsizeh]hsize}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjϛubj5)}(hconst char *fmt_strh](j;)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hfmt_strh]hfmt_str}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjϛubj5)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hj֜hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӜubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj؜modnameN classnameNjwjz)}j}]j c.vbin_printfasbuh1hhjϜubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjϜubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϜubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjϛubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(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}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubj)}(hhh](j")}(h8``u32 *bin_buf`` The buffer to place args' binary value h](j()}(h``u32 *bin_buf``h]j.)}(hjmh]h u32 *bin_buf}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjgubjD)}(hhh]j)}(h&The buffer to place args' binary valueh]h(The buffer to place args’ binary value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(hI``size_t size`` The size of the buffer(by words(32bits), not characters) h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(h8The size of the buffer(by words(32bits), not characters)h]h8The size of the buffer(by words(32bits), not characters)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjݝubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjٝubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjٝubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubjD)}(hhh]j)}(hArguments for the format stringh]hArguments for the format string}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hM hj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hM hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubj)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubj)}(hWThe format follows C99 vsnprintf, except ``n`` is ignored, and its argument is skipped.h](h)The format follows C99 vsnprintf, except }(hjihhhNhNubj.)}(h``n``h]hn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubh) is ignored, and its argument is skipped.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubj)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubj)}(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 }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7, the resulting bin_buf is NOT valid for bstr_printf().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbstr_printf (C function) c.bstr_printfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hQint bstr_printf (char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h]h)}(hPint bstr_printf(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMs ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMs ubj)}(h bstr_printfh]j)}(h bstr_printfh]h bstr_printf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMs ubj/)}(hA(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](j5)}(h char *bufh](h)}(hcharh]hchar}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hbufh]hbuf}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsjsb c.bstr_printfasbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(hconst char *fmt_strh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjȟhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj֟hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmt_strh]hfmt_str}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(hconst u32 *bin_bufh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hu32h]hu32}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j c.bstr_printfasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbin_bufh]hbin_buf}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMs ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMs ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMs hjhhubj)}(hhh]j)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMs hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMs ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMw 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&]uh1j-hjؠubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMt hjԠubjD)}(hhh]j)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMt hjubah}(h]h ]h"]h$]h&]uh1jChjԠubeh}(h]h ]h"]h$]h&]uh1j!hjhMt hjѠubj")}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMu hj ubjD)}(hhh]j)}(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&]uh1jhj(hMu hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hMu hjѠubj")}(h1``const char *fmt_str`` The format string to use h](j()}(h``const char *fmt_str``h]j.)}(hjLh]hconst char *fmt_str}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMv hjFubjD)}(hhh]j)}(hThe format string to useh]hThe format string to use}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMv hjbubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjahMv hjѠubj")}(h>``const u32 *bin_buf`` Binary arguments for the format string h](j()}(h``const u32 *bin_buf``h]j.)}(hjh]hconst u32 *bin_buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMw hjubjD)}(hhh]j)}(h&Binary arguments for the format stringh]h&Binary arguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMw hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMw hjѠubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hj¡hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMy hjubj)}(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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chMy hjubj)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM~ hjubjD)}(hhh]j)}(h"see vsnprintf comment for details.h]h"see vsnprintf comment for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM~ hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM~ hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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 }(hj0hhhNhNubj)}(h**buf**h]hbuf}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hj0hhhNhNubj)}(h**size**h]hsize}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh$, the resulting string is truncated.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvsscanf (C function) c.vsscanfhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hint kstrtoll(const char *s, unsigned int base, long long *res)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKubh)}(h h]h }(hjɮhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjȮhKubj)}(hkstrtollh]j)}(hkstrtollh]hkstrtoll}(hjۮhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj׮ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjȮhKubj/)}(h2(const char *s, unsigned int base, long long *res)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hinth]hint}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hlong long *resh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjίhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjܯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjȮhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjȮhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȮhKhjhhubj)}(hhh]j)}(hconvert a string to a long longh]hconvert a string to a long long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȮhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj+jj+jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/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.)}(hjTh]h const char *s}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjNubjD)}(hhh]j)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihKhjKubj")}(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.)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubjD)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjKubj")}(hK``long long *res`` Where to write the result of the conversion on success. h](j()}(h``long long *res``h]j.)}(hjȰh]hlong long *res}(hjʰhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjưubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj°ubjD)}(hhh]j)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݰhKhjްubah}(h]h ]h"]h$]h&]uh1jChj°ubeh}(h]h ]h"]h$]h&]uh1j!hjݰhKhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrtouint (C function) c.kstrtouinthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hDint kstrtouint (const char *s, unsigned int base, unsigned int *res)h]h)}(hCint kstrtouint(const char *s, unsigned int base, unsigned int *res)h](h)}(hinth]hint}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhKubj)}(h kstrtouinth]j)}(h kstrtouinth]h kstrtouint}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjVhKubj/)}(h5(const char *s, unsigned int base, unsigned int *res)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjɱhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݱubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjݱubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݱubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjݱubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjݱubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hunsigned int *resh](h)}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hinth]hint}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hresh]hres}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjVhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhKubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhKhj=hhubj)}(hhh]j)}(h#convert a string to an unsigned inth]h#convert a string to an unsigned int}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjòh]h Parameters}(hjŲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubj)}(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.)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjܲubjD)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubah}(h]h ]h"]h$]h&]uh1jChjܲubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjٲ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.)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubjD)}(hhh]j)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hKhjٲubj")}(hN``unsigned int *res`` Where to write the result of the conversion on success. h](j()}(h``unsigned int *res``h]j.)}(hjVh]hunsigned int *res}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjPubjD)}(hhh]j)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhKhjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhKhjٲubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrtoint (C function) c.kstrtointhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h:int kstrtoint (const char *s, unsigned int base, int *res)h]h)}(h9int kstrtoint(const char *s, unsigned int base, int *res)h](h)}(hinth]hint}(hjֳhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjҳhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjҳhhhjhKubj)}(h kstrtointh]j)}(h kstrtointh]h kstrtoint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjҳhhhjhKubj/)}(h,(const char *s, unsigned int base, int *res)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hunsigned int baseh](h)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint *resh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjδhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjܴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjҳhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjγhhhjhKubah}(h]jɳah ](jjeh"]h$]h&]jj)jhuh1hhjhKhj˳hhubj)}(hhh]j)}(hconvert a string to an inth]hconvert a string to an int}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj˳hhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj+jj+jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/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.)}(hjTh]h const char *s}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjNubjD)}(hhh]j)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihKhjKubj")}(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.)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubjD)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjKubj")}(hE``int *res`` Where to write the result of the conversion on success. h](j()}(h ``int *res``h]j.)}(hjȵh]hint *res}(hjʵhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjƵubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhjµubjD)}(hhh]j)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݵhKhj޵ubah}(h]h ]h"]h$]h&]uh1jChjµubeh}(h]h ]h"]h$]h&]uh1j!hjݵhKhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrtobool (C function) c.kstrtoboolhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h)int kstrtobool (const char *s, bool *res)h]h)}(h(int kstrtobool(const char *s, bool *res)h](h)}(hinth]hint}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMSubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhMSubj)}(h kstrtoboolh]j)}(h kstrtoboolh]h kstrtobool}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjVhMSubj/)}(h(const char *s, bool *res)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjɶhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(h bool *resh](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݶubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjݶubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݶubj)}(hresh]hres}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjݶubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjVhMSubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhMSubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMShj=hhubj)}(hhh]j)}(h.convert common user inputs into boolean valuesh]h.convert common user inputs into boolean values}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMShj0hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjKjjKjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMWhjOubj)}(hhh](j")}(h``const char *s`` input string h](j()}(h``const char *s``h]j.)}(hjth]h const char *s}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMThjnubjD)}(hhh]j)}(h input stringh]h input string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhMThjkubj")}(h``bool *res`` result h](j()}(h ``bool *res``h]j.)}(hjh]h bool *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMUhjubjD)}(hhh]j)}(hresulth]hresult}(hjƷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj·hMUhj÷ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj·hMUhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMWhjOubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:30: ./lib/kstrtox.chMWhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstring_get_size (C function)c.string_get_sizehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hdint string_get_size (u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h]h)}(hcint string_get_size(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](h)}(hinth]hint}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hKubj)}(hstring_get_sizeh]j)}(hstring_get_sizeh]hstring_get_size}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hKubj/)}(hP(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j5)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}jsjPsbc.string_get_sizeasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(h u64 blk_sizeh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.string_get_sizeasbuh1hhjubh)}(h h]h }(hjոhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hblk_sizeh]hblk_size}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(h"const enum string_size_units unitsh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(henumh]henum}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hstring_size_unitsh]hstring_size_units}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]jc.string_get_sizeasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hunitsh]hunits}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(h char *bufh](h)}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hint lenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj˹hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hjٹhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hKhj"hhubj)}(hhh]j)}(h#get the size in the specified unitsh]h#get the size in the specified units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjubj)}(hhh](j")}(h0``u64 size`` The size to be converted in blocks h](j()}(h ``u64 size``h]j.)}(hjDh]hu64 size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj>ubjD)}(hhh]j)}(h"The size to be converted in blocksh]h"The size to be converted in blocks}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhKhj;ubj")}(h=``u64 blk_size`` Size of the block (use 1 for size in bytes) h](j()}(h``u64 blk_size``h]j.)}(hj}h]h u64 blk_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjwubjD)}(hhh]j)}(h+Size of the block (use 1 for size in bytes)h]h+Size of the block (use 1 for size in bytes)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj;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.)}(hjh]h"const enum string_size_units units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjubjD)}(hhh]j)}(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&]uh1jhj˺hKhj̺ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj˺hKhj;ubj")}(h"``char *buf`` buffer to format to h](j()}(h ``char *buf``h]j.)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjubjD)}(hhh]j)}(hbuffer to format toh]hbuffer to format to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj;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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj"ubjD)}(hhh]j)}(hlength of bufferh]hlength of buffer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj=hKhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chK hjubj)}(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. }(hjyhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubhJ should have room for at least 9 bytes and will always be zero terminated.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chK hjubj)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!parse_int_array_user (C function)c.parse_int_array_userhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hMint parse_int_array_user (const char __user *from, size_t count, int **array)h]h)}(hLint parse_int_array_user(const char __user *from, size_t count, int **array)h](h)}(hinth]hint}(hjɻhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjŻhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKubh)}(h h]h }(hjػhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjŻhhhj׻hKubj)}(hparse_int_array_userh]j)}(hparse_int_array_userh]hparse_int_array_user}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjŻhhhj׻hKubj/)}(h4(const char __user *from, size_t count, int **array)h](j5)}(hconst char __user *fromh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsjsbc.parse_int_array_userasbuh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int **arrayh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjͼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjۼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(harrayh]harray}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjŻhhhj׻hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj׻hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj׻hKhjhhubj)}(hhh]j)}(h(Split string into a sequence of integersh]h(Split string into a sequence of integers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj׻hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjZubjD)}(hhh]j)}(h"The user space buffer to read fromh]h"The user space buffer to read from}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhKhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhKhjWubj")}(h5``size_t count`` The maximum number of bytes to read h](j()}(h``size_t count``h]j.)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhjubjD)}(hhh]j)}(h#The maximum number of bytes to readh]h#The maximum number of bytes to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjWubj")}(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&]uh1j-hjнubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj̽ubjD)}(hhh]j)}(h(Returned pointer to sequence of integersh]h(Returned pointer to sequence of integers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChj̽ubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubj)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj;ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj;ubj)}(hNCaller takes responsibility for freeing **array** when it is no longer needed.h](h(Caller takes responsibility for freeing }(hjVhhhNhNubj)}(h **array**h]harray}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh when it is no longer needed.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chKhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstring_unescape (C function)c.string_unescapehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hKint string_unescape (char *src, char *dst, size_t size, unsigned int flags)h]h)}(hJint string_unescape(char *src, char *dst, size_t size, unsigned int flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hstring_unescapeh]j)}(hstring_unescapeh]hstring_unescape}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h7(char *src, char *dst, size_t size, unsigned int flags)h](j5)}(h char *srch](h)}(hcharh]hchar}(hjԾhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjоubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjоubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjоubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjоubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj̾ubj5)}(h char *dsth](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj̾ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsjsbc.string_unescapeasbuh1hhjTubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj̾ubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj̿hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjڿhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj̾ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h&unquote characters in the given stringh]h&unquote characters in the given string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM!hj ubj)}(hhh](j")}(h&``char *src`` source buffer (escaped) h](j()}(h ``char *src``h]j.)}(hjEh]h char *src}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj?ubjD)}(hhh]j)}(hsource buffer (escaped)h]hsource buffer (escaped)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhj<ubj")}(h-``char *dst`` destination buffer (unescaped) h](j()}(h ``char *dst``h]j.)}(hj~h]h char *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjxubjD)}(hhh]j)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj<ubj")}(h>``size_t size`` size of the destination buffer (0 to unlimit) h](j()}(h``size_t size``h]j.)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM hjubjD)}(hhh]j)}(h-size of the destination buffer (0 to unlimit)h]h-size of the destination buffer (0 to unlimit)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj<ubj")}(h1``unsigned int flags`` combination of the flags. h](j()}(h``unsigned int flags``h]j.)}(hjh]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM!hjubjD)}(hhh]j)}(hcombination of the flags.h]hcombination of the flags.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM!hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM!hj<ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj+h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM#hj ubj)}(h5The function unquotes characters in the given string.h]h5The function unquotes characters in the given string.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM#hj ubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM%hj ubj)}(hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are::h]hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are:}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM(hj ubh 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}hjpsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM,hj ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM>hj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM?hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstring_escape_mem (C function)c.string_escape_memhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hpint string_escape_mem (const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h]h)}(hoint string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hstring_escape_memh]j)}(hstring_escape_memh]hstring_escape_mem}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hZ(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](j5)}(hconst char *srch](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t iszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j)}jsjsbc.string_escape_memasbuh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hiszh]hisz}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h char *dsth](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t oszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.string_escape_memasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoszh]hosz}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hinth]hint}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hflagsh]hflags}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *onlyh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(honlyh]honly}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h+quote characters in the given memory bufferh]h+quote characters in the given memory buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hhh](j")}(h.``const char *src`` source buffer (unescaped) h](j()}(h``const char *src``h]j.)}(hj4h]hconst char *src}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj.ubjD)}(hhh]j)}(hsource buffer (unescaped)h]hsource buffer (unescaped)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhj+ubj")}(h"``size_t isz`` source buffer size h](j()}(h``size_t isz``h]j.)}(hjmh]h size_t isz}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjgubjD)}(hhh]j)}(hsource buffer sizeh]hsource buffer size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj+ubj")}(h+``char *dst`` destination buffer (escaped) h](j()}(h ``char *dst``h]j.)}(hjh]h char *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hdestination buffer (escaped)h]hdestination buffer (escaped)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj+ubj")}(h'``size_t osz`` destination buffer size h](j()}(h``size_t osz``h]j.)}(hjh]h size_t osz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hdestination buffer sizeh]hdestination buffer size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj+ubj")}(h0``unsigned int flags`` combination of the flags h](j()}(h``unsigned int flags``h]j.)}(hjh]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hcombination of the flagsh]hcombination of the flags}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hMhj+ubj")}(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.)}(hjQh]hconst char *only}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjKubjD)}(hhh]j)}(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 }(hjjhhhNhNubj)}(h**only**h]honly}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh? that would not normally be escaped by the classes selected in }(hjjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh, they will be copied to }(hjjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh unescaped.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj<8)}(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]j)}(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 }(hjhhhNhNubj)}(h**only**h]honly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- string and thus must go as-is to the output.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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]j)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.h]j)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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]j)}(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 }(hjRhhhNhNubj)}(h **flags**h]hflags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh. }(hjRhhhNhNubj.)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubh and }(hjRhhhNhNubj.)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubhg are going last since they cover any character. Note that they actually can’t go together, otherwise }(hjRhhhNhNubj.)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubh will be ignored.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM hjNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubj)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjo)}(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}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubhF would help to pass additional characters to the escaped, when one of }(hjhhhNhNubj.)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh, }(hjhhhNhNubj.)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh, or }(hjhhhNhNubj.)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh is provided.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM0hjubj)}(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 }(hj1hhhNhNubj.)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh, }(hj1hhhNhNubj.)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh and }(hj1hhhNhNubj.)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh6 have the higher priority than the rest of the flags (}(hj1hhhNhNubj.)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubhM is the highest). It doesn’t make much sense to use either of them without }(hj1hhhNhNubj.)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh or }(hj1hhhNhNubj.)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh:, because they cover most of the other character classes. }(hj1hhhNhNubj.)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh can utilize }(hj1hhhNhNubj.)}(h``ESCAPE_SPACE``h]h ESCAPE_SPACE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh or }(hj1hhhNhNubj.)}(h``ESCAPE_SPECIAL``h]hESCAPE_SPECIAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubh in addition to the above.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM3hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM:hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkasprintf_strarray (C function)c.kasprintf_strarrayhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hDchar ** kasprintf_strarray (gfp_t gfp, const char *prefix, size_t n)h]h)}(hBchar **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n)h](h)}(hcharh]hchar}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhhj7hMubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubj)}(hkasprintf_strarrayh]j)}(hkasprintf_strarrayh]hkasprintf_strarray}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhj7hMubj/)}(h)(gfp_t gfp, const char *prefix, size_t n)h](j5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjfsbc.kasprintf_strarrayasbuh1hhj|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hconst char *prefixh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]jc.kasprintf_strarrayasbuh1hhj#ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hj h]hn}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj%hhhj7hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjhhubj)}(hhh]j)}(h-allocate and fill array of sequential stringsh]h-allocate and fill array of sequential strings}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hhh](j")}(h+``gfp_t gfp`` flags for the slab allocator h](j()}(h ``gfp_t gfp``h]j.)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hflags for the slab allocatorh]hflags for the slab allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``const char *prefix`` prefix to be used h](j()}(h``const char *prefix``h]j.)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hprefix to be usedh]hprefix to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h8``size_t n`` amount of lines to be allocated and filled h](j()}(h ``size_t n``h]j.)}(hj2h]hsize_t n}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj,ubjD)}(hhh]j)}(h*amount of lines to be allocated and filledh]h*amount of lines to be allocated and filled}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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 }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh strings using pattern “}(hjhhhNhNubj.)}(h ``s-````zu``h]hs-````zu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubhp”, where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree_strarray (C function)c.kfree_strarrayhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,void kfree_strarray (char **array, size_t n)h]h)}(h+void kfree_strarray(char **array, size_t n)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hkfree_strarrayh]j)}(hkfree_strarrayh]hkfree_strarray}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(char **array, size_t n)h](j5)}(h char **arrayh](h)}(hcharh]hchar}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(harrayh]harray}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsjsbc.kfree_strarrayasbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hhh](j")}(hA``char **array`` Dynamically allocated array of strings to free. h](j()}(h``char **array``h]j.)}(hj h]h char **array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(h/Dynamically allocated array of strings to free.h]h/Dynamically allocated array of strings to free.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhjubj")}(hS``size_t n`` Number of strings (starting from the beginning of the array) to free. h](j()}(h ``size_t n``h]j.)}(hjEh]hsize_t n}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj?ubjD)}(hhh]j)}(hENumber of strings (starting from the beginning of the array) to free.h]hENumber of strings (starting from the beginning of the array) to free.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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 }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == 0 as well as NULL }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are valid use-cases. If }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ is NULL, the function does nothing.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌskip_spaces (C function) c.skip_spaceshNtauh1hhjxhhhNhNubh)}(hhh](h)}(h$char * skip_spaces (const char *str)h]h)}(h"char *skip_spaces(const char *str)h](h)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMHubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMHubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMHubj)}(h skip_spacesh]j)}(h skip_spacesh]h skip_spaces}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhjhMHubj/)}(h(const char *str)h]j5)}(hconst char *strh](j;)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjSubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hcharh]hchar}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhjhMHubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMHhjhhubj)}(hhh]j)}(h(Removes leading whitespace from **str**.h](h Removes leading whitespace from }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMHhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``const char *str`` The string to be stripped. **Description** Returns a pointer to the first non-whitespace character in **str**.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMLhjubj)}(hhh]j")}(h/``const char *str`` The string to be stripped. h](j()}(h``const char *str``h]j.)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMIhjubjD)}(hhh]j)}(hThe string to be stripped.h]hThe string to be stripped.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMIhj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hMIhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMKhjubj)}(hCReturns a pointer to the first non-whitespace character in **str**.h](h;Returns a pointer to the first non-whitespace character in }(hjihhhNhNubj)}(h**str**h]hstr}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrim (C function)c.strimhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hchar * strim (char *s)h]h)}(hchar *strim(char *s)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMVubj)}(hstrimh]j)}(hstrimh]hstrim}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMVubj/)}(h (char *s)h]j5)}(hchar *sh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMVubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMVhjhhubj)}(hhh]j)}(h3Removes leading and trailing whitespace from **s**.h](h-Removes leading and trailing whitespace from }(hjFhhhNhNubj)}(h**s**h]hs}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMVhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMZhjtubj)}(hhh]j")}(h'``char *s`` The string to be stripped. h](j()}(h ``char *s``h]j.)}(hjh]hchar *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMWhjubjD)}(hhh]j)}(hThe string to be stripped.h]hThe string to be stripped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMYhjtubj)}(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 }(hjhhhNhNubj.)}(h``NUL-terminator``h]hNUL-terminator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh in the given string }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh=. Returns a pointer to the first non-whitespace character in }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMYhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsysfs_streq (C function) c.sysfs_streqhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h1bool sysfs_streq (const char *s1, const char *s2)h]h)}(h0bool sysfs_streq(const char *s1, const char *s2)h](h)}(hjoh]hbool}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMpubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj\hMpubj)}(h sysfs_streqh]j)}(h sysfs_streqh]h sysfs_streq}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjKhhhj\hMpubj/)}(h (const char *s1, const char *s2)h](j5)}(hconst char *s1h](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *s2h](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hs2h]hs2}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjKhhhj\hMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhj\hMpubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj\hMphjDhhubj)}(hhh]j)}(h9return true if strings are equal, modulo trailing newlineh]h9return true if strings are equal, modulo trailing newline}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMphjShhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMthjrubj)}(hhh](j")}(h``const char *s1`` one string h](j()}(h``const char *s1``h]j.)}(hjh]hconst char *s1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMqhjubjD)}(hhh]j)}(h one stringh]h one string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMqhjubj")}(h"``const char *s2`` another string h](j()}(h``const char *s2``h]j.)}(hjh]hconst char *s2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMrhjubjD)}(hhh]j)}(hanother stringh]hanother string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjubeh}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMthjrubj)}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMthjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmatch_string (C function)c.match_stringhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hJint match_string (const char * const *array, size_t n, const char *string)h]h)}(hHint match_string(const char *const *array, size_t n, const char *string)h](h)}(hinth]hint}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhj^hMubj)}(h match_stringh]j)}(h match_stringh]h match_string}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhj^hMubj/)}(h8(const char *const *array, size_t n, const char *string)h](j5)}(hconst char *const *arrayh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(harrayh]harray}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjssbc.match_stringasbuh1hhjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hj h]hn}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *stringh](j;)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hcharh]hchar}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hstringh]hstring}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjLhhhj^hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhjEhhubj)}(hhh]j)}(h matches given string in an arrayh]h matches given string in an array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hhh](j")}(h/``const char * const *array`` array of strings h](j()}(h``const char * const *array``h]j.)}(hj h]hconst char * const *array}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(harray of stringsh]harray of strings}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j()}(h ``size_t n``h]j.)}(hjCh]hsize_t n}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj=ubjD)}(hhh]j)}(h?number of strings in the array or -1 for NULL terminated arraysh]h?number of strings in the array or -1 for NULL terminated arrays}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMhjubj")}(h,``const char *string`` string to match with h](j()}(h``const char *string``h]j.)}(hj|h]hconst char *string}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjvubjD)}(hhh]j)}(hstring to match withh]hstring to match with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(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 }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA elements have been compared OR the first NULL element was found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hLindex of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h index of a }(hj'hhhNhNubj)}(h **string**h]hstring}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh in the }(hj'hhhNhNubj)}(h **array**h]harray}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh if matches, or }(hj'hhhNhNubj.)}(h ``-EINVAL``h]h-EINVAL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj'ubh otherwise.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__sysfs_match_string (C function)c.__sysfs_match_stringhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hOint __sysfs_match_string (const char * const *array, size_t n, const char *str)h]h)}(hMint __sysfs_match_string(const char *const *array, size_t n, const char *str)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h__sysfs_match_stringh]j)}(h__sysfs_match_stringh]h__sysfs_match_string}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h5(const char *const *array, size_t n, const char *str)h](j5)}(hconst char *const *arrayh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(harrayh]harray}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjsbc.__sysfs_match_stringasbuh1hhjJubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *strh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h matches given string in an arrayh]h matches given string in an array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(hX**Parameters** ``const char * const *array`` array of strings ``size_t n`` number of strings in the array or -1 for NULL terminated arrays ``const char *str`` string to match with **Description** Returns index of **str** in the **array** or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching. This routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element. Historically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found.h](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj!ubj)}(hhh](j")}(h/``const char * const *array`` array of strings h](j()}(h``const char * const *array``h]j.)}(hjFh]hconst char * const *array}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj@ubjD)}(hhh]j)}(harray of stringsh]harray of strings}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMhj=ubj")}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j()}(h ``size_t n``h]j.)}(hjh]hsize_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjyubjD)}(hhh]j)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj=ubj")}(h)``const char *str`` string to match with h](j()}(h``const char *str``h]j.)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hstring to match withh]hstring to match with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj!ubj)}(hReturns index of **str** in the **array** or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching.h](hReturns index of }(hj hhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh in the }(hj hhhNhNubj)}(h **array**h]harray}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhW or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj!ubj)}(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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj!ubj)}(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 }(hjKhhhNhNubj)}(h**n**h]hn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjKhhhNhNubj)}(h**n**h]hn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubhA elements have been compared OR the first NULL element was found.!}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrreplace (C function) c.strreplacehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h1char * strreplace (char *str, char old, char new)h]h)}(h/char *strreplace(char *str, char old, char new)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h strreplaceh]j)}(h strreplaceh]h strreplace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(char *str, char old, char new)h](j5)}(h char *strh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hchar oldh](h)}(hcharh]hchar}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(holdh]hold}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hchar newh](h)}(hcharh]hchar}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hnewh]hnew}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h/Replace all occurrences of character in string.h]h/Replace all occurrences of character in string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(hX8**Parameters** ``char *str`` The string to operate on. ``char old`` The character being replaced. ``char new`` The character **old** is replaced with. **Description** Replaces the each **old** character with a **new** one in the given string **str**. **Return** pointer to the string **str** itself.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hhh](j")}(h(``char *str`` The string to operate on. h](j()}(h ``char *str``h]j.)}(hjh]h char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hThe string to operate on.h]hThe string to operate on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h+``char old`` The character being replaced. h](j()}(h ``char old``h]j.)}(hjh]hchar old}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hThe character being replaced.h]hThe character being replaced.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhjubj")}(h5``char new`` The character **old** is replaced with. h](j()}(h ``char new``h]j.)}(hjXh]hchar new}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjRubjD)}(hhh]j)}(h'The character **old** is replaced with.h](hThe character }(hjqhhhNhNubj)}(h**old**h]hold}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh is replaced with.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(hSReplaces the each **old** character with a **new** one in the given string **str**.h](hReplaces the each }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh character with a }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh one in the given string }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubj)}(h%pointer to the string **str** itself.h](hpointer to the string }(hjhhhNhNubj)}(h**str**h]hstr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh itself.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemcpy_and_pad (C function)c.memcpy_and_padhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hYvoid memcpy_and_pad (void *dest, size_t dest_len, const void *src, size_t count, int pad)h]h)}(hXvoid memcpy_and_pad(void *dest, size_t dest_len, const void *src, size_t count, int pad)h](h)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMubj)}(hmemcpy_and_padh]j)}(hmemcpy_and_padh]hmemcpy_and_pad}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjghMubj/)}(hE(void *dest, size_t dest_len, const void *src, size_t count, int pad)h](j5)}(h void *desth](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t dest_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj|sbc.memcpy_and_padasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdest_lenh]hdest_len}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *srch](j;)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.memcpy_and_padasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint padh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hpadh]hpad}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhjghMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(hhh]j)}(h'Copy one buffer to another with paddingh]h'Copy one buffer to another with padding}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhjxhNhNubj)}(hX **Parameters** ``void *dest`` Where to copy to ``size_t dest_len`` The destination buffer size ``const void *src`` Where to copy from ``size_t count`` The number of bytes to copy ``int pad`` Character to use for padding if space is left in destination.h](j)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj)ubj)}(hhh](j")}(h ``void *dest`` Where to copy to h](j()}(h``void *dest``h]j.)}(hjNh]h void *dest}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjHubjD)}(hhh]j)}(hWhere to copy toh]hWhere to copy to}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchMhjEubj")}(h0``size_t dest_len`` The destination buffer size h](j()}(h``size_t dest_len``h]j.)}(hjh]hsize_t dest_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hThe destination buffer sizeh]hThe destination buffer size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjEubj")}(h'``const void *src`` Where to copy from h](j()}(h``const void *src``h]j.)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hWhere to copy fromh]hWhere to copy from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjEubj")}(h-``size_t count`` The number of bytes to copy h](j()}(h``size_t count``h]j.)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjubjD)}(hhh]j)}(hThe number of bytes to copyh]hThe number of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjEubj")}(hI``int pad`` Character to use for padding if space is left in destination.h](j()}(h ``int pad``h]j.)}(hj2h]hint pad}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhj,ubjD)}(hhh]j)}(h=Character to use for padding if space is left in destination.h]h=Character to use for padding if space is left in destination.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./lib/string_helpers.chMhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubeh}(h]string-conversionsah ]h"]string conversionsah$]h&]uh1hhjYhhhhhKubh)}(hhh](h)}(hString Manipulationh]hString Manipulation}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hhhhhK%ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌunsafe_memcpy (C macro)c.unsafe_memcpyhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h unsafe_memcpyh]h)}(h unsafe_memcpyh]j)}(h unsafe_memcpyh]j)}(hjh]h unsafe_memcpy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(h2``unsafe_memcpy (dst, src, bytes, justification)``h]j.)}(hjh]h.unsafe_memcpy (dst, src, bytes, justification)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj{hhubj<8)}(h6memcpy implementation with no FORTIFY bounds checking h]j)}(h5memcpy implementation with no FORTIFY bounds checkingh]h5memcpy implementation with no FORTIFY bounds checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhj{hhubj)}(hX,**Parameters** ``dst`` Destination memory address to write to ``src`` Source memory address to read from ``bytes`` How many bytes to write to **dst** from **src** ``justification`` Free-form text or comment describing why the use is needed **Description** This should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj ubj)}(hhh](j")}(h/``dst`` Destination memory address to write to h](j()}(h``dst``h]j.)}(hj/h]hdst}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj)ubjD)}(hhh]j)}(h&Destination memory address to write toh]h&Destination memory address to write to}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhKhj&ubj")}(h+``src`` Source memory address to read from h](j()}(h``src``h]j.)}(hjhh]hsrc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjbubjD)}(hhh]j)}(h"Source memory address to read fromh]h"Source memory address to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hKhj&ubj")}(h:``bytes`` How many bytes to write to **dst** from **src** h](j()}(h ``bytes``h]j.)}(hjh]hbytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubjD)}(hhh]j)}(h/How many bytes to write to **dst** from **src**h](hHow many bytes to write to }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh from }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj&ubj")}(hM``justification`` Free-form text or comment describing why the use is needed h](j()}(h``justification``h]j.)}(hjh]h justification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubjD)}(hhh]j)}(h:Free-form text or comment describing why the use is neededh]h:Free-form text or comment describing why the use is needed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj ubj)}(hXThis should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.h]hXThis should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrncpy (C function) c.strncpyhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hDchar * strncpy (char * const p, const char *q, __kernel_size_t size)h]h)}(hAchar *strncpy(char *const p, const char *q, __kernel_size_t size)h](h)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhKubj)}(hstrncpyh]j)}(hstrncpyh]hstrncpy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjhKubj/)}(h4(char *const p, const char *q, __kernel_size_t size)h](j5)}(h char *const ph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h const char *qh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hqh]hq}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h__kernel_size_t sizeh](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.strncpyasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjohhubj)}(hhh]j)}(h7Copy a string to memory with non-guaranteed NUL paddingh]h7Copy a string to memory with non-guaranteed NUL padding}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(hX?**Parameters** ``char * const p`` pointer to destination of copy ``const char *q`` pointer to NUL-terminated source string to copy ``__kernel_size_t size`` bytes to write at **p** **Description** If strlen(**q**) >= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminated If strlen(**q**) < **size**, following the copy of **q**, trailing NUL bytes will be written to **p** until **size** total bytes have been written. Do not use this function. While FORTIFY_SOURCE tries to avoid over-reads of **q**, it cannot defend against writing unterminated results to **p**. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of **p**'s contents is unambiguous: +--------------------+--------------------+------------+ | **p** needs to be: | padded to **size** | not padded | +====================+====================+============+ | NUL-terminated | strscpy_pad() | strscpy() | +--------------------+--------------------+------------+ | not NUL-terminated | strtomem_pad() | strtomem() | +--------------------+--------------------+------------+ Note strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(hhh](j")}(h2``char * const p`` pointer to destination of copy h](j()}(h``char * const p``h]j.)}(hjh]hchar * const p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubjD)}(hhh]j)}(hpointer to destination of copyh]hpointer to destination of copy}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj.hKhjubj")}(hB``const char *q`` pointer to NUL-terminated source string to copy h](j()}(h``const char *q``h]j.)}(hjRh]h const char *q}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjLubjD)}(hhh]j)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghKhjhubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjghKhjubj")}(h1``__kernel_size_t size`` bytes to write at **p** h](j()}(h``__kernel_size_t size``h]j.)}(hjh]h__kernel_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubjD)}(hhh]j)}(hbytes to write at **p**h](hbytes to write at }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(htIf strlen(**q**) >= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminatedh](h If strlen(}(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) >= }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, the copy of }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will stop after }(hjhhhNhNubj)}(h**size**h]hsize}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes, and }(hjhhhNhNubj)}(h**p**h]hp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will NOT be NUL-terminated}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(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(}(hjShhhNhNubj)}(h**q**h]hq}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh) < }(hjShhhNhNubj)}(h**size**h]hsize}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, following the copy of }(hjShhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh(, trailing NUL bytes will be written to }(hjShhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh until }(hjShhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh total bytes have been written.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(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 }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh;, it cannot defend against writing unterminated results to }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhs. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s contents is unambiguous:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j hjubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]j)}(h**p** needs to be:h](j)}(h**p**h]hp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh needs to be:}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj7ubah}(h]h ]h"]h$]h&]uh1j5hj2ubj6)}(hhh]j)}(hpadded to **size**h](h padded to }(hj`hhhNhNubj)}(h**size**h]hsize}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj]ubah}(h]h ]h"]h$]h&]uh1j5hj2ubj6)}(hhh]j)}(h not paddedh]h not padded}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhKhjubah}(h]h ]h"]h$]h&]uh1j5hj2ubeh}(h]h ]h"]h$]h&]uh1j0hj-ubah}(h]h ]h"]h$]h&]uh1j+hjubhtbody)}(hhh](j1)}(hhh](j6)}(hhh]j)}(hNUL-terminatedh]hNUL-terminated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h strscpy_pad()h]h strscpy_pad()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h strscpy()h]h strscpy()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(hnot NUL-terminatedh]hnot NUL-terminated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(hstrtomem_pad()h]hstrtomem_pad()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h strtomem()h]h strtomem()}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj+ubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hNote strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h]hNote strscpy*()’s differing return values for detecting truncation, and strtomem*()’s expectation that the destination is marked with __nonstring when it is a character array.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrnlen (C function) c.strnlenhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hF__kernel_size_t strnlen (const char * const p, __kernel_size_t maxlen)h]h)}(hD__kernel_size_t strnlen(const char *const p, __kernel_size_t maxlen)h](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsstrnlensb c.strnlenasbuh1hhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hstrnlenh]j)}(hjh]hstrnlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h-(const char *const p, __kernel_size_t maxlen)h](j5)}(hconst char *const ph](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hp}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h__kernel_size_t maxlenh](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j c.strnlenasbuh1hhjOubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hmaxlenh]hmaxlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h=Return bounded count of characters in a NUL-terminated stringh]h=Return bounded count of characters in a NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(hhh](j")}(hD``const char * const p`` pointer to NUL-terminated string to count. h](j()}(h``const char * const p``h]j.)}(hjh]hconst char * const p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubjD)}(hhh]j)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(hB``__kernel_size_t maxlen`` maximum number of characters to count. h](j()}(h``__kernel_size_t maxlen``h]j.)}(hj&h]h__kernel_size_t maxlen}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj ubjD)}(hhh]j)}(h&maximum number of characters to count.h]h&maximum number of characters to count.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hKhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubj)}(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 }(hjwhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh# (NOT including the final NUL), or }(hjwhhhNhNubj)}(h **maxlen**h]hmaxlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh', if no NUL has been found up to there.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrlen (C macro)c.strlenhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hstrlenh]h)}(hstrlenh]j)}(hstrlenh]j)}(hjh]hstrlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(h``strlen (p)``h]j.)}(hjh]h strlen (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj{hhubj<8)}(h6Return count of characters in a NUL-terminated string h]j)}(h5Return count of characters in a NUL-terminated stringh]h5Return count of characters in a NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hj(hKhj{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](j)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj/ubj)}(hhh]j")}(h1``p`` pointer to NUL-terminated string to count. h](j()}(h``p``h]j.)}(hjTh]hp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhjNubjD)}(hhh]j)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihKhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj/ubj)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj/ubj)}(hDReturns number of characters in **p** (NOT including the final NUL).h](h Returns number of characters in }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (NOT including the final NUL).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrlcat (C function) c.strlcathNtauh1hhj{hhhNhNubh)}(hhh](h)}(hCsize_t strlcat (char * const p, const char * const q, size_t avail)h]h)}(h@size_t strlcat(char *const p, const char *const q, size_t avail)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsstrlcatsb c.strlcatasbuh1hhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMOubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj+hMOubj)}(hstrlcath]j)}(hj(h]hstrlcat}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj+hMOubj/)}(h2(char *const p, const char *const q, size_t avail)h](j5)}(h char *const ph](h)}(hcharh]hchar}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hconst char *const qh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(h size_t availh](h)}(hhh]j)}(hsize_th]hsize_t}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j& c.strlcatasbuh1hhj(ubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(havailh]havail}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj+hMOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj+hMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj+hMOhjhhubj)}(hhh]j)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMShjubj)}(hhh](j")}(hE``char * const p`` pointer to ``NUL-terminated`` string to append to h](j()}(h``char * const p``h]j.)}(hjh]hchar * const p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMQhjubjD)}(hhh]j)}(h1pointer to ``NUL-terminated`` string to append toh](h pointer to }(hjhhhNhNubj.)}(h``NUL-terminated``h]hNUL-terminated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh string to append to}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMQhjubj")}(hM``const char * const q`` pointer to ``NUL-terminated`` string to append from h](j()}(h``const char * const q``h]j.)}(hjh]hconst char * const q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMRhj ubjD)}(hhh]j)}(h3pointer to ``NUL-terminated`` string to append fromh](h pointer to }(hj*hhhNhNubj.)}(h``NUL-terminated``h]hNUL-terminated}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubh string to append from}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj&hMRhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMRhjubj")}(h2``size_t avail`` Maximum bytes available in **p** h](j()}(h``size_t avail``h]j.)}(hj\h]h size_t avail}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMShjVubjD)}(hhh]j)}(h Maximum bytes available in **p**h](hMaximum bytes available in }(hjuhhhNhNubj)}(h**p**h]hp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjqhMShjrubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjqhMShjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMUhjubj)}(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 }(hjhhhNhNubj.)}(h``NUL-terminated``h]hNUL-terminated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh string }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after the }(hjhhhNhNubj.)}(h``NUL-terminated``h]hNUL-terminated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh string at }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, but will not write beyond }(hjhhhNhNubj)}(h **avail**h]havail}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 bytes total, potentially truncating the copy from }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**p**h]hp}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will stay }(hjhhhNhNubj.)}(h``NUL-terminated``h]hNUL-terminated}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh only if a }(hjhhhNhNubj.)}(h``NUL``h]hNUL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh already existed within the }(hjhhhNhNubj)}(h **avail**h]havail}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes of }(hjhhhNhNubj)}(h**p**h]hp}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3. If so, the resulting number of bytes copied from }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be at most “}(hjhhhNhNubj)}(h **avail**h]havail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - strlen(}(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) - 1”.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMUhjubj)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhm are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhM\hjubj)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH regardless of truncation, similar to snprintf(). If return value is >= }(hjhhhNhNubj)}(h **avail**h]havail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , the string has been truncated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrcat (C function)c.strcathNtauh1hhj{hhhNhNubh)}(hhh](h)}(h-char * strcat (char * const p, const char *q)h]h)}(h*char *strcat(char *const p, const char *q)h](h)}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHhhhjZhMubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjZhMubj)}(hstrcath]j)}(hstrcath]hstrcat}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjHhhhjZhMubj/)}(h(char *const p, const char *q)h](j5)}(h char *const ph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h const char *qh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjHhhhjZhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjAhhubj)}(hhh]j)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj\hhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjZhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj{ubj)}(hhh](j")}(hA``char * const p`` pointer to NUL-terminated string to append to h](j()}(h``char * const p``h]j.)}(hjh]hchar * const p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubjD)}(hhh]j)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hI``const char *q`` pointer to NUL-terminated source string to append from h](j()}(h``const char *q``h]j.)}(hjh]h const char *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubjD)}(hhh]j)}(h6pointer to NUL-terminated source string to append fromh]h6pointer to NUL-terminated source string to append from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj{ubj)}(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().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj{ubj)}(hReturns **p**.h](hReturns }(hj9hhhNhNubj)}(h**p**h]hp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrncat (C function) c.strncathNtauh1hhj{hhhNhNubh)}(hhh](h)}(hLchar * strncat (char * const p, const char * const q, __kernel_size_t count)h]h)}(hHchar *strncat(char *const p, const char *const q, __kernel_size_t count)h](h)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubj)}(hstrncath]j)}(hstrncath]hstrncat}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjhMubj/)}(h;(char *const p, const char *const q, __kernel_size_t count)h](j5)}(h char *const ph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *const qh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h__kernel_size_t counth](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.strncatasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjohhubj)}(hhh]j)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj{hNhNubj)}(hX~**Parameters** ``char * const p`` pointer to NUL-terminated string to append to ``const char * const q`` pointer to source string to append from ``__kernel_size_t count`` Maximum bytes to read from **q** **Description** Appends at most **count** bytes from **q** (stopping at the first NUL byte) after the NUL-terminated string at **p**. **p** will be NUL-terminated. Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. Returns **p**.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hhh](j")}(hA``char * const p`` pointer to NUL-terminated string to append to h](j()}(h``char * const p``h]j.)}(hj3h]hchar * const p}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj-ubjD)}(hhh]j)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhj*ubj")}(hA``const char * const q`` pointer to source string to append from h](j()}(h``const char * const q``h]j.)}(hjlh]hconst char * const q}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjfubjD)}(hhh]j)}(h'pointer to source string to append fromh]h'pointer to source string to append from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubj")}(h;``__kernel_size_t count`` Maximum bytes to read from **q** h](j()}(h``__kernel_size_t count``h]j.)}(hjh]h__kernel_size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubjD)}(hhh]j)}(h Maximum bytes to read from **q**h](hMaximum bytes to read from }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hAppends at most **count** bytes from **q** (stopping at the first NUL byte) after the NUL-terminated string at **p**. **p** will be NUL-terminated.h](hAppends at most }(hjhhhNhNubj)}(h **count**h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE (stopping at the first NUL byte) after the NUL-terminated string at }(hjhhhNhNubj)}(h**p**h]hp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**p**h]hp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be NUL-terminated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar.h](hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of }(hj[hhhNhNubj)}(h**p**h]hp}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh and }(hj[hhhNhNubj)}(h**q**h]hq}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubhc are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hReturns **p**.h](hReturns }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrcpy (C function)c.strcpyhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h4char * strcpy (char * const p, const char * const q)h]h)}(h0char *strcpy(char *const p, const char *const q)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hstrcpyh]j)}(hstrcpyh]hstrcpy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h$(char *const p, const char *const q)h](j5)}(h char *const ph](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hp}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *const qh](j;)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h(Copy a string into another string bufferh]h(Copy a string into another string buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(hX**Parameters** ``char * const p`` pointer to destination of copy ``const char * const q`` pointer to NUL-terminated source string to copy **Description** Do not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of **q** and **p** are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation. Returns **p**.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hhh](j")}(h2``char * const p`` pointer to destination of copy h](j()}(h``char * const p``h]j.)}(hj>h]hchar * const p}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhj8ubjD)}(hhh]j)}(hpointer to destination of copyh]hpointer to destination of copy}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhj5ubj")}(hI``const char * const q`` pointer to NUL-terminated source string to copy h](j()}(h``const char * const q``h]j.)}(hjwh]hconst char * const q}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjqubjD)}(hhh]j)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of **q** and **p** are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation.h](hqDo not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubho are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhMhjubj)}(hReturns **p**.h](hReturns }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/fortify-string.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrncasecmp (C function) c.strncasecmphNtauh1hhj{hhhNhNubh)}(hhh](h)}(hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hMUubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hMUubj)}(h strchrnulh]j)}(h strchrnulh]h strchrnul}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj=hMUubj/)}(h(const char *s, int c)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hint ch](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjqh]hc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj=hMUubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj=hMUubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMUhj$hhubj)}(hhh]j)}(h9Find and return a character in a string, or end of stringh]h9Find and return a character in a string, or end of string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMUhjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hMUubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhj{hNhNubj)}(h**Parameters** ``const char *s`` The string to be searched ``int c`` The character to search for **Description** Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.h](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(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:42: ./lib/string.chMYhj6ubj)}(hhh](j")}(h,``const char *s`` The string to be searched h](j()}(h``const char *s``h]j.)}(hj[h]h const char *s}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMVhjUubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMVhjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphMVhjRubj")}(h&``int c`` The character to search for h](j()}(h ``int c``h]j.)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMWhjubjD)}(hhh]j)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMYhj6ubj)}(h{Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.h]hReturns pointer to first occurrence of ‘c’ in s. If c is not found, then return a pointer to the null byte at the end of s.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMYhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrrchr (C function) c.strrchrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h%char * strrchr (const char *s, int c)h]h)}(h#char *strrchr(const char *s, int c)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMxubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hMxubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMxubj)}(hstrrchrh]j)}(hstrrchrh]hstrrchr}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj"hMxubj/)}(h(const char *s, int c)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hj^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubj5)}(hint ch](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjqh]hc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj"hMxubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj"hMxubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMxhj hhubj)}(hhh]j)}(h3Find the last occurrence of a character in a stringh]h3Find the last occurrence of a character in a string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMxhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMxubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(hf**Parameters** ``const char *s`` The string to be searched ``int c`` The character to search forh](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM|hjubj)}(hhh](j")}(h,``const char *s`` The string to be searched h](j()}(h``const char *s``h]j.)}(hj@h]h const char *s}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMyhj:ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMyhjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhMyhj7ubj")}(h%``int c`` The character to search forh](j()}(h ``int c``h]j.)}(hjyh]hint c}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM{hjsubjD)}(hhh]j)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMzhjubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjhM{hj7ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrnchr (C function) c.strnchrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h3char * strnchr (const char *s, size_t count, int c)h]h)}(h1char *strnchr(const char *s, size_t count, int c)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hstrnchrh]j)}(hstrnchrh]hstrnchr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h$(const char *s, size_t count, int c)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j)}jsjsb c.strnchrasbuh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint ch](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjqh]hc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h+Find a character in a length limited stringh]h+Find a character in a length limited string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj{hNhNubj)}(hX**Parameters** ``const char *s`` The string to be searched ``size_t count`` The number of characters to be searched ``int c`` The character to search for **Description** Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](j)}(h**Parameters**h]j)}(hj*h]h Parameters}(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:42: ./lib/string.chMhj$ubj)}(hhh](j")}(h,``const char *s`` The string to be searched h](j()}(h``const char *s``h]j.)}(hjIh]h const char *s}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjCubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj@ubj")}(h9``size_t count`` The number of characters to be searched h](j()}(h``size_t count``h]j.)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj|ubjD)}(hhh]j)}(h'The number of characters to be searchedh]h'The number of characters to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj@ubj")}(h&``int c`` The character to search for h](j()}(h ``int c``h]j.)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj$ubj)}(h[Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](hNote that the }(hj hhhNhNubj.)}(h``NUL-terminator``h]hNUL-terminator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubh; is considered part of the string, and can be searched for.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrspn (C function)c.strspnhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h1size_t strspn (const char *s, const char *accept)h]h)}(h0size_t strspn(const char *s, const char *accept)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j)}jsstrspnsbc.strspnasbuh1hhjIhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhjqhMubj)}(hstrspnh]j)}(hjnh]hstrspn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhjqhMubj/)}(h#(const char *s, const char *accept)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *accepth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haccepth]haccept}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhjqhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjEhhhjqhMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjBhhubj)}(hhh]j)}(h_Calculate the length of the initial substring of **s** which only contain letters in **accept**h](h1Calculate the length of the initial substring of }(hjihhhNhNubj)}(h**s**h]hs}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh which only contain letters in }(hjihhhNhNubj)}(h **accept**h]haccept}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjqhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{hNhNubj)}(hp**Parameters** ``const char *s`` The string to be searched ``const char *accept`` The string to search forh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubj)}(hhh](j")}(h,``const char *s`` The string to be searched h](j()}(h``const char *s``h]j.)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h/``const char *accept`` The string to search forh](j()}(h``const char *accept``h]j.)}(hjh]hconst char *accept}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hThe string to search forh]hThe string to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrcspn (C function) c.strcspnhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h2size_t strcspn (const char *s, const char *reject)h]h)}(h1size_t strcspn(const char *s, const char *reject)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsstrcspnsb c.strcspnasbuh1hhjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjhMubj)}(hstrcspnh]j)}(hj~h]hstrcspn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhjhMubj/)}(h#(const char *s, const char *reject)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *rejecth](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj& hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj4 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrejecth]hreject}(hjO hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjYhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUhhhjhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjRhhubj)}(hhh]j)}(hcCalculate the length of the initial substring of **s** which does not contain letters in **reject**h](h1Calculate the length of the initial substring of }(hjy hhhNhNubj)}(h**s**h]hs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy ubh# which does not contain letters in }(hjy hhhNhNubj)}(h **reject**h]hreject}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy ubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjv hhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj{hNhNubj)}(hk**Parameters** ``const char *s`` The string to be searched ``const char *reject`` The string to avoidh](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:42: ./lib/string.chMhj ubj)}(hhh](j")}(h,``const char *s`` The string to be searched h](j()}(h``const char *s``h]j.)}(hj h]h const char *s}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(h*``const char *reject`` The string to avoidh](j()}(h``const char *reject``h]j.)}(hj h]hconst char *reject}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe string to avoidh]hThe string to avoid}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj) ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj( hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrpbrk (C function) c.strpbrkhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h/char * strpbrk (const char *cs, const char *ct)h]h)}(h-char *strpbrk(const char *cs, const char *ct)h](h)}(hcharh]hchar}(hjm hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hj| hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji hhhj{ hMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji hhhj{ hMubj)}(hstrpbrkh]j)}(hstrpbrkh]hstrpbrk}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hji hhhj{ hMubj/)}(h (const char *cs, const char *ct)h](j5)}(hconst char *csh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcsh]hcs}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst char *cth](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj! hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj/ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj= hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcth]hct}(hjX hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hji hhhj{ hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhje hhhj{ hMubah}(h]j` ah ](jjeh"]h$]h&]jj)jhuh1hhj{ hMhjb hhubj)}(hhh]j)}(h0Find the first occurrence of a set of charactersh]h0Find the first occurrence of a set of characters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjb hhhj{ hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj{hNhNubj)}(hq**Parameters** ``const char *cs`` The string to be searched ``const char *ct`` The characters to search forh](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:42: ./lib/string.chMhj ubj)}(hhh](j")}(h-``const char *cs`` The string to be searched h](j()}(h``const char *cs``h]j.)}(hj h]hconst char *cs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(h/``const char *ct`` The characters to search forh](j()}(h``const char *ct``h]j.)}(hj h]hconst char *ct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe characters to search forh]hThe characters to search for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrsep (C function)c.strsephNtauh1hhj{hhhNhNubh)}(hhh](h)}(h(char * strsep (char **s, const char *ct)h]h)}(h&char *strsep(char **s, const char *ct)h](h)}(hcharh]hchar}(hjV hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjR hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hje hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjR hhhjd hMubj)}(hjh]h*}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR hhhjd hMubj)}(hstrseph]j)}(hstrseph]hstrsep}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjR hhhjd hMubj/)}(h(char **s, const char *ct)h](j5)}(hchar **sh](h)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]hs}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst char *cth](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj% hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcth]hct}(hj2 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjR hhhjd hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjN hhhjd hMubah}(h]jI ah ](jjeh"]h$]h&]jj)jhuh1hhjd hMhjK hhubj)}(hhh]j)}(hSplit a string into tokensh]hSplit a string into tokens}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjY hhubah}(h]h ]h"]h$]h&]uh1jhjK hhhjd hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjt jjt 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](j)}(h**Parameters**h]j)}(hj~ h]h Parameters}(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:42: ./lib/string.chMhjx ubj)}(hhh](j")}(h'``char **s`` The string to be searched h](j()}(h ``char **s``h]j.)}(hj h]hchar **s}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(h0``const char *ct`` The characters to search for h](j()}(h``const char *ct``h]j.)}(hj h]hconst char *ct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj ubjD)}(hhh]j)}(hThe characters to search forh]hThe characters to search for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjx ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjx ubj)}(hIstrsep() updates **s** to point after the token, ready for the next call.h](hstrsep() updates }(hj'hhhNhNubj)}(h**s**h]hs}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh3 to point after the token, ready for the next call.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjx ubj)}(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. ;)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjx ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset (C function)c.memsethNtauh1hhj{hhhNhNubh)}(hhh](h)}(h,void * memset (void *s, int c, size_t count)h]h)}(h*void *memset(void *s, int c, size_t count)h](h)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhMubj)}(hmemseth]j)}(hmemseth]hmemset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjshhhjhMubj/)}(h(void *s, int c, size_t count)h](j5)}(hvoid *sh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint ch](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjqh]hc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j)}jsjsbc.memsetasbuh1hhj2ubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hcounth]hcount}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjlhhubj)}(hhh]j)}(h,Fill a region of memory with the given valueh]h,Fill a region of memory with the given value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``int c`` The byte to fill the area with h](j()}(h ``int c``h]j.)}(hj h]hint c}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hThe byte to fill the area withh]hThe byte to fill the area with}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(h'``size_t count`` The size of the area. h](j()}(h``size_t count``h]j.)}(hjDh]h size_t count}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj>ubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset16 (C function) c.memset16hNtauh1hhj{hhhNhNubh)}(hhh](h)}(h7void * memset16 (uint16_t *s, uint16_t v, size_t count)h]h)}(h5void *memset16(uint16_t *s, uint16_t v, size_t count)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM#ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubj)}(hmemset16h]j)}(hmemset16h]hmemset16}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM#ubj/)}(h'(uint16_t *s, uint16_t v, size_t count)h](j5)}(h uint16_t *sh](h)}(hhh]j)}(huint16_th]huint16_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.memset16asbuh1hhj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]hs}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h uint16_t vh](h)}(hhh]j)}(huint16_th]huint16_t}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j- c.memset16asbuh1hhj`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hvh]hv}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j- c.memset16asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjhhubj)}(hhh]j)}(h"Fill a memory area with a uint16_th]h"Fill a memory area with a uint16_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(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:42: ./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.)}(hjFh]h uint16_t *s}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM$hj@ubjD)}(hhh]j)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hM$hj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hM$hj=ubj")}(h/``uint16_t v`` The value to fill the area with h](j()}(h``uint16_t v``h]j.)}(hjh]h uint16_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM%hjyubjD)}(hhh]j)}(hThe value to fill the area withh]hThe value to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM%hjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhM%hj=ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM&hjubjD)}(hhh]j)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM&hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM&hj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM(hj!ubj)}(hDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that }(hj hhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh> is the number of uint16_ts to store, not the number of bytes.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM(hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset32 (C function) c.memset32hNtauh1hhj{hhhNhNubh)}(hhh](h)}(h7void * memset32 (uint32_t *s, uint32_t v, size_t count)h]h)}(h5void *memset32(uint32_t *s, uint32_t v, size_t count)h](h)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM9ubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhjXhM9ubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhM9ubj)}(hmemset32h]j)}(hmemset32h]hmemset32}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhjXhM9ubj/)}(h'(uint32_t *s, uint32_t v, size_t count)h](j5)}(h uint32_t *sh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjzsb c.memset32asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h uint32_t vh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.memset32asbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]hv}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j c.memset32asbuh1hhj-ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hcounth]hcount}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjFhhhjXhM9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjBhhhjXhM9ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhM9hj?hhubj)}(hhh]j)}(h"Fill a memory area with a uint32_th]h"Fill a memory area with a uint32_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhM9ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM=hjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM:hjubjD)}(hhh]j)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM:hjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM;hjubjD)}(hhh]j)}(hThe value to fill the area withh]hThe value to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM;hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM;hjubj")}(h/``size_t count`` The number of values to store h](j()}(h``size_t count``h]j.)}(hj=h]h size_t count}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM<hj7ubjD)}(hhh]j)}(hThe number of values to storeh]hThe number of values to store}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhM<hjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhM<hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM>hjubj)}(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 }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint32_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset64 (C function) c.memset64hNtauh1hhj{hhhNhNubh)}(hhh](h)}(h7void * memset64 (uint64_t *s, uint64_t v, size_t count)h]h)}(h5void *memset64(uint64_t *s, uint64_t v, size_t count)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMOubj)}(hmemset64h]j)}(hmemset64h]hmemset64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMOubj/)}(h'(uint64_t *s, uint64_t v, size_t count)h](j5)}(h uint64_t *sh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.memset64asbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hs}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h uint64_t vh](h)}(hhh]j)}(huint64_th]huint64_t}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]j8 c.memset64asbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]hv}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j8 c.memset64asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjhhubj)}(hhh]j)}(h"Fill a memory area with a uint64_th]h"Fill a memory area with a uint64_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMOhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'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](j)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./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.)}(hjPh]h uint64_t *s}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMPhjJubjD)}(hhh]j)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMPhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMPhjGubj")}(h/``uint64_t v`` The value to fill the area with h](j()}(h``uint64_t v``h]j.)}(hjh]h uint64_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMQhjubjD)}(hhh]j)}(hThe value to fill the area withh]hThe value to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMQhjGubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMRhjubjD)}(hhh]j)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMRhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMRhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMThj+ubj)}(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 }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint64_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMThj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemcpy (C function)c.memcpyhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h9void * memcpy (void *dest, const void *src, size_t count)h]h)}(h7void *memcpy(void *dest, const void *src, size_t count)h](h)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMeubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhMeubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMeubj)}(hmemcpyh]j)}(hmemcpyh]hmemcpy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjbhMeubj/)}(h+(void *dest, const void *src, size_t count)h](j5)}(h void *desth](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *srch](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsjsbc.memcpyasbuh1hhj9ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hcounth]hcount}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjPhhhjbhMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjbhMeubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMehjIhhubj)}(hhh]j)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMehjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMihjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMfhjubjD)}(hhh]j)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMfhjubj")}(h'``const void *src`` Where to copy from h](j()}(h``const void *src``h]j.)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMghj ubjD)}(hhh]j)}(hWhere to copy fromh]hWhere to copy from}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hMghj(ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj'hMghjubj")}(h'``size_t count`` The size of the area. h](j()}(h``size_t count``h]j.)}(hjKh]h size_t count}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhhjEubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMjhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemmove (C function) c.memmovehNtauh1hhj{hhhNhNubh)}(hhh](h)}(h:void * memmove (void *dest, const void *src, size_t count)h]h)}(h8void *memmove(void *dest, const void *src, size_t count)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubj)}(hmemmoveh]j)}(hmemmoveh]hmemmove}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM{ubj/)}(h+(void *dest, const void *src, size_t count)h](j5)}(h void *desth](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesth]hdest}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst void *srch](j;)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjSubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.memmoveasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM{ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM{ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM{hjhhubj)}(hhh]j)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM{hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'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](j)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj+ubj)}(hhh](j")}(h ``void *dest`` Where to copy to h](j()}(h``void *dest``h]j.)}(hjPh]h void *dest}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM|hjJubjD)}(hhh]j)}(hWhere to copy toh]hWhere to copy to}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM|hjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehM|hjGubj")}(h'``const void *src`` Where to copy from h](j()}(h``const void *src``h]j.)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM}hjubjD)}(hhh]j)}(hWhere to copy fromh]hWhere to copy from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM}hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM}hjGubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM~hjubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM~hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM~hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj+ubj)}(h8Unlike memcpy(), memmove() copes with overlapping areas.h]h8Unlike memcpy(), memmove() copes with overlapping areas.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemcmp (C function)c.memcmphNtauh1hhj{hhhNhNubh)}(hhh](h)}(hC__visible int memcmp (const void *cs, const void *ct, size_t count)h]h)}(hB__visible int memcmp(const void *cs, const void *ct, size_t count)h](h __visible}(hj>hhhNhNubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(hinth]hint}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>hhhjThMubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhjThMubj)}(hmemcmph]j)}(hmemcmph]hmemcmp}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>hhhjThMubj/)}(h.(const void *cs, const void *ct, size_t count)h](j5)}(hconst void *csh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ;]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *cth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcth]hct}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]j)}jsjwsbc.memcmpasbuh1hhjGubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hcounth]hcount}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj>hhhjThMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhjThMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjThMhj7hhubj)}(hhh]j)}(hCompare two areas of memoryh]hCompare two areas of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjThMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubj)}(hhh](j")}(h&``const void *cs`` One area of memory h](j()}(h``const void *cs``h]j.)}(hjh]hconst void *cs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hOne area of memoryh]hOne area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjubjD)}(hhh]j)}(hAnother area of memoryh]hAnother area of memory}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMhjubj")}(h&``size_t count`` The size of the area.h](j()}(h``size_t count``h]j.)}(hjYh]h size_t count}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjSubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbcmp (C function)c.bcmphNtauh1hhj{hhhNhNubh)}(hhh](h)}(h3int bcmp (const void *a, const void *b, size_t len)h]h)}(h2int bcmp(const void *a, const void *b, size_t len)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hbcmph]j)}(hbcmph]hbcmp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h*(const void *a, const void *b, size_t len)h](j5)}(h const void *ah](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj' hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hah]ha}(hj4 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h const void *bh](j;)}(hjh]hconst}(hjM hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjI ubh)}(h h]h }(hjZ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI ubh)}(hvoidh]hvoid}(hjh hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI ubh)}(h h]h }(hjv hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI ubj)}(hbh]hb}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.bcmpasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hlenh]hlen}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h=returns 0 if and only if the buffers have identical contents.h]h=returns 0 if and only if the buffers have identical contents.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!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](j)}(h**Parameters**h]j)}(hj'!h]h Parameters}(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:42: ./lib/string.chMhj!!ubj)}(hhh](j")}(h+``const void *a`` pointer to first buffer. h](j()}(h``const void *a``h]j.)}(hjF!h]h const void *a}(hjH!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjD!ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj@!ubjD)}(hhh]j)}(hpointer to first buffer.h]hpointer to first buffer.}(hj_!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[!hMhj\!ubah}(h]h ]h"]h$]h&]uh1jChj@!ubeh}(h]h ]h"]h$]h&]uh1j!hj[!hMhj=!ubj")}(h,``const void *b`` pointer to second buffer. h](j()}(h``const void *b``h]j.)}(hj!h]h const void *b}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}!ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjy!ubjD)}(hhh]j)}(hpointer to second buffer.h]hpointer to second buffer.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1jChjy!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhj=!ubj")}(h ``size_t len`` size of buffers. h](j()}(h``size_t len``h]j.)}(hj!h]h size_t len}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj!ubjD)}(hhh]j)}(hsize of buffers.h]hsize of buffers.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhj=!ubeh}(h]h ]h"]h$]h&]uh1jhj!!ubj)}(h**Description**h]j)}(hj!h]h Description}(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:42: ./lib/string.chMhj!!ubj)}(hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h]hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj!!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemscan (C function) c.memscanhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h/void * memscan (void *addr, int c, size_t size)h]h)}(h-void *memscan(void *addr, int c, size_t size)h](h)}(hvoidh]hvoid}(hj8"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4"hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hjG"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4"hhhjF"hMubj)}(hjh]h*}(hjU"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4"hhhjF"hMubj)}(hmemscanh]j)}(hmemscanh]hmemscan}(hjf"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjb"ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4"hhhjF"hMubj/)}(h (void *addr, int c, size_t size)h](j5)}(h void *addrh](h)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~"ubj)}(haddrh]haddr}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjz"ubj5)}(hint ch](h)}(hinth]hint}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjqh]hc}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjz"ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j)}jsjh"sb c.memscanasbuh1hhj"ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hsizeh]hsize}(hj)#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjz"ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4"hhhjF"hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0"hhhjF"hMubah}(h]j+"ah ](jjeh"]h$]h&]jj)jhuh1hhjF"hMhj-"hhubj)}(hhh]j)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjS#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjP#hhubah}(h]h ]h"]h$]h&]uh1jhj-"hhhjF"hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjk#jjk#jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hju#h]h Parameters}(hjw#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjo#ubj)}(hhh](j")}(h``void *addr`` The memory area h](j()}(h``void *addr``h]j.)}(hj#h]h void *addr}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj#ubjD)}(hhh]j)}(hThe memory areah]hThe memory area}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhj#ubj")}(h!``int c`` The byte to search for h](j()}(h ``int c``h]j.)}(hj#h]hint c}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj#ubjD)}(hhh]j)}(hThe byte to search forh]hThe byte to search for}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhj#ubj")}(h&``size_t size`` The size of the area. h](j()}(h``size_t size``h]j.)}(hj$h]h size_t size}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj$ubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjo#ubj)}(h**Description**h]j)}(hjA$h]h Description}(hjC$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjo#ubj)}(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 }(hjW$hhhNhNubj)}(h**c**h]hc}(hj_$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW$ubh, or 1 byte past the area if }(hjW$hhhNhNubj)}(h**c**h]hc}(hjq$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW$ubh is not found}(hjW$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjo#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrstr (C function)c.strstrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h.char * strstr (const char *s1, const char *s2)h]h)}(h,char *strstr(const char *s1, const char *s2)h](h)}(hcharh]hchar}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj$hMubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMubj)}(hstrstrh]j)}(hstrstrh]hstrstr}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj$hMubj/)}(h (const char *s1, const char *s2)h](j5)}(hconst char *s1h](j;)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hcharh]hchar}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hj+%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hs1h]hs1}(hj8%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$ubj5)}(hconst char *s2h](j;)}(hjh]hconst}(hjQ%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjM%ubh)}(h h]h }(hj^%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjM%ubh)}(hcharh]hchar}(hjl%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjM%ubh)}(h h]h }(hjz%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjM%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM%ubj)}(hs2h]hs2}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj$hhhj$hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj$hhhj$hMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj$hhubj)}(hhh]j)}(h7Find the first substring in a ``NUL`` terminated stringh](hFind the first substring in a }(hj%hhhNhNubj.)}(h``NUL``h]hNUL}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubh terminated string}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhj{hNhNubj)}(hm**Parameters** ``const char *s1`` The string to be searched ``const char *s2`` The string to search forh](j)}(h**Parameters**h]j)}(hj%h]h Parameters}(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:42: ./lib/string.chMhj%ubj)}(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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj &ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hj+&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'&hMhj(&ubah}(h]h ]h"]h$]h&]uh1jChj &ubeh}(h]h ]h"]h$]h&]uh1j!hj'&hMhj &ubj")}(h+``const char *s2`` The string to search forh](j()}(h``const char *s2``h]j.)}(hjK&h]hconst char *s2}(hjM&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI&ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjE&ubjD)}(hhh]j)}(hThe string to search forh]hThe string to search for}(hjd&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhja&ubah}(h]h ]h"]h$]h&]uh1jChjE&ubeh}(h]h ]h"]h$]h&]uh1j!hj`&hMhj &ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrnstr (C function) c.strnstrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h;char * strnstr (const char *s1, const char *s2, size_t len)h]h)}(h9char *strnstr(const char *s1, const char *s2, size_t len)h](h)}(hcharh]hchar}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj&hMubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hMubj)}(hstrnstrh]j)}(hstrnstrh]hstrnstr}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhhj&hMubj/)}(h,(const char *s1, const char *s2, size_t len)h](j5)}(hconst char *s1h](j;)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hcharh]hchar}(hj 'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hj&'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hs1h]hs1}(hj3'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&ubj5)}(hconst char *s2h](j;)}(hjh]hconst}(hjL'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjH'ubh)}(h h]h }(hjY'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH'ubh)}(hcharh]hchar}(hjg'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH'ubh)}(h h]h }(hju'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH'ubj)}(hs2h]hs2}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&ubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j)}jsj&sb c.strnstrasbuh1hhj'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hlenh]hlen}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj&hhhj&hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj&hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhj&hhubj)}(hhh]j)}(h3Find the first substring in a length-limited stringh]h3Find the first substring in a length-limited string}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(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](j)}(h**Parameters**h]j)}(hj&(h]h Parameters}(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:42: ./lib/string.chMhj (ubj)}(hhh](j")}(h-``const char *s1`` The string to be searched h](j()}(h``const char *s1``h]j.)}(hjE(h]hconst char *s1}(hjG(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjC(ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj?(ubjD)}(hhh]j)}(hThe string to be searchedh]hThe string to be searched}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ(hMhj[(ubah}(h]h ]h"]h$]h&]uh1jChj?(ubeh}(h]h ]h"]h$]h&]uh1j!hjZ(hMhj<(ubj")}(h,``const char *s2`` The string to search for h](j()}(h``const char *s2``h]j.)}(hj~(h]hconst char *s2}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|(ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjx(ubjD)}(hhh]j)}(hThe string to search forh]hThe string to search for}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jChjx(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hMhj<(ubj")}(h9``size_t len`` the maximum number of characters to searchh](j()}(h``size_t len``h]j.)}(hj(h]h size_t len}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj(ubjD)}(hhh]j)}(h*the maximum number of characters to searchh]h*the maximum number of characters to search}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj(ubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hMhj<(ubeh}(h]h ]h"]h$]h&]uh1jhj (ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemchr (C function)c.memchrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h.void * memchr (const void *s, int c, size_t n)h]h)}(h,void *memchr(const void *s, int c, size_t n)h](h)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj )hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMubh)}(h h]h }(hj )hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj )hhhj)hMubj)}(hjh]h*}(hj.)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )hhhj)hMubj)}(hmemchrh]j)}(hmemchrh]hmemchr}(hj?)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;)ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj )hhhj)hMubj/)}(h (const void *s, int c, size_t n)h](j5)}(h const void *sh](j;)}(hjh]hconst}(hj[)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjW)ubh)}(h h]h }(hjh)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjW)ubh)}(hvoidh]hvoid}(hjv)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjW)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW)ubj)}(hjh]hs}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjW)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjS)ubj5)}(hint ch](h)}(hinth]hint}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjqh]hc}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjS)ubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsjA)sbc.memchrasbuh1hhj)ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hj h]hn}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjS)ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj )hhhj)hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj )hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhj)hhubj)}(hhh]j)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjE*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhjB*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]*jj]*jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjg*h]h Parameters}(hji*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje*ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM!hja*ubj)}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj*ubjD)}(hhh]j)}(hThe memory areah]hThe memory area}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hMhj}*ubj")}(h!``int c`` The byte to search for h](j()}(h ``int c``h]j.)}(hj*h]hint c}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMhj*ubjD)}(hhh]j)}(hThe byte to search forh]hThe byte to search for}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hMhj}*ubj")}(h#``size_t n`` The size of the area. h](j()}(h ``size_t n``h]j.)}(hj*h]hsize_t n}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM hj*ubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj +hM hj+ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj +hM hj}*ubeh}(h]h ]h"]h$]h&]uh1jhja*ubj)}(h**Description**h]j)}(hj3+h]h Description}(hj5+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM"hja*ubj)}(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 }(hjI+hhhNhNubj)}(h**c**h]hc}(hjQ+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI+ubh, or }(hjI+hhhNhNubj.)}(h``NULL``h]hNULL}(hjc+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI+ubh if }(hjI+hhhNhNubj)}(h**c**h]hc}(hju+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI+ubh is not found}(hjI+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM"hja*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemchr_inv (C function) c.memchr_invhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h:void * memchr_inv (const void *start, int c, size_t bytes)h]h)}(h8void *memchr_inv(const void *start, int c, size_t bytes)h](h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM>ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hM>ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM>ubj)}(h memchr_invh]j)}(h memchr_invh]h memchr_inv}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj+hM>ubj/)}(h((const void *start, int c, size_t bytes)h](j5)}(hconst void *starth](j;)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj!,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hjh]h*}(hj/,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hstarth]hstart}(hj<,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hint ch](h)}(hinth]hint}(hjU,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ,ubh)}(h h]h }(hjc,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQ,ubj)}(hjqh]hc}(hjq,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQ,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(h size_t bytesh](h)}(hhh]j)}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsj+sb c.memchr_invasbuh1hhj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hbytesh]hbytes}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj+hM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj+hM>ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hM>hj+hhubj)}(hhh]j)}(h2Find an unmatching character in an area of memory.h]h2Find an unmatching character in an area of memory.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM>hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hM>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hj-h]h Parameters}(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:42: ./lib/string.chMBhj-ubj)}(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&]uh1j-hj#-ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM?hj-ubjD)}(hhh]j)}(hThe memory areah]hThe memory area}(hj>-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:-hM?hj;-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj:-hM?hj-ubj")}(h(``int c`` Find a character other than c h](j()}(h ``int c``h]j.)}(hj^-h]hint c}(hj`-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\-ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chM@hjX-ubjD)}(hhh]j)}(hFind a character other than ch]hFind a character other than c}(hjw-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs-hM@hjt-ubah}(h]h ]h"]h$]h&]uh1jChjX-ubeh}(h]h ]h"]h$]h&]uh1j!hjs-hM@hj-ubj")}(h'``size_t bytes`` The size of the area. h](j()}(h``size_t bytes``h]j.)}(hj-h]h size_t bytes}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMAhj-ubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMAhj-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj-hMAhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj)}(h**Description**h]j)}(hj-h]h Description}(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:42: ./lib/string.chMChj-ubj)}(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 }(hj-hhhNhNubj)}(h**c**h]hc}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh, or }(hj-hhhNhNubj.)}(h``NULL``h]hNULL}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubh# if the whole buffer contains just }(hj-hhhNhNubj)}(h**c**h]hc}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./lib/string.chMChj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemdup_array_user (C function)c.memdup_array_userhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hHvoid * memdup_array_user (const void __user *src, size_t n, size_t size)h]h)}(hFvoid *memdup_array_user(const void __user *src, size_t n, size_t size)h](h)}(hvoidh]hvoid}(hjM.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI.hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKubh)}(h h]h }(hj\.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI.hhhj[.hKubj)}(hjh]h*}(hjj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI.hhhj[.hKubj)}(hmemdup_array_userh]j)}(hmemdup_array_userh]hmemdup_array_user}(hj{.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjI.hhhj[.hKubj/)}(h/(const void __user *src, size_t n, size_t size)h](j5)}(hconst void __user *srch](j;)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh__user}(hj.hhhNhNubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hsrch]hsrc}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj /hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj /modnameN classnameNjwjz)}j}]j)}jsj}.sbc.memdup_array_userasbuh1hhj/ubh)}(h h]h }(hj)/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hj h]hn}(hj7/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjR/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjO/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjT/modnameN classnameNjwjz)}j}]j%/c.memdup_array_userasbuh1hhjK/ubh)}(h h]h }(hjp/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjK/ubj)}(hsizeh]hsize}(hj~/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjK/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjI.hhhj[.hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjE.hhhj[.hKubah}(h]j@.ah ](jjeh"]h$]h&]jj)jhuh1hhj[.hKhjB.hhubj)}(hhh]j)}(hduplicate array from user spaceh]hduplicate array from user space}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjB.hhhj[.hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hj/h]h Parameters}(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:45: ./include/linux/string.hhKhj/ubj)}(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&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj/ubjD)}(hhh]j)}(hsource address in user spaceh]hsource address in user space}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hKhj/ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hKhj/ubj")}(h-``size_t n`` number of array members to copy h](j()}(h ``size_t n``h]j.)}(hj"0h]hsize_t n}(hj$0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj 0ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj0ubjD)}(hhh]j)}(hnumber of array members to copyh]hnumber of array members to copy}(hj;0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj70hKhj80ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj70hKhj/ubj")}(h)``size_t size`` size of one array member h](j()}(h``size_t size``h]j.)}(hj[0h]h size_t size}(hj]0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjY0ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhjU0ubjD)}(hhh]j)}(hsize of one array memberh]hsize of one array member}(hjt0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp0hKhjq0ubah}(h]h ]h"]h$]h&]uh1jChjU0ubeh}(h]h ]h"]h$]h&]uh1j!hjp0hKhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h **Return**h]j)}(hj0h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj/ubj)}(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().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmemdup_array_user (C function)c.vmemdup_array_userhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hIvoid * vmemdup_array_user (const void __user *src, size_t n, size_t size)h]h)}(hGvoid *vmemdup_array_user(const void __user *src, size_t n, size_t size)h](h)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK+ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhj0hK+ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hK+ubj)}(hvmemdup_array_userh]j)}(hvmemdup_array_userh]hvmemdup_array_user}(hj 1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhj0hK+ubj/)}(h/(const void __user *src, size_t n, size_t size)h](j5)}(hconst void __user *srch](j;)}(hjh]hconst}(hj%1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!1ubh)}(h h]h }(hj21hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!1ubh)}(hvoidh]hvoid}(hj@1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!1ubh)}(h h]h }(hjN1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!1ubh__user}(hj!1hhhNhNubh)}(h h]h }(hj`1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!1ubj)}(hjh]h*}(hjn1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!1ubj)}(hsrch]hsrc}(hj{1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsj 1sbc.vmemdup_array_userasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hj h]hn}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j1c.vmemdup_array_userasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hsizeh]hsize}(hj 2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhj0hK+ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhj0hK+ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hK+hj0hhubj)}(hhh]j)}(hduplicate array from user spaceh]hduplicate array from user space}(hj62hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK+hj32hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hK+ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjN2jjN2jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjX2h]h Parameters}(hjZ2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV2ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK/hjR2ubj)}(hhh](j")}(h8``const void __user *src`` source address in user space h](j()}(h``const void __user *src``h]j.)}(hjw2h]hconst void __user *src}(hjy2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hju2ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK,hjq2ubjD)}(hhh]j)}(hsource address in user spaceh]hsource address in user space}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hK,hj2ubah}(h]h ]h"]h$]h&]uh1jChjq2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hK,hjn2ubj")}(h-``size_t n`` number of array members to copy h](j()}(h ``size_t n``h]j.)}(hj2h]hsize_t n}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK-hj2ubjD)}(hhh]j)}(hnumber of array members to copyh]hnumber of array members to copy}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hK-hj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hK-hjn2ubj")}(h)``size_t size`` size of one array member h](j()}(h``size_t size``h]j.)}(hj2h]h size_t size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK.hj2ubjD)}(hhh]j)}(hsize of one array memberh]hsize of one array member}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hK.hj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hK.hjn2ubeh}(h]h ]h"]h$]h&]uh1jhjR2ubj)}(h **Return**h]j)}(hj$3h]hReturn}(hj&3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK0hjR2ubj)}(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.}(hj:3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK0hjR2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrscpy (C macro) c.strscpyhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hstrscpyh]h)}(hstrscpyh]j)}(hstrscpyh]j)}(hjc3h]hstrscpy}(hjm3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hje3hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK\ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhja3hhhj3hK\ubah}(h]j\3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hK\hj^3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^3hhhj3hK\ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj3jj3jjjuh1hhhhj{hNhNubj)}(h``strscpy (dst, src, ...)``h]j.)}(hj3h]hstrscpy (dst, src, ...)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK^hj{hhubj<8)}(h$Copy a C-string into a sized buffer h]j)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK\hj3ubah}(h]h ]h"]h$]h&]uh1j;8hj3hK\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](j)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK`hj3ubj)}(hhh](j")}(h$``dst`` Where to copy the string to h](j()}(h``dst``h]j.)}(hj3h]hdst}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK]hj3ubjD)}(hhh]j)}(hWhere to copy the string toh]hWhere to copy the string to}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hK]hj 4ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj4hK]hj3ubj")}(h&``src`` Where to copy the string from h](j()}(h``src``h]j.)}(hj,4h]hsrc}(hj.4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*4ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK^hj&4ubjD)}(hhh]j)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjE4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA4hK^hjB4ubah}(h]h ]h"]h$]h&]uh1jChj&4ubeh}(h]h ]h"]h$]h&]uh1j!hjA4hK^hj3ubj")}(h.``...`` Size of destination buffer (optional) h](j()}(h``...``h]j.)}(hje4h]h...}(hjg4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjc4ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhK_hj_4ubjD)}(hhh]j)}(h%Size of destination buffer (optional)h]h%Size of destination buffer (optional)}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz4hK_hj{4ubah}(h]h ]h"]h$]h&]uh1jChj_4ubeh}(h]h ]h"]h$]h&]uh1j!hjz4hK_hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubj)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKahj3ubj)}(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 }(hj4hhhNhNubj)}(h**src**h]hsrc}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh1, or as much of it as fits, into the destination }(hj4hhhNhNubj)}(h**dst**h]hdst}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhR buffer. The behavior is undefined if the string buffers overlap. The destination }(hj4hhhNhNubj)}(h**dst**h]hdst}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh; buffer is always NUL terminated, unless it’s zero-sized.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKahj3ubj)}(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 }(hj4hhhNhNubj)}(h**...**h]h...}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh is only required when }(hj4hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhC is not an array, or when the copy needs to be smaller than sizeof(}(hj4hhhNhNubj)}(h**dst**h]hdst}(hj'5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh).}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKfhj3ubj)}(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().}(hj@5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKihj3ubj)}(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 }(hjO5hhhNhNubj)}(h**dst**h]hdst}(hjW5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh (not including the trailing }(hjO5hhhNhNubj.)}(h``NUL``h]hNUL}(hji5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjO5ubh) or -E2BIG if }(hjO5hhhNhNubj)}(h**size**h]hsize}(hj{5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh is 0 or the copy from }(hjO5hhhNhNubj)}(h**src**h]hsrc}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh was truncated.}(hjO5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKmhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrscpy_pad (C macro) c.strscpy_padhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h strscpy_padh]h)}(h strscpy_padh]j)}(h strscpy_padh]j)}(hj5h]h strscpy_pad}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhj5hKubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hKhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhj5hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj5jj5jjjuh1hhhhj{hNhNubj)}(h``strscpy_pad (dst, src, ...)``h]j.)}(hj5h]hstrscpy_pad (dst, src, ...)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj{hhubj<8)}(h$Copy a C-string into a sized buffer h]j)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj6ubah}(h]h ]h"]h$]h&]uh1j;8hj$6hKhj{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](j)}(h**Parameters**h]j)}(hj16h]h Parameters}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(hhh](j")}(h$``dst`` Where to copy the string to h](j()}(h``dst``h]j.)}(hjP6h]hdst}(hjR6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjN6ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhjJ6ubjD)}(hhh]j)}(hWhere to copy the string toh]hWhere to copy the string to}(hji6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje6hKhjf6ubah}(h]h ]h"]h$]h&]uh1jChjJ6ubeh}(h]h ]h"]h$]h&]uh1j!hje6hKhjG6ubj")}(h&``src`` Where to copy the string from h](j()}(h``src``h]j.)}(hj6h]hsrc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj6ubjD)}(hhh]j)}(hWhere to copy the string fromh]hWhere to copy the string from}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hKhjG6ubj")}(h#``...`` Size of destination buffer h](j()}(h``...``h]j.)}(hj6h]h...}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj6ubjD)}(hhh]j)}(hSize of destination bufferh]hSize of destination buffer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hKhjG6ubeh}(h]h ]h"]h$]h&]uh1jhj+6ubj)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(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 }(hj7hhhNhNubj.)}(h``NUL``h]hNUL}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubh& terminated, unless it’s zero-sized.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(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 }(hj47hhhNhNubj.)}(h``NUL``h]hNUL}(hj<7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj47ubh bytes.}(hj47hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(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().}(hjU7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(h **Return**h]j)}(hjf7h]hReturn}(hjh7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd7ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhKhj+6ubj)}(hhh](j)}(hEThe number of characters copied (not including the trailing ``NULs``)h]j)}(hj7h](h<hhubah}(h]h ]h"]h$]h&]uh1jhj/;hhhjG;hM]ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}<jj}<jjjuh1hhhhj{hNhNubj)}(he**Parameters** ``const char *str`` string to examine ``const char *prefix`` prefix to look for.h](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(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:45: ./include/linux/string.hhMahj<ubj)}(hhh](j")}(h&``const char *str`` string to examine h](j()}(h``const char *str``h]j.)}(hj<h]hconst char *str}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM^hj<ubjD)}(hhh]j)}(hstring to examineh]hstring to examine}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hM^hj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hM^hj<ubj")}(h*``const char *prefix`` prefix to look for.h](j()}(h``const char *prefix``h]j.)}(hj<h]hconst char *prefix}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM`hj<ubjD)}(hhh]j)}(hprefix to look for.h]hprefix to look for.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM_hj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hM`hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemzero_explicit (C function)c.memzero_explicithNtauh1hhj{hhhNhNubh)}(hhh](h)}(h-void memzero_explicit (void *s, size_t count)h]h)}(h,void memzero_explicit(void *s, size_t count)h](h)}(hvoidh]hvoid}(hj9=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5=hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMiubh)}(h h]h }(hjH=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5=hhhjG=hMiubj)}(hmemzero_explicith]j)}(hmemzero_explicith]hmemzero_explicit}(hjZ=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjV=ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5=hhhjG=hMiubj/)}(h(void *s, size_t count)h](j5)}(hvoid *sh](h)}(hvoidh]hvoid}(hjv=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjr=ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr=ubj)}(hjh]hs}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjn=ubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsj\=sbc.memzero_explicitasbuh1hhj=ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hcounth]hcount}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjn=ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5=hhhjG=hMiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1=hhhjG=hMiubah}(h]j,=ah ](jjeh"]h$]h&]jj)jhuh1hhjG=hMihj.=hhubj)}(hhh]j)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMihj>hhubah}(h]h ]h"]h$]h&]uh1jhj.=hhhjG=hMiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*>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. **Description** memzero_explicit() doesn't need an arch-specific version as it just invokes the one of memset() implicitly.h](j)}(h**Parameters**h]j)}(hj4>h]h Parameters}(hj6>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2>ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMmhj.>ubj)}(hhh](j")}(h.``void *s`` Pointer to the start of the area. h](j()}(h ``void *s``h]j.)}(hjS>h]hvoid *s}(hjU>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQ>ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMkhjM>ubjD)}(hhh]j)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh>hMkhji>ubah}(h]h ]h"]h$]h&]uh1jChjM>ubeh}(h]h ]h"]h$]h&]uh1j!hjh>hMkhjJ>ubj")}(h'``size_t count`` The size of the area. h](j()}(h``size_t count``h]j.)}(hj>h]h size_t count}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMlhj>ubjD)}(hhh]j)}(hThe size of the area.h]hThe size of the area.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMlhj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMlhjJ>ubeh}(h]h ]h"]h$]h&]uh1jhj.>ubj)}(h**Note**h]j)}(hj>h]hNote}(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:45: ./include/linux/string.hhMnhj.>ubj)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMnhj.>ubj)}(h**Description**h]j)}(hj>h]h Description}(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:45: ./include/linux/string.hhMshj.>ubj)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMshj.>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkbasename (C function) c.kbasenamehNtauh1hhj{hhhNhNubh)}(hhh](h)}(h)const char * kbasename (const char *path)h]h)}(h'const char *kbasename(const char *path)h](j;)}(hjh]hconst}(hj3?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/?hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM}ubh)}(h h]h }(hjA?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/?hhhj@?hM}ubh)}(hcharh]hchar}(hjO?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/?hhhj@?hM}ubh)}(h h]h }(hj]?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/?hhhj@?hM}ubj)}(hjh]h*}(hjk?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/?hhhj@?hM}ubj)}(h kbasenameh]j)}(h kbasenameh]h kbasename}(hj|?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjx?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/?hhhj@?hM}ubj/)}(h(const char *path)h]j5)}(hconst char *pathh](j;)}(hjh]hconst}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hcharh]hchar}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hpathh]hpath}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj/?hhhj@?hM}ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+?hhhj@?hM}ubah}(h]j&?ah ](jjeh"]h$]h&]jj)jhuh1hhj@?hM}hj(?hhubj)}(hhh]j)}(h#return the last part of a pathname.h]h#return the last part of a pathname.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM}hj@hhubah}(h]h ]h"]h$]h&]uh1jhj(?hhhj@?hM}ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhj{hNhNubj)}(hI**Parameters** ``const char *path`` path to extract the filename from.h](j)}(h**Parameters**h]j)}(hj(@h]h Parameters}(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:45: ./include/linux/string.hhMhj"@ubj)}(hhh]j")}(h7``const char *path`` path to extract the filename from.h](j()}(h``const char *path``h]j.)}(hjG@h]hconst char *path}(hjI@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjE@ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjA@ubjD)}(hhh]j)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hj`@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj]@ubah}(h]h ]h"]h$]h&]uh1jChjA@ubeh}(h]h ]h"]h$]h&]uh1j!hj\@hMhj>@ubah}(h]h ]h"]h$]h&]uh1jhj"@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrtomem_pad (C macro)c.strtomem_padhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h strtomem_padh]h)}(h strtomem_padh]j)}(h strtomem_padh]j)}(hj@h]h strtomem_pad}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhj@hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj@jj@jjjuh1hhhhj{hNhNubj)}(h!``strtomem_pad (dest, src, pad)``h]j.)}(hj@h]hstrtomem_pad (dest, src, pad)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj{hhubj<8)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]j)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj@ubah}(h]h ]h"]h$]h&]uh1j;8hj@hMhj{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](j)}(h**Parameters**h]j)}(hj Ah]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjAubj)}(hhh](j")}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j()}(h``dest``h]j.)}(hj+Ah]hdest}(hj-AhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)Aubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj%AubjD)}(hhh]j)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjDAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@AhMhjAAubah}(h]h ]h"]h$]h&]uh1jChj%Aubeh}(h]h ]h"]h$]h&]uh1j!hj@AhMhj"Aubj")}(h)``src`` Pointer to NUL-terminated string h](j()}(h``src``h]j.)}(hjdAh]hsrc}(hjfAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbAubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj^AubjD)}(hhh]j)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hj}AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyAhMhjzAubah}(h]h ]h"]h$]h&]uh1jChj^Aubeh}(h]h ]h"]h$]h&]uh1j!hjyAhMhj"Aubj")}(hM``pad`` Padding character to fill any remaining bytes of **dest** after copy h](j()}(h``pad``h]j.)}(hjAh]hpad}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjAubjD)}(hhh]j)}(hDPadding character to fill any remaining bytes of **dest** after copyh](h1Padding character to fill any remaining bytes of }(hjAhhhNhNubj)}(h**dest**h]hdest}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh after copy}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhj"Aubeh}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjAubj)}(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().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjAubj)}(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 }(hjBhhhNhNubj)}(h**dest**h]hdest}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh& is not an argument, as the length of }(hjBhhhNhNubj)}(h**dest**h]hdest}(hj)BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh& must be discoverable by the compiler.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrtomem (C macro) c.strtomemhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hstrtomemh]h)}(hstrtomemh]j)}(hstrtomemh]j)}(hj\Bh]hstrtomem}(hjfBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^BhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjZBhhhjyBhMubah}(h]jUBah ](jjeh"]h$]h&]jj)jhuh1hhjyBhMhjWBhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWBhhhjyBhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjBjjBjjjuh1hhhhj{hNhNubj)}(h``strtomem (dest, src)``h]j.)}(hjBh]hstrtomem (dest, src)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj{hhubj<8)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]j)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubah}(h]h ]h"]h$]h&]uh1j;8hjBhMhj{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](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubj)}(hhh](j")}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j()}(h``dest``h]j.)}(hjBh]hdest}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubjD)}(hhh]j)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjCubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjBubj")}(h)``src`` Pointer to NUL-terminated string h](j()}(h``src``h]j.)}(hj%Ch]hsrc}(hj'ChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#Cubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjCubjD)}(hhh]j)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hj>ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ChMhj;Cubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj:ChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjBubj)}(h**Description**h]j)}(hj`Ch]h Description}(hjbChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Cubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubj)}(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().}(hjvChhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubj)}(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 }(hjChhhNhNubj)}(h**dest**h]hdest}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh& is not an argument, as the length of }(hjChhhNhNubj)}(h**dest**h]hdest}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh& must be discoverable by the compiler.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemtostr (C macro) c.memtostrhNtauh1hhj{hhhNhNubh)}(hhh](h)}(hmemtostrh]h)}(hmemtostrh]j)}(hmemtostrh]j)}(hjCh]hmemtostr}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjChhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjDjjDjjjuh1hhhhj{hNhNubj)}(h``memtostr (dest, src)``h]j.)}(hjDh]hmemtostr (dest, src)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Dubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj{hhubj<8)}(h9Copy a possibly non-NUL-term string to a NUL-term string h]j)}(h8Copy a possibly non-NUL-term string to a NUL-term stringh]h8Copy a possibly non-NUL-term string to a NUL-term string}(hj(DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj$Dubah}(h]h ]h"]h$]h&]uh1j;8hj6DhMhj{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](j)}(h**Parameters**h]j)}(hjCDh]h Parameters}(hjEDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjADubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj=Dubj)}(hhh](j")}(h6``dest`` Pointer to destination NUL-terminates string h](j()}(h``dest``h]j.)}(hjbDh]hdest}(hjdDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`Dubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj\DubjD)}(hhh]j)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hj{DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwDhMhjxDubah}(h]h ]h"]h$]h&]uh1jChj\Dubeh}(h]h ]h"]h$]h&]uh1j!hjwDhMhjYDubj")}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j()}(h``src``h]j.)}(hjDh]hsrc}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjDubjD)}(hhh]j)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hjDhMhjYDubeh}(h]h ]h"]h$]h&]uh1jhj=Dubj)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj=Dubj)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj=Dubj)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjDhhhNhNubj)}(h**dest**h]hdest}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh and }(hjDhhhNhNubj)}(h**src**h]hsrc}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh must be known at compile-time.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj=Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemtostr_pad (C macro)c.memtostr_padhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h memtostr_padh]h)}(h memtostr_padh]j)}(h memtostr_padh]j)}(hjHEh]h memtostr_pad}(hjREhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJEhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjFEhhhjeEhMubah}(h]jAEah ](jjeh"]h$]h&]jj)jhuh1hhjeEhMhjCEhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjCEhhhjeEhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj~Ejj~Ejjjuh1hhhhj{hNhNubj)}(h``memtostr_pad (dest, src)``h]j.)}(hjEh]hmemtostr_pad (dest, src)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj{hhubj<8)}(h]Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination h]j)}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubah}(h]h ]h"]h$]h&]uh1j;8hjEhMhj{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](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubj)}(hhh](j")}(h6``dest`` Pointer to destination NUL-terminates string h](j()}(h``dest``h]j.)}(hjEh]hdest}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubjD)}(hhh]j)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjEubj")}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j()}(h``src``h]j.)}(hjFh]hsrc}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj FubjD)}(hhh]j)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hj*FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&FhMhj'Fubah}(h]h ]h"]h$]h&]uh1jChj Fubeh}(h]h ]h"]h$]h&]uh1j!hj&FhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjLFh]h Description}(hjNFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubj)}(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.}(hjbFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubj)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjqFhhhNhNubj)}(h**dest**h]hdest}(hjyFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqFubh and }(hjqFhhhNhNubj)}(h**src**h]hsrc}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqFubh must be known at compile-time.}(hjqFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset_after (C macro)c.memset_afterhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h memset_afterh]h)}(h memset_afterh]j)}(h memset_afterh]j)}(hjFh]h memset_after}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjFjjFjjjuh1hhhhj{hNhNubj)}(h!``memset_after (obj, v, member)``h]j.)}(hjFh]hmemset_after (obj, v, member)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj{hhubj<8)}(h9Set a value after a struct member to the end of a struct h]j)}(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}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjGubah}(h]h ]h"]h$]h&]uh1j;8hj"GhMhj{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](j)}(h**Parameters**h]j)}(hj/Gh]h Parameters}(hj1GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj)Gubj)}(hhh](j")}(h*``obj`` Address of target struct instance h](j()}(h``obj``h]j.)}(hjNGh]hobj}(hjPGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLGubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjHGubjD)}(hhh]j)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjgGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcGhMhjdGubah}(h]h ]h"]h$]h&]uh1jChjHGubeh}(h]h ]h"]h$]h&]uh1j!hjcGhMhjEGubj")}(h%``v`` Byte value to repeatedly write h](j()}(h``v``h]j.)}(hjGh]hv}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjGubjD)}(hhh]j)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjEGubj")}(h<``member`` after which struct member to start writing bytes h](j()}(h ``member``h]j.)}(hjGh]hmember}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjGubjD)}(hhh]j)}(h0after which struct member to start writing bytesh]h0after which struct member to start writing bytes}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMhjEGubeh}(h]h ]h"]h$]h&]uh1jhj)Gubj)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj)Gubj)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj)Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemset_startat (C macro)c.memset_startathNtauh1hhj{hhhNhNubh)}(hhh](h)}(hmemset_startath]h)}(hmemset_startath]j)}(hmemset_startath]j)}(hj:Hh]hmemset_startat}(hjDHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@Hubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:Iubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhj6IubjD)}(hhh]j)}(h!struct member to start writing ath]h!struct member to start writing at}(hjUIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQIhMhjRIubah}(h]h ]h"]h$]h&]uh1jChj6Iubeh}(h]h ]h"]h$]h&]uh1j!hjQIhMhjHubeh}(h]h ]h"]h$]h&]uh1jhjHubj)}(h**Description**h]j)}(hjwIh]h Description}(hjyIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjHubj)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstr_has_prefix (C function)c.str_has_prefixhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h;size_t str_has_prefix (const char *str, const char *prefix)h]h)}(h:size_t str_has_prefix(const char *str, const char *prefix)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsstr_has_prefixsbc.str_has_prefixasbuh1hhjIhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM!ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhjIhM!ubj)}(hstr_has_prefixh]j)}(hjIh]hstr_has_prefix}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhjIhM!ubj/)}(h%(const char *str, const char *prefix)h](j5)}(hconst char *strh](j;)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj Jubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Jubh)}(hcharh]hchar}(hj)JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Jubh)}(h h]h }(hj7JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Jubj)}(hjh]h*}(hjEJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Jubj)}(hstrh]hstr}(hjRJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hconst char *prefixh](j;)}(hjh]hconst}(hjkJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgJubh)}(h h]h }(hjxJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgJubh)}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgJubj)}(hprefixh]hprefix}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhjIhM!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhjIhM!ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjIhM!hjIhhubj)}(hhh]j)}(h#Test if a string has a given prefixh]h#Test if a string has a given prefix}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM!hjJhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhM!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJjjJjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM%hjJubj)}(hhh](j")}(h'``const char *str`` The string to test h](j()}(h``const char *str``h]j.)}(hjKh]hconst char *str}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM"hjKubjD)}(hhh]j)}(hThe string to testh]hThe string to test}(hj3KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/KhM"hj0Kubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hj/KhM"hjKubj")}(h@``const char *prefix`` The string to see if **str** starts with h](j()}(h``const char *prefix``h]j.)}(hjSKh]hconst char *prefix}(hjUKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQKubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM#hjMKubjD)}(hhh]j)}(h(The string to see if **str** starts withh](hThe string to see if }(hjlKhhhNhNubj)}(h**str**h]hstr}(hjtKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlKubh starts with}(hjlKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhKhM#hjiKubah}(h]h ]h"]h$]h&]uh1jChjMKubeh}(h]h ]h"]h$]h&]uh1j!hjhKhM#hjKubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM%hjJubj)}(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:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM&hjKubjD)}(hhh]j)}(h(strncmp(str, prefix, sizeof(prefix) - 1)h]h(strncmp(str, prefix, sizeof(prefix) - 1)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhM&hjKubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjKhM&hjKubah}(h]h ]h"]h$]h&]uh1jhjJubj)}(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().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM(hjJubj)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM+hjJubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]j)}(hjLh](hstrlen(}(hjLhhhNhNubj)}(h **prefix**h]hprefix}(hj$LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh) if }(hjLhhhNhNubj)}(h**str**h]hstr}(hj6LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh starts with }(hjLhhhNhNubj)}(h **prefix**h]hprefix}(hjHLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM+hjLubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(h+0 if **str** does not start with **prefix**h]j)}(hjeLh](h0 if }(hjgLhhhNhNubj)}(h**str**h]hstr}(hjnLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgLubh does not start with }(hjgLhhhNhNubj)}(h **prefix**h]hprefix}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgLubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:45: ./include/linux/string.hhM,hjcLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhj\LhM+hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrdup (C function) c.kstrduphNtauh1hhj{hhhNhNubh)}(hhh](h)}(h)char * kstrdup (const char *s, gfp_t gfp)h]h)}(h'char *kstrdup(const char *s, gfp_t gfp)h](h)}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKJubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhjLhKJubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhKJubj)}(hkstrduph]j)}(hkstrduph]hkstrdup}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhjLhKJubj/)}(h(const char *s, gfp_t gfp)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hj MhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hcharh]hchar}(hj&MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubh)}(h h]h }(hj4MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjBMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]hs}(hjOMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlMmodnameN classnameNjwjz)}j}]j)}jsjLsb c.kstrdupasbuh1hhjcMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcMubj)}(hgfph]hgfp}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjLhhhjLhKJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjLhKJubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhKJhjLhhubj)}(hhh]j)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKJhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjMjjMjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKNhjMubj)}(hhh](j")}(h*``const char *s`` the string to duplicate h](j()}(h``const char *s``h]j.)}(hjNh]h const char *s}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKKhjMubjD)}(hhh]j)}(hthe string to duplicateh]hthe string to duplicate}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhKKhjNubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjNhKKhjMubj")}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j()}(h ``gfp_t gfp``h]j.)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:Nubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKLhj6NubjD)}(hhh]j)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjUNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQNhKLhjRNubah}(h]h ]h"]h$]h&]uh1jChj6Nubeh}(h]h ]h"]h$]h&]uh1j!hjQNhKLhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubj)}(h **Return**h]j)}(hjwNh]hReturn}(hjyNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKNhjMubj)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjNhhhNhNubj)}(h**s**h]hs}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh or }(hjNhhhNhNubj.)}(h``NULL``h]hNULL}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubh in case of error}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKNhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrdup_const (C function)c.kstrdup_consthNtauh1hhj{hhhNhNubh)}(hhh](h)}(h5const char * kstrdup_const (const char *s, gfp_t gfp)h]h)}(h3const char *kstrdup_const(const char *s, gfp_t gfp)h](j;)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKXubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhKXubh)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhjNhKXubh)}(h h]h }(hj OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhKXubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhKXubj)}(h kstrdup_consth]j)}(h kstrdup_consth]h kstrdup_const}(hj)OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%Oubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhjNhKXubj/)}(h(const char *s, gfp_t gfp)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjEOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAOubh)}(h h]h }(hjROhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAOubh)}(hcharh]hchar}(hj`OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAOubh)}(h h]h }(hjnOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAOubj)}(hjh]h*}(hj|OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAOubj)}(hjh]hs}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=Oubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjOmodnameN classnameNjwjz)}j}]j)}jsj+Osbc.kstrdup_constasbuh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hgfph]hgfp}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=Oubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjNhhhjNhKXubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjNhKXubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhKXhjNhhubj)}(hhh]j)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKXhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhKXubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK\hjPubj)}(hhh](j")}(h*``const char *s`` the string to duplicate h](j()}(h``const char *s``h]j.)}(hj=Ph]h const char *s}(hj?PhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;Pubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKYhj7PubjD)}(hhh]j)}(hthe string to duplicateh]hthe string to duplicate}(hjVPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRPhKYhjSPubah}(h]h ]h"]h$]h&]uh1jChj7Pubeh}(h]h ]h"]h$]h&]uh1j!hjRPhKYhj4Pubj")}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j()}(h ``gfp_t gfp``h]j.)}(hjvPh]h gfp_t gfp}(hjxPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtPubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKZhjpPubjD)}(hhh]j)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhKZhjPubah}(h]h ]h"]h$]h&]uh1jChjpPubeh}(h]h ]h"]h$]h&]uh1j!hjPhKZhj4Pubeh}(h]h ]h"]h$]h&]uh1jhjPubj)}(h**Note**h]j)}(hjPh]hNote}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK\hjPubj)}(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().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK\hjPubj)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK_hjPubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK_hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkstrndup (C function) c.kstrnduphNtauh1hhj{hhhNhNubh)}(hhh](h)}(h6char * kstrndup (const char *s, size_t max, gfp_t gfp)h]h)}(h4char *kstrndup(const char *s, size_t max, gfp_t gfp)h](h)}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKlubh)}(h h]h }(hj,QhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhj+QhKlubj)}(hjh]h*}(hj:QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhj+QhKlubj)}(hkstrnduph]j)}(hkstrnduph]hkstrndup}(hjKQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQhhhj+QhKlubj/)}(h&(const char *s, size_t max, gfp_t gfp)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjgQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcQubh)}(h h]h }(hjtQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcQubh)}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcQubj)}(hjh]hs}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_Qubj5)}(h size_t maxh](h)}(hhh]j)}(hsize_th]hsize_t}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]j)}jsjMQsb c.kstrndupasbuh1hhjQubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hmaxh]hmax}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_Qubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]jQ c.kstrndupasbuh1hhj Rubh)}(h h]h }(hj.RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj Rubj)}(hgfph]hgfp}(hjthe GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjRShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNShKohjOSubah}(h]h ]h"]h$]h&]uh1jChj3Subeh}(h]h ]h"]h$]h&]uh1j!hjNShKohjRubeh}(h]h ]h"]h$]h&]uh1jhjRubj)}(h**Note**h]j)}(hjtSh]hNote}(hjvShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrSubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKqhjRubj)}(h7Use kmemdup_nul() instead if the size is known exactly.h]h7Use kmemdup_nul() instead if the size is known exactly.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKqhjRubj)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKshjRubj)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjShhhNhNubj)}(h**s**h]hs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh or }(hjShhhNhNubj.)}(h``NULL``h]hNULL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubh in case of error}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKshjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemdup (C function) c.kmemduphNtauh1hhj{hhhNhNubh)}(hhh](h)}(h7void * kmemdup (const void *src, size_t len, gfp_t gfp)h]h)}(h5void *kmemdup(const void *src, size_t len, gfp_t gfp)h](h)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK|ubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThK|ubj)}(hjh]h*}(hj!ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThK|ubj)}(hkmemduph]j)}(hkmemduph]hkmemdup}(hj2ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.Tubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThK|ubj/)}(h((const void *src, size_t len, gfp_t gfp)h](j5)}(hconst void *srch](j;)}(hjh]hconst}(hjNThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJTubh)}(h h]h }(hj[ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJTubh)}(hvoidh]hvoid}(hjiThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJTubh)}(h h]h }(hjwThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJTubj)}(hsrch]hsrc}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFTubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}jsj4Tsb c.kmemdupasbuh1hhjTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hlenh]hlen}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFTubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]jT c.kmemdupasbuh1hhjTubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hgfph]hgfp}(hj$UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFTubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjThK|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjThK|ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThK|hjShhubj)}(hhh]j)}(hduplicate region of memoryh]hduplicate region of memory}(hjNUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK|hjKUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjThK|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjfUjjfUjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjpUh]h Parameters}(hjrUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnUubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjjUubj)}(hhh](j")}(h/``const void *src`` memory region to duplicate h](j()}(h``const void *src``h]j.)}(hjUh]hconst void *src}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chK~hjUubjD)}(hhh]j)}(hmemory region to duplicateh]hmemory region to duplicate}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhK~hjUubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjUhK~hjUubj")}(h$``size_t len`` memory region length h](j()}(h``size_t len``h]j.)}(hjUh]h size_t len}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjUubjD)}(hhh]j)}(hmemory region lengthh]hmemory region length}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjUhKhjUubj")}(h``gfp_t gfp`` GFP mask to use h](j()}(h ``gfp_t gfp``h]j.)}(hjVh]h gfp_t gfp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjUubjD)}(hhh]j)}(hGFP mask to useh]hGFP mask to use}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjVhKhjUubeh}(h]h ]h"]h$]h&]uh1jhjjUubj)}(h **Return**h]j)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Vubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjjUubj)}(hsnewly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](hnewly allocated copy of }(hjRVhhhNhNubj)}(h**src**h]hsrc}(hjZVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRVubh or }(hjRVhhhNhNubj.)}(h``NULL``h]hNULL}(hjlVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRVubhH in case of error, result is physically contiguous. Use kfree() to free.}(hjRVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemdup_nul (C function) c.kmemdup_nulhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h9char * kmemdup_nul (const char *s, size_t len, gfp_t gfp)h]h)}(h7char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)h](h)}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhKubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhKubj)}(h kmemdup_nulh]j)}(h kmemdup_nulh]h kmemdup_nul}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhjVhKubj/)}(h&(const char *s, size_t len, gfp_t gfp)h](j5)}(h const char *sh](j;)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hcharh]hchar}(hj WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hj&WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]hs}(hj3WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjNWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPWmodnameN classnameNjwjz)}j}]j)}jsjVsb c.kmemdup_nulasbuh1hhjGWubh)}(h h]h }(hjnWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGWubj)}(hlenh]hlen}(hj|WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]jjW c.kmemdup_nulasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hgfph]hgfp}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjVhhhjVhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjVhKubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhKhjVhhubj)}(hhh]j)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj Xubj)}(hhh](j")}(h(``const char *s`` The data to stringify h](j()}(h``const char *s``h]j.)}(hj/Xh]h const char *s}(hj1XhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-Xubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj)XubjD)}(hhh]j)}(hThe data to stringifyh]hThe data to stringify}(hjHXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDXhKhjEXubah}(h]h ]h"]h$]h&]uh1jChj)Xubeh}(h]h ]h"]h$]h&]uh1j!hjDXhKhj&Xubj")}(h$``size_t len`` The size of the data h](j()}(h``size_t len``h]j.)}(hjhXh]h size_t len}(hjjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfXubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjbXubjD)}(hhh]j)}(hThe size of the datah]hThe size of the data}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}XhKhj~Xubah}(h]h ]h"]h$]h&]uh1jChjbXubeh}(h]h ]h"]h$]h&]uh1j!hj}XhKhj&Xubj")}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j()}(h ``gfp_t gfp``h]j.)}(hjXh]h gfp_t gfp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjXubjD)}(hhh]j)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhKhj&Xubeh}(h]h ]h"]h$]h&]uh1jhj Xubj)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj Xubj)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjXhhhNhNubj)}(h**s**h]hs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh with NUL-termination or }(hjXhhhNhNubj.)}(h``NULL``h]hNULL}(hj YhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubh in case of error}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemdup_user (C function) c.memdup_userhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h7void * memdup_user (const void __user *src, size_t len)h]h)}(h5void *memdup_user(const void __user *src, size_t len)h](h)}(hvoidh]hvoid}(hjEYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAYhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKubh)}(h h]h }(hjTYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAYhhhjSYhKubj)}(hjh]h*}(hjbYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAYhhhjSYhKubj)}(h memdup_userh]j)}(h memdup_userh]h memdup_user}(hjsYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAYhhhjSYhKubj/)}(h$(const void __user *src, size_t len)h](j5)}(hconst void __user *srch](j;)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh__user}(hjYhhhNhNubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hsrch]hsrc}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jsjuYsb c.memdup_userasbuh1hhjYubh)}(h h]h }(hj!ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hlenh]hlen}(hj/ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjAYhhhjSYhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=YhhhjSYhKubah}(h]j8Yah ](jjeh"]h$]h&]jj)jhuh1hhjSYhKhj:Yhhubj)}(hhh]j)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjYZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjVZhhubah}(h]h ]h"]h$]h&]uh1jhj:YhhhjSYhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqZjjqZjjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hj{Zh]h Parameters}(hj}ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyZubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjuZubj)}(hhh](j")}(h8``const void __user *src`` source address in user space h](j()}(h``const void __user *src``h]j.)}(hjZh]hconst void __user *src}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjZubjD)}(hhh]j)}(hsource address in user spaceh]hsource address in user space}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhjZubj")}(h'``size_t len`` number of bytes to copy h](j()}(h``size_t len``h]j.)}(hjZh]h size_t len}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjZubjD)}(hhh]j)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhjZubeh}(h]h ]h"]h$]h&]uh1jhjuZubj)}(h **Return**h]j)}(hj[h]hReturn}(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:48: ./mm/util.chKhjuZubj)}(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().}(hj$[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjuZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmemdup_user (C function)c.vmemdup_userhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h8void * vmemdup_user (const void __user *src, size_t len)h]h)}(h6void *vmemdup_user(const void __user *src, size_t len)h](h)}(hvoidh]hvoid}(hjS[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjO[hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKubh)}(h h]h }(hjb[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO[hhhja[hKubj)}(hjh]h*}(hjp[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO[hhhja[hKubj)}(h vmemdup_userh]j)}(h vmemdup_userh]h vmemdup_user}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjO[hhhja[hKubj/)}(h$(const void __user *src, size_t len)h](j5)}(hconst void __user *srch](j;)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh__user}(hj[hhhNhNubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hsrch]hsrc}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj \ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j)}jsj[sbc.vmemdup_userasbuh1hhj\ubh)}(h h]h }(hj/\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hlenh]hlen}(hj=\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjO[hhhja[hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjK[hhhja[hKubah}(h]jF[ah ](jjeh"]h$]h&]jj)jhuh1hhja[hKhjH[hhubj)}(hhh]j)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjg\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhjd\hhubah}(h]h ]h"]h$]h&]uh1jhjH[hhhja[hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\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 may be not physically contiguous. Use kvfree() to free.h](j)}(h**Parameters**h]j)}(hj\h]h Parameters}(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:48: ./mm/util.chKhj\ubj)}(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&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj\ubjD)}(hhh]j)}(hsource address in user spaceh]hsource address in user space}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhj\ubj")}(h'``size_t len`` number of bytes to copy h](j()}(h``size_t len``h]j.)}(hj\h]h size_t len}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj\ubjD)}(hhh]j)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubj)}(h **Return**h]j)}(hj]h]hReturn}(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:48: ./mm/util.chKhj\ubj)}(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.}(hj2]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chKhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstrndup_user (C function)c.strndup_userhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h2char * strndup_user (const char __user *s, long n)h]h)}(h0char *strndup_user(const char __user *s, long n)h](h)}(hcharh]hchar}(hja]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]]hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chMubh)}(h h]h }(hjp]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]]hhhjo]hMubj)}(hjh]h*}(hj~]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]]hhhjo]hMubj)}(h strndup_userh]j)}(h strndup_userh]h strndup_user}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]]hhhjo]hMubj/)}(h(const char __user *s, long n)h](j5)}(hconst char __user *sh](j;)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh__user}(hj]hhhNhNubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hjh]hs}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hlong nh](h)}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hj'^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hj h]hn}(hj5^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj]]hhhjo]hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjY]hhhjo]hMubah}(h]jT]ah ](jjeh"]h$]h&]jj)jhuh1hhjo]hMhjV]hhubj)}(hhh]j)}(h,duplicate an existing string from user spaceh]h,duplicate an existing string from user space}(hj^^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chMhj[^hhubah}(h]h ]h"]h$]h&]uh1jhjV]hhhjo]hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjv^jjv^jjjuh1hhhhj{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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(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:48: ./mm/util.chMhjz^ubj)}(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&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chMhj^ubjD)}(hhh]j)}(hThe string to duplicateh]hThe string to duplicate}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj^ubj")}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j()}(h ``long n``h]j.)}(hj^h]hlong n}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chMhj^ubjD)}(hhh]j)}(hnewly allocated copy of **s** or an ERR_PTR() in case of errorh](hnewly allocated copy of }(hj)_hhhNhNubj)}(h**s**h]hs}(hj1_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)_ubh! or an ERR_PTR() in case of error}(hj)_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chMhjz^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemdup_user_nul (C function)c.memdup_user_nulhNtauh1hhj{hhhNhNubh)}(hhh](h)}(h;void * memdup_user_nul (const void __user *src, size_t len)h]h)}(h9void *memdup_user_nul(const void __user *src, size_t len)h](h)}(hvoidh]hvoid}(hjj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjf_hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM#ubh)}(h h]h }(hjy_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf_hhhjx_hM#ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf_hhhjx_hM#ubj)}(hmemdup_user_nulh]j)}(hmemdup_user_nulh]hmemdup_user_nul}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjf_hhhjx_hM#ubj/)}(h$(const void __user *src, size_t len)h](j5)}(hconst void __user *srch](j;)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh__user}(hj_hhhNhNubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hsrch]hsrc}(hj `hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj&`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(`modnameN classnameNjwjz)}j}]j)}jsj_sbc.memdup_user_nulasbuh1hhj`ubh)}(h h]h }(hjF`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hlenh]hlen}(hjT`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjf_hhhjx_hM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjb_hhhjx_hM#ubah}(h]j]_ah ](jjeh"]h$]h&]jj)jhuh1hhjx_hM#hj__hhubj)}(hhh]j)}(h9duplicate memory region from user space and NUL-terminateh]h9duplicate memory region from user space and NUL-terminate}(hj~`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM#hj{`hhubah}(h]h ]h"]h$]h&]uh1jhj__hhhjx_hM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`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.h](j)}(h**Parameters**h]j)}(hj`h]h Parameters}(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:48: ./mm/util.chM'hj`ubj)}(hhh](j")}(h8``const void __user *src`` source address in user space h](j()}(h``const void __user *src``h]j.)}(hj`h]hconst void __user *src}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM%hj`ubjD)}(hhh]j)}(hsource address in user spaceh]hsource address in user space}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hM%hj`ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj`hM%hj`ubj")}(h'``size_t len`` number of bytes to copy h](j()}(h``size_t len``h]j.)}(hj`h]h size_t len}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM&hj`ubjD)}(hhh]j)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ahM&hjaubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj ahM&hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h **Return**h]j)}(hj3ah]hReturn}(hj5ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1aubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM(hj`ubj)}(han ERR_PTR() on failure.h]han ERR_PTR() on failure.}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:48: ./mm/util.chM(hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj{hhhNhNubeh}(h]string-manipulationah ]h"]string manipulationah$]h&]uh1hhjYhhhhhK%ubeh}(h]basic-c-library-functionsah ]h"]basic c library functionsah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hBasic Kernel Library Functionsh]hBasic Kernel Library Functions}(hjrahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoahhhhhK5ubj)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK7hjoahhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahhhhhK:ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌset_bit (C function) c.set_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h4void set_bit (long nr, volatile unsigned long *addr)h]h)}(h3void set_bit(long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjahKubj)}(hset_bith]j)}(hset_bith]hset_bit}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjahKubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hnrh]hnr}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubj5)}(hvolatile unsigned long *addrh](j;)}(hvolatileh]hvolatile}(hj*bhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&bubh)}(h h]h }(hj8bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&bubh)}(hunsignedh]hunsigned}(hjFbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&bubh)}(h h]h }(hjTbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&bubh)}(hlongh]hlong}(hjbbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&bubh)}(h h]h }(hjpbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&bubj)}(hjh]h*}(hj~bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&bubj)}(haddrh]haddr}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&bubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjaubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjahKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjahKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahKhjahhubj)}(hhh]j)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbubj)}(hhh](j")}(h``long nr`` the bit to set h](j()}(h ``long nr``h]j.)}(hjbh]hlong nr}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbubjD)}(hhh]j)}(hthe bit to seth]hthe bit to set}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj chKhj cubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj chKhjbubj")}(hD``volatile unsigned long *addr`` the address to start counting from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hj/ch]hvolatile unsigned long *addr}(hj1chhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-cubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhj)cubjD)}(hhh]j)}(h"the address to start counting fromh]h"the address to start counting from}(hjHchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDchKhjEcubah}(h]h ]h"]h$]h&]uh1jChj)cubeh}(h]h ]h"]h$]h&]uh1j!hjDchKhjbubeh}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hjjch]h Description}(hjlchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhcubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbubj)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbubj)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hjchhhNhNubj)}(h**nr**h]hnr}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclear_bit (C function) c.clear_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h6void clear_bit (long nr, volatile unsigned long *addr)h]h)}(h5void clear_bit(long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjchK!ubj)}(h clear_bith]j)}(h clear_bith]h clear_bit}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjchK!ubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hj dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj dubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj dubj)}(hnrh]hnr}(hj)dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj dubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjBdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>dubh)}(h h]h }(hjOdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>dubh)}(hunsignedh]hunsigned}(hj]dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>dubh)}(h h]h }(hjkdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>dubh)}(hlongh]hlong}(hjydhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>dubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>dubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>dubj)}(haddrh]haddr}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>dubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjchK!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjchK!ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchK!hjchhubj)}(hhh]j)}(hClears a bit in memoryh]hClears a bit in memory}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK!hjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjdjjdjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjdubj)}(hhh](j")}(h``long nr`` Bit to clear h](j()}(h ``long nr``h]j.)}(hj eh]hlong nr}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj eubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK"hjeubjD)}(hhh]j)}(h Bit to clearh]h Bit to clear}(hj&ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ehK"hj#eubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hj"ehK"hjeubj")}(h@``volatile unsigned long *addr`` Address to start counting from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjFeh]hvolatile unsigned long *addr}(hjHehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDeubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK#hj@eubjD)}(hhh]j)}(hAddress to start counting fromh]hAddress to start counting from}(hj_ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ehK#hj\eubah}(h]h ]h"]h$]h&]uh1jChj@eubeh}(h]h ]h"]h$]h&]uh1j!hj[ehK#hjeubeh}(h]h ]h"]h$]h&]uh1jhjdubj)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjdubj)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌchange_bit (C function) c.change_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h7void change_bit (long nr, volatile unsigned long *addr)h]h)}(h6void change_bit(long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjehK.ubj)}(h change_bith]j)}(h change_bith]h change_bit}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjehK.ubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hnrh]hnr}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hj8fhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4fubh)}(h h]h }(hjEfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4fubh)}(hunsignedh]hunsigned}(hjSfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4fubh)}(h h]h }(hjafhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4fubh)}(hlongh]hlong}(hjofhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4fubh)}(h h]h }(hj}fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4fubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4fubj)}(haddrh]haddr}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4fubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjehK.ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhjehK.ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehK.hjehhubj)}(hhh]j)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK.hjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehK.ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjfjjfjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjfubj)}(hhh](j")}(h``long nr`` Bit to change h](j()}(h ``long nr``h]j.)}(hjgh]hlong nr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjfubjD)}(hhh]j)}(h Bit to changeh]h Bit to change}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghK/hjgubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjghK/hjfubj")}(h@``volatile unsigned long *addr`` Address to start counting from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:gubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK0hj6gubjD)}(hhh]j)}(hAddress to start counting fromh]hAddress to start counting from}(hjUghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQghK0hjRgubah}(h]h ]h"]h$]h&]uh1jChj6gubeh}(h]h ]h"]h$]h&]uh1j!hjQghK0hjfubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(h**Description**h]j)}(hjwgh]h Description}(hjyghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjugubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjfubj)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjfubj)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hjghhhNhNubj)}(h**nr**h]hnr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK4hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtest_and_set_bit (C function)c.test_and_set_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]h)}(hubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhhjghK>ubj)}(htest_and_set_bith]j)}(htest_and_set_bith]htest_and_set_bit}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhhjghK>ubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hj'hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hnrh]hnr}(hj5hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjNhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJhubh)}(h h]h }(hj[hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhubh)}(hunsignedh]hunsigned}(hjihhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJhubh)}(h h]h }(hjwhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhubh)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhubj)}(haddrh]haddr}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjghhhjghK>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhjghK>ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghK>hjghhubj)}(hhh]j)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghK>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjhubj)}(hhh](j")}(h``long nr`` Bit to set h](j()}(h ``long nr``h]j.)}(hjih]hlong nr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK?hjiubjD)}(hhh]j)}(h Bit to seth]h Bit to set}(hj2ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ihK?hj/iubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hj.ihK?hjiubj")}(h7``volatile unsigned long *addr`` Address to count from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjRih]hvolatile unsigned long *addr}(hjTihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPiubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK@hjLiubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hjkihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgihK@hjhiubah}(h]h ]h"]h$]h&]uh1jChjLiubeh}(h]h ]h"]h$]h&]uh1j!hjgihK@hjiubeh}(h]h ]h"]h$]h&]uh1jhjhubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjhubj)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtest_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h?bool test_and_clear_bit (long nr, volatile unsigned long *addr)h]h)}(h>bool test_and_clear_bit(long nr, volatile unsigned long *addr)h](h)}(hjoh]hbool}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKLubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihKLubj)}(htest_and_clear_bith]j)}(htest_and_clear_bith]htest_and_clear_bit}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihKLubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj jubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj jubj)}(hnrh]hnr}(hj*jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjCjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?jubh)}(h h]h }(hjPjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?jubh)}(hunsignedh]hunsigned}(hj^jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?jubh)}(h h]h }(hjljhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?jubh)}(hlongh]hlong}(hjzjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?jubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?jubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?jubj)}(haddrh]haddr}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihKLubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihKLubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihKLhjihhubj)}(hhh]j)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKLhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihKLubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjjubj)}(hhh](j")}(h``long nr`` Bit to clear h](j()}(h ``long nr``h]j.)}(hjkh]hlong nr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj kubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjkubjD)}(hhh]j)}(h Bit to clearh]h Bit to clear}(hj'khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#khKMhj$kubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hj#khKMhjkubj")}(h7``volatile unsigned long *addr`` Address to count from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjGkh]hvolatile unsigned long *addr}(hjIkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEkubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKNhjAkubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hj`khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\khKNhj]kubah}(h]h ]h"]h$]h&]uh1jChjAkubeh}(h]h ]h"]h$]h&]uh1j!hj\khKNhjkubeh}(h]h ]h"]h$]h&]uh1jhjjubj)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjjubj)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ test_and_change_bit (C function)c.test_and_change_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h@bool test_and_change_bit (long nr, volatile unsigned long *addr)h]h)}(h?bool test_and_change_bit(long nr, volatile unsigned long *addr)h](h)}(hjoh]hbool}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhjkhKZubj)}(htest_and_change_bith]j)}(htest_and_change_bith]htest_and_change_bit}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhjkhKZubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hnrh]hnr}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hj8lhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4lubh)}(h h]h }(hjElhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4lubh)}(hunsignedh]hunsigned}(hjSlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4lubh)}(h h]h }(hjalhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4lubh)}(hlongh]hlong}(hjolhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4lubh)}(h h]h }(hj}lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4lubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4lubj)}(haddrh]haddr}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4lubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjkhhhjkhKZubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjkhKZubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhKZhjkhhubj)}(hhh]j)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhKZhjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhKZubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjlubj)}(hhh](j")}(h``long nr`` Bit to change h](j()}(h ``long nr``h]j.)}(hjmh]hlong nr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjlubjD)}(hhh]j)}(h Bit to changeh]h Bit to change}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhK[hjmubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjmhK[hjlubj")}(h7``volatile unsigned long *addr`` Address to count from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:mubah}(h]h ]h"]h$]h&]uh1j'ht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK\hj6mubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hjUmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQmhK\hjRmubah}(h]h ]h"]h$]h&]uh1jChj6mubeh}(h]h ]h"]h$]h&]uh1j!hjQmhK\hjlubeh}(h]h ]h"]h$]h&]uh1jhjlubj)}(h**Description**h]j)}(hjwmh]h Description}(hjymhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjumubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjlubj)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ___set_bit (C function) c.___set_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(h@void ___set_bit (unsigned long nr, volatile unsigned long *addr)h]h)}(h?void ___set_bit(unsigned long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjmhKubj)}(h ___set_bith]j)}(h ___set_bith]h ___set_bit}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjmhhhjmhKubj/)}(h0(unsigned long nr, volatile unsigned long *addr)h](j5)}(hunsigned long nrh](h)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hj#nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hnrh]hnr}(hj1nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjJnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFnubh)}(h h]h }(hjWnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFnubh)}(hunsignedh]hunsigned}(hjenhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFnubh)}(h h]h }(hjsnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFnubh)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFnubj)}(haddrh]haddr}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjmhhhjmhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhjmhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjmhKhjmhhubj)}(hhh]j)}(hSet a bit in memoryh]hSet a bit in memory}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjnubj)}(hhh](j")}(h$``unsigned long nr`` the bit to set h](j()}(h``unsigned long nr``h]j.)}(hjoh]hunsigned long nr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjoubjD)}(hhh]j)}(hthe bit to seth]hthe bit to set}(hj.ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ohKhj+oubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hj*ohKhj oubj")}(hD``volatile unsigned long *addr`` the address to start counting from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjNoh]hvolatile unsigned long *addr}(hjPohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLoubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjHoubjD)}(hhh]j)}(h"the address to start counting fromh]h"the address to start counting from}(hjgohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcohKhjdoubah}(h]h ]h"]h$]h&]uh1jChjHoubeh}(h]h ]h"]h$]h&]uh1j!hjcohKhj oubeh}(h]h ]h"]h$]h&]uh1jhjnubj)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjnubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ___clear_bit (C function)c.___clear_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(hBvoid ___clear_bit (unsigned long nr, volatile unsigned long *addr)h]h)}(hAvoid ___clear_bit(unsigned long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjohK!ubj)}(h ___clear_bith]j)}(h ___clear_bith]h ___clear_bit}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjohK!ubj/)}(h0(unsigned long nr, volatile unsigned long *addr)h](j5)}(hunsigned long nrh](h)}(hunsignedh]hunsigned}(hj phhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hlongh]hlong}(hj'phhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hj5phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hnrh]hnr}(hjCphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hj\phhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXpubh)}(h h]h }(hjiphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXpubh)}(hunsignedh]hunsigned}(hjwphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXpubh)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXpubj)}(haddrh]haddr}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjohK!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjohK!ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohK!hjohhubj)}(hhh]j)}(hClears a bit in memoryh]hClears a bit in memory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!hjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjqh]h Parameters}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjqubj)}(hhh](j")}(h&``unsigned long nr`` the bit to clear h](j()}(h``unsigned long nr``h]j.)}(hj'qh]hunsigned long nr}(hj)qhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%qubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK"hj!qubjD)}(hhh]j)}(hthe bit to clearh]hthe bit to clear}(hj@qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:wubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhj6wubj)}(hhh](j")}(h"``unsigned long nr`` Bit to clear h](j()}(h``unsigned long nr``h]j.)}(hj[wh]hunsigned long nr}(hj]whhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYwubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKihjUwubjD)}(hhh]j)}(h Bit to clearh]h Bit to clear}(hjtwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpwhKihjqwubah}(h]h ]h"]h$]h&]uh1jChjUwubeh}(h]h ]h"]h$]h&]uh1j!hjpwhKihjRwubj")}(h7``volatile unsigned long *addr`` Address to count from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjwh]hvolatile unsigned long *addr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhjwubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhKjhjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhKjhjRwubeh}(h]h ]h"]h$]h&]uh1jhj6wubj)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhj6wubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhj6wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(hLbool ___test_and_change_bit (unsigned long nr, volatile unsigned long *addr)h]h)}(hKbool ___test_and_change_bit(unsigned long nr, volatile unsigned long *addr)h](h)}(hjoh]hbool}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwubh)}(h h]h }(hj"xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhj!xhKwubj)}(h___test_and_change_bith]j)}(h___test_and_change_bith]h___test_and_change_bit}(hj4xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0xubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhj!xhKwubj/)}(h0(unsigned long nr, volatile unsigned long *addr)h](j5)}(hunsigned long nrh](h)}(hunsignedh]hunsigned}(hjPxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLxubh)}(h h]h }(hj^xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLxubh)}(hlongh]hlong}(hjlxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLxubh)}(h h]h }(hjzxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLxubj)}(hnrh]hnr}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHxubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(haddrh]haddr}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhj!xhKwubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj xhhhj!xhKwubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhj!xhKwhj xhhubj)}(hhh]j)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hj+yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwhj(yhhubah}(h]h ]h"]h$]h&]uh1jhj xhhhj!xhKwubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCyjjCyjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjMyh]h Parameters}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKyubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjGyubj)}(hhh](j")}(h#``unsigned long nr`` Bit to change h](j()}(h``unsigned long nr``h]j.)}(hjlyh]hunsigned long nr}(hjnyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjyubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKxhjfyubjD)}(hhh]j)}(h Bit to changeh]h Bit to change}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhKxhjyubah}(h]h ]h"]h$]h&]uh1jChjfyubeh}(h]h ]h"]h$]h&]uh1j!hjyhKxhjcyubj")}(h7``volatile unsigned long *addr`` Address to count from h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjyh]hvolatile unsigned long *addr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhjyubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhKyhjyubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjyhKyhjcyubeh}(h]h ]h"]h$]h&]uh1jhjGyubj)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjGyubj)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjGyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ_test_bit (C function) c._test_bithNtauh1hhjahhhNhNubh)}(hhh](h)}(hEbool _test_bit (unsigned long nr, const volatile unsigned long *addr)h]h)}(hDbool _test_bit(unsigned long nr, volatile const unsigned long *addr)h](h)}(hjoh]hbool}(hj%zhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!zhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubh)}(h h]h }(hj3zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!zhhhj2zhKubj)}(h _test_bith]j)}(h _test_bith]h _test_bit}(hjEzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!zhhhj2zhKubj/)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j5)}(hunsigned long nrh](h)}(hunsignedh]hunsigned}(hjazhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]zubh)}(h h]h }(hjozhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]zubh)}(hlongh]hlong}(hj}zhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]zubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]zubj)}(hnrh]hnr}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]zubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYzubj5)}(h"volatile const unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj;)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(haddrh]haddr}(hj-{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYzubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!zhhhj2zhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhj2zhKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhj2zhKhjzhhubj)}(hhh]j)}(hDetermine whether a bit is seth]hDetermine whether a bit is set}(hjW{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjT{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhj2zhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjo{jjo{jjjuh1hhhhjahNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h**Parameters**h]j)}(hjy{h]h Parameters}(hj{{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw{ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjs{ubj)}(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&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj{ubjD)}(hhh]j)}(hbit number to testh]hbit number to test}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj{hKhj{ubj")}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j()}(h&``const volatile unsigned long *addr``h]j.)}(hj{h]h"const volatile unsigned long *addr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj{ubjD)}(hhh]j)}(hAddress to start counting fromh]hAddress to start counting from}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj{ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj{hKhj{ubeh}(h]h ]h"]h$]h&]uh1jhjs{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ_test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhjahhhNhNubh)}(hhh](h)}(hMbool _test_bit_acquire (unsigned long nr, const volatile unsigned long *addr)h]h)}(hLbool _test_bit_acquire(unsigned long nr, volatile const unsigned long *addr)h](h)}(hjoh]hbool}(hj+|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'|hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubh)}(h h]h }(hj9|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'|hhhj8|hKubj)}(h_test_bit_acquireh]j)}(h_test_bit_acquireh]h_test_bit_acquire}(hjK|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjG|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'|hhhj8|hKubj/)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j5)}(hunsigned long nrh](h)}(hunsignedh]hunsigned}(hjg|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc|ubh)}(h h]h }(hju|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc|ubh)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc|ubj)}(hnrh]hnr}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_|ubj5)}(h"volatile const unsigned long *addrh](j;)}(hj,bh]hvolatile}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj;)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hlongh]hlong}(hj }hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hjh]h*}(hj&}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(haddrh]haddr}(hj3}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_|ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'|hhhj8|hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#|hhhj8|hKubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj8|hKhj |hhubj)}(hhh]j)}(h7Determine, with acquire semantics, whether a bit is seth]h7Determine, with acquire semantics, whether a bit is set}(hj]}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjZ}hhubah}(h]h ]h"]h$]h&]uh1jhj |hhhj8|hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjju}jju}jjjuh1hhhhjahNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}}ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjy}ubj)}(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&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj}ubjD)}(hhh]j)}(hbit number to testh]hbit number to test}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hKhj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hKhj}ubj")}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j()}(h&``const volatile unsigned long *addr``h]j.)}(hj}h]h"const volatile unsigned long *addr}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj}ubjD)}(hhh]j)}(hAddress to start counting fromh]hAddress to start counting from}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:63: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hKhj}ubeh}(h]h ]h"]h$]h&]uh1jhjy}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhjahhhNhNubh)}(hhh](h)}(h=void clear_bit_unlock (long nr, volatile unsigned long *addr)h]h)}(hvoid __clear_bit_unlock(long nr, volatile unsigned long *addr)h](h)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#hhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj5hKubj)}(h__clear_bit_unlockh]j)}(h__clear_bit_unlockh]h__clear_bit_unlock}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj5hKubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj€hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjЀhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjހhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj5hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj5hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hKhjhhubj)}(hhh]j)}(hClears a bit in memoryh]hClears a bit in memory}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK#hj?ubj)}(hhh](j")}(h``long nr`` Bit to clear h](j()}(h ``long nr``h]j.)}(hjdh]hlong nr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK hj^ubjD)}(hhh]j)}(h Bit to clearh]h Bit to clear}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhK hjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhK hj[ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK!hjubjD)}(hhh]j)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK!hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK!hj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubj)}(h**Description**h]j)}(hj؁h]h Description}(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:66: ./include/asm-generic/bitops/instrumented-lock.hhK#hj?ubj)}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK#hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhjahhhNhNubh)}(hhh](h)}(hBbool test_and_set_bit_lock (long nr, volatile unsigned long *addr)h]h)}(hAbool test_and_set_bit_lock(long nr, volatile unsigned long *addr)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK/ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hK/ubj)}(htest_and_set_bit_lockh]j)}(htest_and_set_bit_lockh]htest_and_set_bit_lock}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj*hK/ubj/)}(h'(long nr, volatile unsigned long *addr)h](j5)}(hlong nrh](h)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hnrh]hnr}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjłhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjӂhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj*hK/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj*hK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hK/hjhhubj)}(hhh]j)}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hK/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK3hj4ubj)}(hhh](j")}(h``long nr`` Bit to set h](j()}(h ``long nr``h]j.)}(hjYh]hlong nr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK0hjSubjD)}(hhh]j)}(h Bit to seth]h Bit to set}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhK0hjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhK0hjPubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK1hjubjD)}(hhh]j)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK1hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK1hjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hj̓h]h Description}(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:66: ./include/asm-generic/bitops/instrumented-lock.hhK3hj4ubj)}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK3hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhjahhhNhNubh)}(hhh](h)}(hSbool xor_unlock_is_negative_byte (unsigned long mask, volatile unsigned long *addr)h]h)}(hRbool xor_unlock_is_negative_byte(unsigned long mask, volatile unsigned long *addr)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK>ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK>ubj)}(hxor_unlock_is_negative_byteh]j)}(hxor_unlock_is_negative_byteh]hxor_unlock_is_negative_byte}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK>ubj/)}(h2(unsigned long mask, volatile unsigned long *addr)h](j5)}(hunsigned long maskh](h)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hvolatile unsigned long *addrh](j;)}(hj,bh]hvolatile}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjȄhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjքhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjhhubj)}(hhh]j)}(hCXOR a single byte in memory and test if it is negative, for unlock.h]hCXOR a single byte in memory and test if it is negative, for unlock.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK>hj&hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjahNhNubj)}(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](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKBhjEubj)}(hhh](j")}(hC``unsigned long mask`` Change the bits which are set in this mask. h](j()}(h``unsigned long mask``h]j.)}(hjjh]hunsigned long mask}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhK@hjdubjD)}(hhh]j)}(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&]uh1jhjhK@hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhK@hjaubj")}(hX``volatile unsigned long *addr`` The address of the word containing the byte to change. h](j()}(h ``volatile unsigned long *addr``h]j.)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKAhjubjD)}(hhh]j)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKAhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKAhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjޅh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܅ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKChjEubj)}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKChjEubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKIhjEubj)}(h'Whether the top bit of the byte is set.h]h'Whether the top bit of the byte is set.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./include/asm-generic/bitops/instrumented-lock.hhKIhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjahhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhjoahhhhhK:ubh)}(hhh](h)}(hBitmap Operationsh]hBitmap Operations}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhhhhhKFubj)}(hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.h]hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./lib/bitmap.chKhjKhhubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./lib/bitmap.chKhjKhhubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./lib/bitmap.chKhjKhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKzhjKhhubj)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./include/linux/bitmap.hhK!hjKhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./include/linux/bitmap.hhK$hjKhhubjo)}(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}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./include/linux/bitmap.hhK)hjKhhubj)}(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.}(hjņhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./include/linux/bitmap.hhKYhjKhhubj)}(hAAlso the following operations in asm/bitops.h apply to bitmaps.::h]h@Also the following operations in asm/bitops.h apply to bitmaps.:}(hjԆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./include/linux/bitmap.hhKchjKhhubjo)}(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&]j,j-uh1jnhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./include/linux/bitmap.hhKehjKhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhjKhhhNhNubh)}(hhh](h)}(hhvoid __bitmap_shift_right (unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h]h)}(hgvoid __bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKRubj)}(h__bitmap_shift_righth]j)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKRubj/)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjχhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj݇hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(hunsigned shifth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hshifth]hshift}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(hunsigned nbitsh](h)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hnbitsh]hnbits}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKRubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKRhjhhubj)}(hhh]j)}(h+logical right shift of the bits in a bitmaph]h+logical right shift of the bits in a bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKRhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKRubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKVhjubj)}(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&]uh1j-hjوubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKShjՈubjD)}(hhh]j)}(hdestination bitmaph]hdestination bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKShjubah}(h]h ]h"]h$]h&]uh1jChjՈubeh}(h]h ]h"]h$]h&]uh1j!hjhKShj҈ubj")}(h+``const unsigned long *src`` source bitmap h](j()}(h``const unsigned long *src``h]j.)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKThjubjD)}(hhh]j)}(h source bitmaph]h source bitmap}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hKThj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hKThj҈ubj")}(h+``unsigned shift`` shift by this many bits h](j()}(h``unsigned shift``h]j.)}(hjMh]hunsigned shift}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKUhjGubjD)}(hhh]j)}(hshift by this many bitsh]hshift by this many bits}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhKUhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhKUhj҈ubj")}(h(``unsigned nbits`` bitmap size, in bits h](j()}(h``unsigned nbits``h]j.)}(hjh]hunsigned nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKVhjubjD)}(hhh]j)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKVhj҈ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjÉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKXhjubj)}(hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h]hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.}(hj׉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhjKhhhNhNubh)}(hhh](h)}(hovoid __bitmap_shift_left (unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h]h)}(hnvoid __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chK~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK~ubj)}(h__bitmap_shift_lefth]j)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK~ubj/)}(hV(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjʊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj؊hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubj5)}(hunsigned int shifth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hshifth]hshift}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK~ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK~ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK~hjhhubj)}(hhh]j)}(h*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hj͋hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chK~hjʋhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK~ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjubj)}(hhh](j")}(h*``unsigned long *dst`` destination bitmap h](j()}(h``unsigned long *dst``h]j.)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjubjD)}(hhh]j)}(hdestination bitmaph]hdestination bitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj#hKhjubj")}(h+``const unsigned long *src`` source bitmap h](j()}(h``const unsigned long *src``h]j.)}(hjGh]hconst unsigned long *src}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjAubjD)}(hhh]j)}(h source bitmaph]h source bitmap}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhjubj")}(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&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjzubjD)}(hhh]j)}(hshift by this many bitsh]hshift by this many bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h,``unsigned int nbits`` bitmap size, in bits h](j()}(h``unsigned int nbits``h]j.)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjubjD)}(hhh]j)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjҌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΌhKhjόubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjΌhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjubj)}(hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h]hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_cut (C function) c.bitmap_cuthNtauh1hhjKhhhNhNubh)}(hhh](h)}(hxvoid bitmap_cut (unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h]h)}(hwvoid bitmap_cut(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](h)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chKubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjGhKubj)}(h bitmap_cuth]j)}(h bitmap_cuth]h bitmap_cut}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhjGhKubj/)}(hh(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hjԍhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjЍubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЍubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjЍubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЍubh)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjЍubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЍubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЍubj)}(hsrch]hsrc}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjЍubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned int firsth](h)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hfirsth]hfirst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned int cuth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjȎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcuth]hcut}(hj֎hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhjGhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjGhKubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhKhj.hhubj)}(hhh]j)}(hhhubj)}(hhh]j)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjȔh]h Parameters}(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:84: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(h!The address to base the search onh]h!The address to base the search on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjޔubj")}(h/``unsigned long size`` The bitmap size in bits h](j()}(h``unsigned long size``h]j.)}(hj h]hunsigned long size}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMhjޔubj")}(h<``unsigned long start`` The bitnumber to start searching at h](j()}(h``unsigned long start``h]j.)}(hjYh]hunsigned long start}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjSubjD)}(hhh]j)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjޔubj")}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j()}(h``unsigned int nr``h]j.)}(hjh]hunsigned int nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjޔubj")}(h:``unsigned long align_mask`` Alignment mask for zero area h](j()}(h``unsigned long align_mask``h]j.)}(hj˕h]hunsigned long align_mask}(hj͕hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjɕubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjŕubjD)}(hhh]j)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjŕubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjޔubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hAlignment offset for zero area.h]hAlignment offset for zero area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjޔubeh}(h]h ]h"]h$]h&]uh1jhj”ubj)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj”ubj)}(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 }(hjUhhhNhNubj)}(h**align_mask**h]h align_mask}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubht should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus }(hjUhhhNhNubj)}(h**align_offset**h]h align_offset}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh is multiple of that power of 2.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj”ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_remap (C function)c.bitmap_remaphNtauh1hhjKhhhNhNubh)}(hhh](h)}(hvoid bitmap_remap (unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h]h)}(hvoid bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h bitmap_remaph]j)}(h bitmap_remaph]h bitmap_remap}(hjɖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjŖubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hv(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݖubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݖubj5)}(hconst unsigned long *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjɗhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjחhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݖubj5)}(hconst unsigned long *newh](j;)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݖubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjʘhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjؘhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݖubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(hhh](j")}(h'``unsigned long *dst`` remapped result h](j()}(h``unsigned long *dst``h]j.)}(hjQh]hunsigned long *dst}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjKubjD)}(hhh]j)}(hremapped resulth]hremapped result}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhjHubj")}(h3``const unsigned long *src`` subset to be remapped h](j()}(h``const unsigned long *src``h]j.)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hsubset to be remappedh]hsubset to be remapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjHubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hdefines domain of maph]hdefines domain of map}(hjܙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjؙhMhjٙubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjؙhMhjHubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjHubj")}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j()}(h``unsigned int nbits``h]j.)}(hj5h]hunsigned int nbits}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj/ubjD)}(hhh]j)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubj)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is mapped to the n-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hjĚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjhhhNhNubj)}(h**new**h]hnew}(hj֚hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is less than the weight of }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh*, map the position of the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( to the position of the m-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, where m == n % w.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(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 }(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 bitmaps are empty, or if }(hj%hhhNhNubj)}(h**src**h]hsrc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh and }(hj%hhhNhNubj)}(h**dst**h]hdst}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh6 point to the same location, then this routine copies }(hj%hhhNhNubj)}(h**src**h]hsrc}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh to }(hj%hhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- are mapped to themselves (the identity map).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(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 }(hjhhhNhNubj)}(h**src**h]hsrc}(hjɛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, placing the result in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjۛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh&, clearing any bits previously set in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubj)}(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}(hj hhhNhNubah}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 comes into this routine with bits 1, 5 and 7 set, then }(hjhhhNhNubj)}(h**dst**h]hdst}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) should leave with bits 1, 13 and 15 set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhjKhhhNhNubh)}(hhh](h)}(h^int bitmap_bitremap (int oldbit, const unsigned long *old, const unsigned long *new, int bits)h]h)}(h]int bitmap_bitremap(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](h)}(hinth]hint}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjhMubj)}(hbitmap_bitremaph]j)}(hbitmap_bitremaph]hbitmap_bitremap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhhjhMubj/)}(hJ(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j5)}(h int oldbith](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjȜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(holdbith]holdbit}(hj֜hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *newh](j;)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hnewh]hnew}(hjȝhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint bitsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݝubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjݝubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjݝubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjyhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj)}(hhh]j)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM hjCubj)}(hhh](j")}(h)``int oldbit`` bit position to be mapped h](j()}(h``int oldbit``h]j.)}(hjhh]h int oldbit}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM hjbubjD)}(hhh]j)}(hbit position to be mappedh]hbit position to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hM hj_ubj")}(h3``const unsigned long *old`` defines domain of map h](j()}(h``const unsigned long *old``h]j.)}(hjh]hconst unsigned long *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM hjubjD)}(hhh]j)}(hdefines domain of maph]hdefines domain of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj_ubj")}(h2``const unsigned long *new`` defines range of map h](j()}(h``const unsigned long *new``h]j.)}(hjڞh]hconst unsigned long *new}(hjܞhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj؞ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM hjԞubjD)}(hhh]j)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjԞubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj_ubj")}(h5``int bits`` number of bits in each of these bitmaps h](j()}(h ``int bits``h]j.)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM hj ubjD)}(hhh]j)}(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&]uh1jhj(hM hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM hj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubj)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjCubj)}(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 }(hjdhhhNhNubj)}(h**old**h]hold}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh and }(hjdhhhNhNubj)}(h**new**h]hnew}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjdhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh" is mapped to the n-th set bit in }(hjdhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjdhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh is less than the weight of }(hjdhhhNhNubj)}(h**old**h]hold}(hjƟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh*, map the position of the n-th set bit in }(hjdhhhNhNubj)}(h**old**h]hold}(hj؟hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh( to the position of the m-th set bit in }(hjdhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh, where m == n % w.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjCubj)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hjhhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- are mapped to themselves (the identity map).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjCubj)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjCubj)}(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 }(hjEhhhNhNubj)}(h**old**h]hold}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh has bits 4 through 7 set, and }(hjEhhhNhNubj)}(h**new**h]hnew}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh 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 }(hjEhhhNhNubj)}(h **oldbit**h]holdbit}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh$ is 5, then this routine returns 13.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhjKhhhNhNubh)}(hhh](h)}(hRvoid bitmap_from_arr32 (unsigned long *bitmap, const u32 *buf, unsigned int nbits)h]h)}(hQvoid bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hbitmap_from_arr32h]j)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hjˠhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjǠubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j5)}(hunsigned long *bitmaph](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitmaph]hbitmap}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjߠubj5)}(hconst u32 *bufh](j;)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j)}(hu32h]hu32}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j)}jsj͠sbc.bitmap_from_arr32asbuh1hhjAubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjߠubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjšhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjӡhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjߠubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h0copy the contents of u32 array of bits to bitmaph]h0copy the contents of u32 array of bits to bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhj5ubj)}(hhh](j")}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j()}(h``unsigned long *bitmap``h]j.)}(hjZh]hunsigned long *bitmap}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjTubjD)}(hhh]j)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohMhjQubj")}(hH``const u32 *buf`` array of u32 (in host byte order), the source bitmap h](j()}(h``const u32 *buf``h]j.)}(hjh]hconst u32 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubjD)}(hhh]j)}(h4array of u32 (in host byte order), the source bitmaph]h4array of u32 (in host byte order), the source bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjQubj")}(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&]uh1j-hjʢubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjƢubjD)}(hhh]j)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1jChjƢubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhjKhhhNhNubh)}(hhh](h)}(hPvoid bitmap_to_arr32 (u32 *buf, const unsigned long *bitmap, unsigned int nbits)h]h)}(hOvoid bitmap_to_arr32(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](h)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM&ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjBhM&ubj)}(hbitmap_to_arr32h]j)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhjBhM&ubj/)}(h;(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j5)}(hu32 *bufh](h)}(hhh]j)}(hu32h]hu32}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsjWsbc.bitmap_to_arr32asbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hconst unsigned long *bitmaph](j;)}(hjh]hconst}(hjȣhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjģubh)}(h h]h }(hjգhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjģubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjģubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjģubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjģubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjģubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubj)}(hbitmaph]hbitmap}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjģubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hinth]hint}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hnbitsh]hnbits}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhjBhM&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,hhhjBhM&ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhM&hj)hhubj)}(hhh]j)}(h2copy the contents of bitmap to a u32 array of bitsh]h2copy the contents of bitmap to a u32 array of bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhM&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjŤh]h Parameters}(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:84: ./lib/bitmap.chM*hjubj)}(hhh](j")}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j()}(h ``u32 *buf``h]j.)}(hjh]hu32 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM'hjޤubjD)}(hhh]j)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM'hjubah}(h]h ]h"]h$]h&]uh1jChjޤubeh}(h]h ]h"]h$]h&]uh1j!hjhM'hjۤubj")}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j()}(h``const unsigned long *bitmap``h]j.)}(hjh]hconst unsigned long *bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM(hjubjD)}(hhh]j)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM(hj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hM(hjۤubj")}(h3``unsigned int nbits`` number of bits in **bitmap**h](j()}(h``unsigned int nbits``h]j.)}(hjVh]hunsigned int nbits}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM*hjPubjD)}(hhh]j)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjohhhNhNubj)}(h **bitmap**h]hbitmap}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM)hjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhM*hjۤubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhjKhhhNhNubh)}(hhh](h)}(hRvoid bitmap_from_arr64 (unsigned long *bitmap, const u64 *buf, unsigned int nbits)h]h)}(hQvoid bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM?ubh)}(h h]h }(hjͥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj̥hM?ubj)}(hbitmap_from_arr64h]j)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hjߥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۥubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj̥hM?ubj/)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j5)}(hunsigned long *bitmaph](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitmaph]hbitmap}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst u64 *bufh](j;)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hu64h]hu64}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j)}jsjsbc.bitmap_from_arr64asbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hj˦hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjǦubh)}(h h]h }(hj٦hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjǦubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjǦubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjǦubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjǦubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj̥hM?ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj̥hM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̥hM?hjhhubj)}(hhh]j)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM?hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̥hM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMChjIubj)}(hhh](j")}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j()}(h``unsigned long *bitmap``h]j.)}(hjnh]hunsigned long *bitmap}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM@hjhubjD)}(hhh]j)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM@hjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhM@hjeubj")}(hH``const u64 *buf`` array of u64 (in host byte order), the source bitmap h](j()}(h``const u64 *buf``h]j.)}(hjh]hconst u64 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMAhjubjD)}(hhh]j)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMAhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMAhjeubj")}(h3``unsigned int nbits`` number of bits in **bitmap**h](j()}(h``unsigned int nbits``h]j.)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjާubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMChjڧubjD)}(hhh]j)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMBhjubah}(h]h ]h"]h$]h&]uh1jChjڧubeh}(h]h ]h"]h$]h&]uh1j!hjhMChjeubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhjKhhhNhNubh)}(hhh](h)}(hPvoid bitmap_to_arr64 (u64 *buf, const unsigned long *bitmap, unsigned int nbits)h]h)}(hOvoid bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM]ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhM]ubj)}(hbitmap_to_arr64h]j)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjVhM]ubj/)}(h;(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j5)}(hu64 *bufh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjksbc.bitmap_to_arr64asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjèhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hconst unsigned long *bitmaph](j;)}(hjh]hconst}(hjܨhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjبubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjبubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjبubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjبubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjبubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjبubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjبubj)}(hbitmaph]hbitmap}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjبubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubh)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjVhM]ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhM]ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhM]hj=hhubj)}(hhh]j)}(h2copy the contents of bitmap to a u64 array of bitsh]h2copy the contents of bitmap to a u64 array of bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM]hjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhM]ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjϩjjϩjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj٩h]h Parameters}(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:84: ./lib/bitmap.chMahjөubj)}(hhh](j")}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j()}(h ``u64 *buf``h]j.)}(hjh]hu64 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM^hjubjD)}(hhh]j)}(h2array of u64 (in host byte order), the dest bitmaph]h2array of u64 (in host byte order), the dest bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM^hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM^hjubj")}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j()}(h``const unsigned long *bitmap``h]j.)}(hj1h]hconst unsigned long *bitmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM_hj+ubjD)}(hhh]j)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhM_hjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhM_hjubj")}(h3``unsigned int nbits`` number of bits in **bitmap**h](j()}(h``unsigned int nbits``h]j.)}(hjjh]hunsigned int nbits}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chMahjdubjD)}(hhh]j)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjhhhNhNubj)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./lib/bitmap.chM`hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMahjubeh}(h]h ]h"]h$]h&]uh1jhjөubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hVint bitmap_pos_to_ord (const unsigned long *buf, unsigned int pos, unsigned int nbits)h]h)}(hUint bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](h)}(hinth]hint}(hjҪhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjΪhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjΪhhhjhMubj)}(hbitmap_pos_to_ordh]j)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjΪhhhjhMubj/)}(h@(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j5)}(hconst unsigned long *bufh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int posh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hposh]hpos}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hj٫hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjիubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjիubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjիubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjիubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjիubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjΪhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjʪhhhjhMubah}(h]jŪah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjǪhhubj)}(hhh]j)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjǪhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj]h]h Parameters}(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:87: ./lib/bitmap.chMhjWubj)}(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&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjvubjD)}(hhh]j)}(hpointer to a bitmaph]hpointer to a bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjsubj")}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j()}(h``unsigned int pos``h]j.)}(hjh]hunsigned int pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubjD)}(hhh]j)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hjάhhhNhNubj)}(h**buf**h]hbuf}(hj֬hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjάubh (0 <= }(hjάhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjάubh < }(hjάhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjάubh)}(hjάhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjʬhMhjˬubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjʬhMhjsubj")}(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&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubjD)}(hhh]j)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hj=hhhNhNubj)}(h**buf**h]hbuf}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubj)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjWubj)}(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 }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (of length }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA) to the ordinal of which set bit it is. If it is not set or if }(hjhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( is not a valid bit position, map to -1.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjWubj)}(hXPIf for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**.h](h1If for example, just bits 4 through 7 are set in }(hjڭhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubh, then }(hjڭhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hjڭhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubh% values will get mapped to -1. When }(hjڭhhhNhNubj)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubh" value 7 gets mapped to (returns) }(hjڭhhhNhNubj)}(h**ord**h]hord}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hjڭhhhNhNubj)}(h**buf**h]hbuf}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڭubh.}(hjڭhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjWubj)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hjUhhhNhNubj)}(h**bits**h]hbits}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh are valid positions in }(hjUhhhNhNubj)}(h**buf**h]hbuf}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_onto (C function) c.bitmap_ontohNtauh1hhjKhhhNhNubh)}(hhh](h)}(hpvoid bitmap_onto (unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h]h)}(hovoid bitmap_onto(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM/ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM/ubj)}(h bitmap_ontoh]j)}(h bitmap_ontoh]h bitmap_onto}(hjɮhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjŮubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM/ubj/)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݮubj5)}(hconst unsigned long *origh](j;)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(horigh]horig}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݮubj5)}(hconst unsigned long *relmaph](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjɯhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjׯhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrelmaph]hrelmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݮubj5)}(hunsigned int bitsh](h)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hinth]hint}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hbitsh]hbits}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjݮubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM/hjhhubj)}(hhh]j)}(h(translate one bitmap relative to anotherh]h(translate one bitmap relative to another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM3hjubj)}(hhh](j")}(h3``unsigned long *dst`` resulting translated bitmap h](j()}(h``unsigned long *dst``h]j.)}(hjذh]hunsigned long *dst}(hjڰhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjְubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM0hjҰubjD)}(hhh]j)}(hresulting translated bitmaph]hresulting translated bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jChjҰubeh}(h]h ]h"]h$]h&]uh1j!hjhM0hjϰubj")}(h;``const unsigned long *orig`` original untranslated bitmap h](j()}(h``const unsigned long *orig``h]j.)}(hjh]hconst unsigned long *orig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM1hj ubjD)}(hhh]j)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hM1hj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hM1hjϰubj")}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j()}(h``const unsigned long *relmap``h]j.)}(hjJh]hconst unsigned long *relmap}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM2hjDubjD)}(hhh]j)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hM2hj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hM2hjϰubj")}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j()}(h``unsigned int bits``h]j.)}(hjh]hunsigned int bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM3hj}ubjD)}(hhh]j)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM3hjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhM3hjϰubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM5hjubj)}(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 }(hjԱhhhNhNubj)}(h**dst**h]hdst}(hjܱhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubh3 iff there exists some m such that the n-th bit of }(hjԱhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubh is set, the m-th bit of }(hjԱhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubh is set, and the n-th bit of }(hjԱhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubh is also the m-th _set_ bit of }(hjԱhhhNhNubj)}(h **relmap**h]hrelmap}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjԱhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM5hjubj)}(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, }(hj=hhhNhNubj)}(h**orig**h]horig}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh is mapped onto (surjectively) }(hj=hhhNhNubj)}(h**dst**h]hdst}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh+, using the map { | the n-th bit of }(hj=hhhNhNubj)}(h **relmap**h]hrelmap}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh is the m-th set bit of }(hj=hhhNhNubj)}(h **relmap**h]hrelmap}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh }.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM;hjubj)}(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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF above bit number W, where W is the weight of (number of set bits in) }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh= are mapped nowhere. In particular, if for all bits m set in }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, m >= W, then }(hjhhhNhNubj)}(h**dst**h]hdst}(hjҲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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 }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, for each bit (m) set in }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM?hjubj)}(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():}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMbhj$ubjD)}(hhh](j)}(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 }(hj:hhhNhNubj)}(h **relmap**h]hrelmap}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh has bits 30-39 set, and }(hj:hhhNhNubj)}(h**orig**h]horig}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hj:hhhNhNubj)}(h**dst**h]hdst}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh* will have bits 31, 33, 35, 37 and 39 set.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMJhj7ubj)}(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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, it means turn on the bit in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMNhj7ubj)}(hXWhen bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**.h](hWhen bit 1 is set in }(hjֳhhhNhNubj)}(h**orig**h]horig}(hj޳hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubh8 (as in the above example), it means turn on the bit in }(hjֳhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubhB corresponding to whatever is the second bit that is turned on in }(hjֳhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubh. The second bit in }(hjֳhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hjֳhhhNhNubj)}(h**dst**h]hdst}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubh.}(hjֳhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMShj7ubj)}(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 }(hj?hhhNhNubj)}(h**dst**h]hdst}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hj?hhhNhNubj)}(h **relmap**h]hrelmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh), and the 4th, 6th, 8th and 10th bits of }(hj?hhhNhNubj)}(h**orig**h]horig}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMYhj7ubj)}(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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, it means turn on the bit in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC corresponding to whatever is the twelfth bit that is turned on in }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?. In the above example, there were only ten bits turned on in }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hj´hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% (30..39), so that bit 11 was set in }(hjhhhNhNubj)}(h**orig**h]horig}(hjԴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh had no affect on }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM^hj7ubeh}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj6hMbhj!ubj")}(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():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhj ubjD)}(hhh](j)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj!hhhNhNubj)}(h **relmap**h]hrelmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh has these ten bits set:}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMehjubjo)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hjBsbah}(h]h ]h"]h$]h&]j,j-uh1jnhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMghjubj)}(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.)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMihjubj)}(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 }(hj`hhhNhNubj)}(h**dst**h]hdst}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh result:}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMlhjubjo)}(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);}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMphjubj)}(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 }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh would be, for various }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" bitmap modulo ten (the weight of }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hjεhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh):}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMuhjubj<8)}(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]j)}(hhh]j)}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj)}(hhh](j1)}(hhh](j6)}(hhh]j)}(h**orig**h]j)}(hjh]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM|hjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(htmph]htmp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hM|hj6ubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h**dst**h]j)}(hjRh]hdst}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhj/hM|hjMubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h0h]h0}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM}hjvubah}(h]h ]h"]h$]h&]uh1j5hjsubj6)}(hhh]j)}(hj{h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM}hjubah}(h]h ]h"]h$]h&]uh1j5hjsubj6)}(hhh]j)}(h40h]h40}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM}hjubah}(h]h ]h"]h$]h&]uh1j5hjsubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h1h]h1}(hjǶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM~hjĶubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(hjɶh]h1}(hj߶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjնhM~hjܶubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h41h]h41}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjնhM~hjubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h9h]h9}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(hjh]h9}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj*ubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h95h]h95}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj@ubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h10h]h10}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhj`ubah}(h]h ]h"]h$]h&]uh1j5hj]ubj6)}(hhh]j)}(hj{h]h0}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjxubah}(h]h ]h"]h$]h&]uh1j5hj]ubj6)}(hhh]j)}(h 40 [#f1]_h](h40 }(hjhhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hjhhhNhNubah}(h]id1ah ]h"]h$]h&]autoKrefidf1docnamej8uh1jhjresolvedKubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubah}(h]h ]h"]h$]h&]uh1j5hj]ubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h1 3 5 7h]h1 3 5 7}(hjǷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjķubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h1 3 5 7h]h1 3 5 7}(hj߷hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjշhMhjܷubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h 41 43 48 61h]h 41 43 48 61}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjշhMhjubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj+ubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h40 41 42 43 45h]h40 41 42 43 45}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhjBubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 0 9 18 27h]h 0 9 18 27}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjbubah}(h]h ]h"]h$]h&]uh1j5hj_ubj6)}(hhh]j)}(h0 9 8 7h]h0 9 8 7}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjzubah}(h]h ]h"]h$]h&]uh1j5hj_ubj6)}(hhh]j)}(h 40 61 74 95h]h 40 61 74 95}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjubah}(h]h ]h"]h$]h&]uh1j5hj_ubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 0 10 20 30h]h 0 10 20 30}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(hj{h]h0}(hj̸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¸hMhjɸubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h40h]h40}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¸hMhj߸ubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 0 11 22 33h]h 0 11 22 33}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h0 1 2 3h]h0 1 2 3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h 40 41 42 43h]h 40 41 42 43}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj.ubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 0 12 24 36h]h 0 12 24 36}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjNubah}(h]h ]h"]h$]h&]uh1j5hjKubj6)}(hhh]j)}(h0 2 4 6h]h0 2 4 6}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhjfubah}(h]h ]h"]h$]h&]uh1j5hjKubj6)}(hhh]j)}(h 40 42 45 53h]h 40 42 45 53}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj}ubah}(h]h ]h"]h$]h&]uh1j5hjKubeh}(h]h ]h"]h$]h&]uh1j0hjubj1)}(hhh](j6)}(hhh]j)}(h 78 102 211h]h 78 102 211}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h1 2 8h]h1 2 8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j5hjubj6)}(hhh]j)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjϹhhhNhNubj)}(h[#f1]_h]h1}(hj׹hhhNhNubah}(h]id2ah ]h"]h$]h&]jKjjjj8uh1jhjϹjKubeh}(h]h ]h"]h$]h&]uh1jhjhMhj̹ubah}(h]h ]h"]h$]h&]uh1j5hjubeh}(h]h ]h"]h$]h&]uh1j0hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j;8hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chM{hjubeh}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj!ubeh}(h]h ]h"]h$]h&]uh1jhjubhfootnote)}(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&hhhNhNubj)}(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 }(hj9hhhNhNubj)}(h**dst**h]hdst}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh result would have been empty.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhj&ubeh}(h]jah ]h"]f1ah$]h&](jjejKjj8uh1j$hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubj)}(h`If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty.h](h If either of }(hjbhhhNhNubj)}(h**orig**h]horig}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh or }(hjbhhhNhNubj)}(h **relmap**h]hrelmap}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh is empty (no set bits), then }(hjbhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh will be returned empty.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubj)}(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 }(hjhhhNhNubj)}(h**orig**h]horig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh< are in positions m where m >= W, (where W is the weight of }(hjhhhNhNubj)}(h **relmap**h]hrelmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) then }(hjhhhNhNubj)}(h**dst**h]hdst}(hjӺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# will once again be returned empty.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubj)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' not set by the above rule are cleared.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_fold (C function) c.bitmap_foldhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hevoid bitmap_fold (unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h]h)}(hdvoid bitmap_fold(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hMubj)}(h bitmap_foldh]j)}(h bitmap_foldh]h bitmap_fold}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hMubj/)}(hT(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hconst unsigned long *origh](j;)}(hjh]hconst}(hjȻhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjĻubh)}(h h]h }(hjջhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĻubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĻubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĻubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĻubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĻubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĻubj)}(horigh]horig}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĻubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned int szh](h)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hinth]hint}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hszh]hsz}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hjʼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMhj"hhubj)}(hhh]j)}(h6fold larger bitmap into smaller, modulo specified sizeh]h6fold larger bitmap into smaller, modulo specified size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubj)}(hhh](j")}(h0``unsigned long *dst`` resulting smaller bitmap h](j()}(h``unsigned long *dst``h]j.)}(hj5h]hunsigned long *dst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhj/ubjD)}(hhh]j)}(hresulting smaller bitmaph]hresulting smaller bitmap}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhMhj,ubj")}(h5``const unsigned long *orig`` original larger bitmap h](j()}(h``const unsigned long *orig``h]j.)}(hjnh]hconst unsigned long *orig}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjhubjD)}(hhh]j)}(horiginal larger bitmaph]horiginal larger bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj,ubj")}(h#``unsigned int sz`` specified size h](j()}(h``unsigned int sz``h]j.)}(hjh]hunsigned int sz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubjD)}(hhh]j)}(hspecified sizeh]hspecified size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj,ubj")}(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&]uh1j-hj޽ubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjڽubjD)}(hhh]j)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjڽubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubj)}(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 }(hj1hhhNhNubj)}(h**orig**h]horig}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh, set bit oldbit mod }(hj1hhhNhNubj)}(h**sz**h]hsz}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh in }(hj1hhhNhNubj)}(h**dst**h]hdst}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh. Clear all other bits in }(hj1hhhNhNubj)}(h**dst**h]hdst}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhY. See further the comment and Example [2] for bitmap_onto() for why and how to use this.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:87: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'bitmap_find_next_zero_area (C function)c.bitmap_find_next_zero_areahNtauh1hhjKhhhNhNubh)}(hhh](h)}(hunsigned long bitmap_find_next_zero_area (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h]h)}(hunsigned long bitmap_find_next_zero_area(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hlongh]hlong}(hjžhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhKubh)}(h h]h }(hjӾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hbitmap_find_next_zero_areah]j)}(hbitmap_find_next_zero_areah]hbitmap_find_next_zero_area}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(hh(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j5)}(hunsigned long *maph](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long sizeh](h)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long starth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj̿hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjڿhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nrh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnrh]hnr}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long align_maskh](h)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubh)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubjD)}(hhh]j)}(h!The address to base the search onh]h!The address to base the search on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKhjubj")}(h/``unsigned long size`` The bitmap size in bits h](j()}(h``unsigned long size``h]j.)}(hj.h]hunsigned long size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhj(ubjD)}(hhh]j)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChKhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChKhjubj")}(h<``unsigned long start`` The bitnumber to start searching at h](j()}(h``unsigned long start``h]j.)}(hjgh]hunsigned long start}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjaubjD)}(hhh]j)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hKhjubj")}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j()}(h``unsigned int nr``h]j.)}(hjh]hunsigned int nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubjD)}(hhh]j)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h:``unsigned long align_mask`` Alignment mask for zero area h](j()}(h``unsigned long align_mask``h]j.)}(hjh]hunsigned long align_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubjD)}(hhh]j)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubj)}(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 }(hj*hhhNhNubj)}(h**align_mask**h]h align_mask}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh 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 }(hj*hhhNhNubj)}(h**align_mask**h]h align_mask}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh% of 0 means no alignment is required.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hzbool bitmap_or_equal (const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h]h)}(hybool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](h)}(hjoh]hbool}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjhMubj)}(hbitmap_or_equalh]j)}(hbitmap_or_equalh]hbitmap_or_equal}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhhjhMubj/)}(he(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j5)}(hconst unsigned long *src1h](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrc1h]hsrc1}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *src2h](j;)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hsrc2h]hsrc2}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *src3h](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrc3h]hsrc3}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hinth]hint}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hnbitsh]hnbits}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjyhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj)}(hhh]j)}(h7Check whether the or of two bitmaps is equal to a thirdh]h7Check whether the or of two bitmaps is equal to a third}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hhh](j")}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j()}(h``const unsigned long *src1``h]j.)}(hjh]hconst unsigned long *src1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.)}(hjh]hconst unsigned long *src2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h/Pointer to bitmap 2 will be or'ed with bitmap 1h]h1Pointer to bitmap 2 will be or’ed with bitmap 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.)}(hj9h]hconst unsigned long *src3}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj3ubjD)}(hhh]j)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjRhhhNhNubj)}(h ***src1**h]h*src1}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh | }(hjRhhhNhNubj)}(h ***src2**h]h*src2}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjhhhNhNubj)}(h ***src1**h]h*src1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh | }(hjhhhNhNubj)}(h ***src2**h]h*src2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) == }(hjhhhNhNubj)}(h ***src3**h]h*src3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, false otherwise}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_scatter (C function)c.bitmap_scatterhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hqvoid bitmap_scatter (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]h)}(hpvoid bitmap_scatter(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhMubj)}(hbitmap_scatterh]j)}(hbitmap_scatterh]hbitmap_scatter}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjVhMubj/)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hconst unsigned long *maskh](j;)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjVhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjVhMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhj=hhubj)}(hhh]j)}(h,Scatter a bitmap according to the given maskh]h,Scatter a bitmap according to the given mask}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhjKhNhNubj)}(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**. 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. **Example** If **src** bitmap = 0x005a, with **mask** = 0x1313, **dst** will be 0x0302.h](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjSubj)}(hhh](j")}(h(``unsigned long *dst`` scattered bitmap h](j()}(h``unsigned long *dst``h]j.)}(hjxh]hunsigned long *dst}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjrubjD)}(hhh]j)}(hscattered bitmaph]hscattered bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubj")}(h-``const unsigned long *src`` gathered bitmap h](j()}(h``const unsigned long *src``h]j.)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(hgathered bitmaph]hgathered bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubj")}(hZ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap h](j()}(h``const unsigned long *mask``h]j.)}(hjh]hconst unsigned long *mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h;mask representing bits to assign to in the scattered bitmaph]h;mask representing bits to assign to in the scattered bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubj")}(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&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(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&]uh1jhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hj^h]h Description}(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:90: ./include/linux/bitmap.hhMhjSubj)}(hEScatters bitmap with sequential bits according to the given **mask**.h](h 0000000001011010 0001001100010011 0000001100000010}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjSubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM!hjSubj)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM#hjSubjo)}(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}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM%hjSubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM0hjSubj)}(h **Example**h]j)}(hjh]hExample}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM4hjSubj)}(hKIf **src** bitmap = 0x005a, with **mask** = 0x1313, **dst** will be 0x0302.h](hIf }(hj.hhhNhNubj)}(h**src**h]hsrc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh bitmap = 0x005a, with }(hj.hhhNhNubj)}(h**mask**h]hmask}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh = 0x1313, }(hj.hhhNhNubj)}(h**dst**h]hdst}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh will be 0x0302.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_gather (C function)c.bitmap_gatherhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hpvoid bitmap_gather (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]h)}(hovoid bitmap_gather(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMEubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMEubj)}(h bitmap_gatherh]j)}(h bitmap_gatherh]h bitmap_gather}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMEubj/)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *srch](j;)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hlongh]hlong}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst unsigned long *maskh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbitsh](h)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbitsh]hnbits}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMEubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj)}(hhh]j)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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**. 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. **Example** If **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMIhjubj)}(hhh](j")}(h'``unsigned long *dst`` gathered bitmap h](j()}(h``unsigned long *dst``h]j.)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMFhjubjD)}(hhh]j)}(hgathered bitmaph]hgathered bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMFhjubj")}(h.``const unsigned long *src`` scattered bitmap h](j()}(h``const unsigned long *src``h]j.)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMGhjubjD)}(hhh]j)}(hscattered bitmaph]hscattered bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhjubj")}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j()}(h``const unsigned long *mask``h]j.)}(hj5h]hconst unsigned long *mask}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMHhj/ubjD)}(hhh]j)}(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&]uh1jhjJhMHhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhMHhjubj")}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j()}(h``unsigned int nbits``h]j.)}(hjnh]hunsigned int nbits}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMIhjhubjD)}(hhh]j)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMKhjubj)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMKhjubj)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> 0000001100000010 0001001100010011 0000000000011010}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMMhjubj)}(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)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMQhjubj)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMShjubjo)}(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}hjCsbah}(h]h ]h"]h$]h&]j,j-uh1jnhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMUhjubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhM_hjubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMchjubj)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMghjubj)}(h **Example**h]j)}(hjh]hExample}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMmhjubj)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmap = 0x0302, with }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh = 0x1313, }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will be 0x001a.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hOvoid bitmap_release_region (unsigned long *bitmap, unsigned int pos, int order)h]h)}(hNvoid bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hbitmap_release_regionh]j)}(hbitmap_release_regionh]hbitmap_release_region}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j5)}(hunsigned long *bitmaph](h)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hbitmaph]hbitmap}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hunsigned int posh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hposh]hpos}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(h int orderh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]j)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjFjjFjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjJubj)}(hhh](j")}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j()}(h``unsigned long *bitmap``h]j.)}(hjoh]hunsigned long *bitmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjiubjD)}(hhh]j)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjfubj")}(h8``unsigned int pos`` beginning of bit region to release h](j()}(h``unsigned int pos``h]j.)}(hjh]hunsigned int pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjfubj")}(hD``int order`` region size (log base 2 of number of bits) to release h](j()}(h ``int order``h]j.)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjJubj)}(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).}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hOint bitmap_allocate_region (unsigned long *bitmap, unsigned int pos, int order)h]h)}(hNint bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order)h](h)}(hinth]hint}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhjohMubj)}(hbitmap_allocate_regionh]j)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]hhhjohMubj/)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j5)}(hunsigned long *bitmaph](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitmaph]hbitmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int posh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hposh]hpos}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int orderh](h)}(hinth]hint}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(horderh]horder}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj]hhhjohMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjVhhubj)}(hhh]j)}(hallocate bitmap regionh]hallocate bitmap region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hhh](j")}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j()}(h``unsigned long *bitmap``h]j.)}(hjh]hunsigned long *bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h9``unsigned int pos`` beginning of bit region to allocate h](j()}(h``unsigned int pos``h]j.)}(hj h]hunsigned int pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjubj")}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j()}(h ``int order``h]j.)}(hjFh]h int order}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj@ubjD)}(hhh]j)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hjhhhNhNubj.)}(h ``-EBUSY``h]h-EBUSY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh< if specified region wasn’t free (not all bits were zero).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhjKhhhNhNubh)}(hhh](h)}(hQint bitmap_find_free_region (unsigned long *bitmap, unsigned int bits, int order)h]h)}(hPint bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hbitmap_find_free_regionh]j)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j5)}(hunsigned long *bitmaph](h)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hbitmaph]hbitmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(hunsigned int bitsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(h int orderh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]j)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem region}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIjjIjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubj)}(hhh](j")}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j()}(h``unsigned long *bitmap``h]j.)}(hjrh]hunsigned long *bitmap}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjlubjD)}(hhh]j)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjiubj")}(h3``unsigned int bits`` number of bits in the bitmap h](j()}(h``unsigned int bits``h]j.)}(hjh]hunsigned int bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjiubj")}(hA``int order`` region size (log base 2 of number of bits) to find h](j()}(h ``int order``h]j.)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjiubeh}(h]h ]h"]h$]h&]uh1jhjMubj)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubj)}(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 }(hj5hhhNhNubj)}(h **bitmap**h]hbitmap}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh of }(hj5hhhNhNubj)}(h**bits**h]hbits}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hj5hhhNhNubj)}(h **order**h]horder}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubj)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌBITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhjKhhhNhNubh)}(hhh](h)}(hBITMAP_FROM_U64h]h)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]j)}(hjh]hBITMAP_FROM_U64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(h``BITMAP_FROM_U64 (n)``h]j.)}(hjh]hBITMAP_FROM_U64 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjKhhubj<8)}(h7Represent u64 value in the format suitable for bitmap. h]j)}(h6Represent u64 value in the format suitable for bitmap.h]h6Represent u64 value in the format suitable for bitmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjKhhubj)}(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](j)}(h**Parameters**h]j)}(hj,h]h Parameters}(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:90: ./include/linux/bitmap.hhMhj&ubj)}(hhh]j")}(h``n`` u64 value h](j()}(h``n``h]j.)}(hjKh]hn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjEubjD)}(hhh]j)}(h u64 valueh]h u64 value}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhjKhhhNhNubh)}(hhh](h)}(h3void bitmap_from_u64 (unsigned long *dst, u64 mask)h]h)}(h2void bitmap_from_u64(unsigned long *dst, u64 mask)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hbitmap_from_u64h]j)}(hbitmap_from_u64h]hbitmap_from_u64}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(unsigned long *dst, u64 mask)h](j5)}(hunsigned long *dsth](h)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubj5)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj*sbc.bitmap_from_u64asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(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&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj8ubjD)}(hhh]j)}(hdestination bitmaph]hdestination bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhj5ubj")}(h``u64 mask`` source bitmap h](j()}(h ``u64 mask``h]j.)}(hjwh]hu64 mask}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjqubjD)}(hhh]j)}(h source bitmaph]h source bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(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 }(hjhhhNhNubj.)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh7 to read u64 mask, we will get the wrong word. That is }(hjhhhNhNubj.)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_read (C function) c.bitmap_readhNtauh1hhjKhhhNhNubh)}(hhh](h)}(h^unsigned long bitmap_read (const unsigned long *map, unsigned long start, unsigned long nbits)h]h)}(h]unsigned long bitmap_read(const unsigned long *map, unsigned long start, unsigned long nbits)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj)hMubh)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhj)hMubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj)hMubj)}(h bitmap_readh]j)}(h bitmap_readh]h bitmap_read}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj)hMubj/)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j5)}(hconst unsigned long *maph](j;)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(hunsigned long starth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubj5)}(hunsigned long nbitsh](h)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hnbitsh]hnbits}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj)hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhjhhubj)}(hhh]j)}(h-read a value of n-bits from the memory regionh]h-read a value of n-bits from the memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hhh](j")}(hA``const unsigned long *map`` address to the bitmap memory region h](j()}(h``const unsigned long *map``h]j.)}(hjh]hconst unsigned long *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h6``unsigned long start`` bit offset of the n-bit value h](j()}(h``unsigned long start``h]j.)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj/hMhjubj")}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j()}(h``unsigned long nbits``h]j.)}(hjSh]hunsigned long nbits}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjMubjD)}(hhh]j)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(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 }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bits located at the }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bit offset within the }(hjhhhNhNubj)}(h**map**h]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh memory region. For }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh = 0 and }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ > BITS_PER_LONG the return value is undefined.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbitmap_write (C function)c.bitmap_writehNtauh1hhjKhhhNhNubh)}(hhh](h)}(hevoid bitmap_write (unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h]h)}(hdvoid bitmap_write(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hMubj)}(h bitmap_writeh]j)}(h bitmap_writeh]h bitmap_write}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hMubj/)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j5)}(hunsigned long *maph](h)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned long valueh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned long starth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hstarth]hstart}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned long nbitsh](h)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMhj"hhubj)}(hhh]j)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjKhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjubj")}(h9``unsigned long value`` value to write, clamped to nbits h](j()}(h``unsigned long value``h]j.)}(hjFh]hunsigned long value}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhj@ubjD)}(hhh]j)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMhjubj")}(h6``unsigned long start`` bit offset of the n-bit value h](j()}(h``unsigned long start``h]j.)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjyubjD)}(hhh]j)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j()}(h``unsigned long nbits``h]j.)}(hjh]hunsigned long nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubjD)}(hhh]j)}(h4size of value in bits, nonzero, up to BITS_PER_LONG.h]h4size of value in bits, nonzero, up to BITS_PER_LONG.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hvbitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored:h](h,bitmap_write() behaves as-if implemented as }(hj hhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh+ calls of __assign_bit(), i.e. bits beyond }(hj hhhNhNubj)}(h **nbits**h]hnbits}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh are ignored:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj<8)}(h]for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h]j)}(hhh]j")}(hUfor (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h](j()}(h!for (bit = 0; bit < nbits; bit++)h]h!for (bit = 0; bit < nbits; bit++)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjCubjD)}(hhh]j)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjUhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1j;8hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubj)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == 0 and }(hjhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) > BITS_PER_LONG no writes are performed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./include/linux/bitmap.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjKhhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhjoahhhhhKFubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK^ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_option (C function) c.get_optionhNtauh1hhjhhhNhNubh)}(hhh](h)}(h&int get_option (char **str, int *pint)h]h)}(h%int get_option(char **str, int *pint)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK$ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK$ubj)}(h get_optionh]j)}(h get_optionh]h get_option}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK$ubj/)}(h(char **str, int *pint)h](j5)}(h char **strh](h)}(hcharh]hchar}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hstrh]hstr}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj!ubj5)}(h int *pinth](h)}(hinth]hint}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hpinth]hpint}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj!ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK$hjhhubj)}(hhh]j)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hX=**Parameters** ``char **str`` option string ``int *pint`` (optional output) integer value parsed from **str** 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK(hjubj)}(hhh](j")}(h``char **str`` option string h](j()}(h``char **str``h]j.)}(hj h]h char **str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK%hjubjD)}(hhh]j)}(h option stringh]h option string}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hK%hj"ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hK%hjubj")}(hX``int *pint`` (optional output) integer value parsed from **str** 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](j()}(h ``int *pint``h]j.)}(hjEh]h int *pint}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK4hj?ubjD)}(hhh](j)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hj^hhhNhNubj)}(h**str**h]hstr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK&hj[ubj)}(hRRead an int from an option string; if available accept a subsequent comma as well.h]hRRead an int from an option string; if available accept a subsequent comma as well.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK(hj[ubj)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hjhhhNhNubj)}(h**pint**h]hpint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU is NULL the function can be used as a validator of the current option in the string.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK+hj[ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK.hj[ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhK4hj[ubeh}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhK4hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_options (C function) c.get_optionshNtauh1hhjhhhNhNubh)}(hhh](h)}(h:char * get_options (const char *str, int nints, int *ints)h]h)}(h8char *get_options(const char *str, int nints, int *ints)h](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKSubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKSubj)}(h get_optionsh]j)}(h get_optionsh]h get_options}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKSubj/)}(h'(const char *str, int nints, int *ints)h](j5)}(hconst char *strh](j;)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hcharh]hchar}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubj5)}(h int nintsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnintsh]hnints}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubj5)}(h int *intsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hintsh]hints}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKSubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKShjhhubj)}(hhh]j)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKShj&hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjhNhNubj)}(hXh**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) 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. **Return** 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](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKWhjEubj)}(hhh](j")}(h(``const char *str`` String to be parsed h](j()}(h``const char *str``h]j.)}(hjjh]hconst char *str}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKThjdubjD)}(hhh]j)}(hString to be parsedh]hString to be parsed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKThjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhKThjaubj")}(h$``int nints`` size of integer array h](j()}(h ``int nints``h]j.)}(hjh]h int nints}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKUhjubjD)}(hhh]j)}(hsize of integer arrayh]hsize of integer array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKUhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKUhjaubj")}(hX``int *ints`` integer array (must have room for at least one element) 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. h](j()}(h ``int *ints``h]j.)}(hjh]h int *ints}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK_hjubjD)}(hhh](j)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKVhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKXhjubj)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjhhhNhNubj)}(h **nints**h]hnints}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- is 0, the function just validates the given }(hjhhhNhNubj)}(h**str**h]hstr}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA and returns the amount of parseable integers as described below.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chK^hjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK_hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKahjEubj<8)}(hX 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](j)}(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 }(hjthhhNhNubj)}(h**str**h]hstr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKahjpubj)}(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 }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is completely parseable).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./lib/cmdline.chKdhjpubeh}(h]h ]h"]h$]h&]uh1j;8hjhKahjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmemparse (C function) c.memparsehNtauh1hhjhhhNhNubh)}(hhh](h)}(hhjubjD)}(hhh]j)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hM>hj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hM>hj/ubj")}(hB``const void *priv`` third argument passed to comparison function h](j()}(h``const void *priv``h]j.)}(hjUh]hconst void *priv}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:108: ./lib/sort.chM?hjOubjD)}(hhh]j)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhM?hjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhM?hj/ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:108: ./lib/sort.chMAhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:108: ./lib/sort.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_sort (C function) c.list_sorthNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid list_sort (void *priv, struct list_head *head, list_cmp_func_t cmp)h]h)}(hGvoid list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKcubj)}(h list_sorth]j)}(h list_sorth]h list_sort}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKcubj/)}(h9(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j5)}(h void *privh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprivh]hpriv}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hhh]j)}(h list_headh]h list_head}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]j)}jsjsb c.list_sortasbuh1hhjPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hlist_cmp_func_t cmph](h)}(hhh]j)}(hlist_cmp_func_th]hlist_cmp_func_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.list_sortasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmph]hcmp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKchjhhubj)}(hhh]j)}(h sort a listh]h sort a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKchjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./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.)}(hj`h]h void *priv}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKdhjZubjD)}(hhh]j)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hjyhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjuhKdhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhKdhjWubj")}(h,``struct list_head *head`` the list to sort h](j()}(h``struct list_head *head``h]j.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKehjubjD)}(hhh]j)}(hthe list to sorth]hthe list to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKehjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKehjWubj")}(h9``list_cmp_func_t cmp`` the elements comparison function h](j()}(h``list_cmp_func_t cmp``h]j.)}(hjh]hlist_cmp_func_t cmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKfhjubjD)}(hhh]j)}(h the elements comparison functionh]h the elements comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKfhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKfhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhhj;ubj)}(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 }(hj1hhhNhNubj)}(h**cmp**h]hcmp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh must return > 0 if }(hj1hhhNhNubj)}(h**a**h]ha}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh should sort after }(hj1hhhNhNubj)}(h**b**h]hb}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh (”}(hj1hhhNhNubj)}(h**a**h]ha}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh > }(hj1hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh0” if you want an ascending sort), and <= 0 if }(hj1hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh should sort before }(hj1hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh }(hj1hhhNhNubhemphasis)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhq their original order should be preserved. It is always called with the element that came first in the input in }(hj1hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhL, and list_sort is a stable sort, so it is not necessary to distinguish the }(hj1hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh < }(hj1hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh and }(hj1hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh == }(hj1hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh cases.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhhj;ubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh, }(hj,hhhNhNubj)}(h**b**h]hb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh') must return the opposite sign of cmp(}(hj,hhhNhNubj)}(h**b**h]hb}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh, }hj,sbj)}(h**a**h]ha}(hjjhhhNhNubah}(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}(hjhhhNhNubah}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKohj;ubj)}(hXThis is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).h](h&This is compatible with two styles of }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKvhj;ubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chK|hj;ubjo)}(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&]j,j-uh1jnhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chK~hj;ubj)}(hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.h]hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(hhh](j)}(hCThe state of bit k-1 (when k == 0, consider bit -1 always set), andh]j)}(hjh]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). h]j)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhj;ubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubj)}(hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h]hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/list_sort.chKhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhjoahhhhhKjubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKsubj)}(h INTRODUCTIONh]h INTRODUCTION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chK hj hhubj<8)}(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]j)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKhj-ubah}(h]h ]h"]h$]h&]uh1j;8hj?hKhj hhubj)}(h ARCHITECTUREh]h ARCHITECTURE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKhj hhubjo)}(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)}hjUsbah}(h]h ]h"]h$]h&]j,j-jfjgnonejh}uh1jnhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKhj hhubj)}(hUSAGEh]hUSAGE}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chK6hj hhubj<8)}(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](j)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chK8hjuubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKAhjuubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKIhjuubeh}(h]h ]h"]h$]h&]uh1j;8hjhK8hj hhubj)}(h EXAMPLE::h]hEXAMPLE:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKLhj hhubjo)}(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&]j,j-uh1jnhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./lib/textsearch.chKNhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ textsearch_register (C function)c.textsearch_registerhNtauh1hhj hhhNhNubh)}(hhh](h)}(h,int textsearch_register (struct ts_ops *ops)h]h)}(h+int textsearch_register(struct ts_ops *ops)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(htextsearch_registerh]j)}(htextsearch_registerh]htextsearch_register}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct ts_ops *ops)h]j5)}(hstruct ts_ops *opsh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hts_opsh]hts_ops}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsjsbc.textsearch_registerasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hregister a textsearch moduleh]hregister a textsearch module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented. Returns 0 or -EEXISTS if another module has already registered with same name.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubj)}(hhh]j")}(h/``struct ts_ops *ops`` operations lookup table h](j()}(h``struct ts_ops *ops``h]j.)}(hjh]hstruct ts_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubjD)}(hhh]j)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubj)}(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 }(hj5hhhNhNubj.)}(h``name``h]hname}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubhw set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubj)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhj hhhNhNubh)}(hhh](h)}(h.int textsearch_unregister (struct ts_ops *ops)h]h)}(h-int textsearch_unregister(struct ts_ops *ops)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(htextsearch_unregisterh]j)}(htextsearch_unregisterh]htextsearch_unregister}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct ts_ops *ops)h]j5)}(hstruct ts_ops *opsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.textsearch_unregisterasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}hhhjhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjzhhubj)}(hhh]j)}(hunregister a textsearch moduleh]hunregister a textsearch module}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjBhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhj hNhNubj)}(hXu**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration. Returns 0 on success or -ENOENT if no matching textsearch registration was found.h](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjaubj)}(hhh]j")}(h/``struct ts_ops *ops`` operations lookup table h](j()}(h``struct ts_ops *ops``h]j.)}(hjh]hstruct ts_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubjD)}(hhh]j)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjaubj)}(hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration.h](hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The }(hjhhhNhNubh)}(h :c:type:`ops`h]j.)}(hjh]hops}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8opsuh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubh? parameter must be the same as the one during the registration.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubj)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhj hhhNhNubh)}(hhh](h)}(h|unsigned int textsearch_find_continuous (struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h]h)}(h{unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](h)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhjFhKubh)}(hinth]hint}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhjFhKubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhjFhKubj)}(htextsearch_find_continuoush]j)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhhjFhKubj/)}(hT(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjwsbc.textsearch_find_continuousasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ts_state *stateh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hts_stateh]hts_state}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]jc.textsearch_find_continuousasbuh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstateh]hstate}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *datah](j;)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int lenh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhjFhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhjFhKubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhKhj-hhubj)}(hhh]j)}(h*search a pattern in continuous/linear datah]h*search a pattern in continuous/linear data}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJjjJjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjNubj)}(hhh](j")}(h0``struct ts_config *conf`` search configuration h](j()}(h``struct ts_config *conf``h]j.)}(hjsh]hstruct ts_config *conf}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjmubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubjD)}(hhh]j)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjjubj")}(h'``const void *data`` data to search in h](j()}(h``const void *data``h]j.)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubjD)}(hhh]j)}(hdata to search inh]hdata to search in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjjubj")}(h$``unsigned int len`` length of data h](j()}(h``unsigned int len``h]j.)}(hjh]hunsigned int len}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjubjD)}(hhh]j)}(hlength of datah]hlength of data}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hKhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjNubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjNubj)}(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 }(hj~hhhNhNubj.)}(h ``UINT_MAX``h]hUINT_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubh if no occurrence was found.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtextsearch_prepare (C function)c.textsearch_preparehNtauh1hhj hhhNhNubh)}(hhh](h)}(hzstruct ts_config * textsearch_prepare (const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h]h)}(hxstruct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jstextsearch_preparesbc.textsearch_prepareasbuh1hhjhhhjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(htextsearch_prepareh]j)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(hT(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j5)}(hconst char *algoh](j;)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hcharh]hchar}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(halgoh]halgo}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hconst void *patternh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hunsigned int lenh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hj+ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjG hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjI modnameN classnameNjwjz)}j}]jc.textsearch_prepareasbuh1hhj@ ubh)}(h h]h }(hje hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ ubj)}(hgfp_maskh]hgfp_mask}(hjs hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(h int flagsh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hPrepare a searchh]hPrepare a search}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj hNhNubj)}(hXZ**Parameters** ``const char *algo`` name of search algorithm ``const void *pattern`` pattern data ``unsigned int len`` length of pattern ``gfp_t gfp_mask`` allocation mask ``int flags`` search flags **Description** Looks up the search algorithm module and creates a new textsearch configuration for the specified pattern. 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. **Note** The format of the pattern may not be compatible between the various search algorithms.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:120: ./lib/textsearch.chKhj ubj)}(hhh](j")}(h.``const char *algo`` name of search algorithm h](j()}(h``const char *algo``h]j.)}(hj h]hconst char *algo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubjD)}(hhh]j)}(hname of search algorithmh]hname of search algorithm}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj( hKhj) ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj( hKhj ubj")}(h%``const void *pattern`` pattern data h](j()}(h``const void *pattern``h]j.)}(hjL h]hconst void *pattern}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJ ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhjF ubjD)}(hhh]j)}(h pattern datah]h pattern data}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja hKhjb ubah}(h]h ]h"]h$]h&]uh1jChjF ubeh}(h]h ]h"]h$]h&]uh1j!hja hKhj ubj")}(h'``unsigned int len`` length of pattern h](j()}(h``unsigned int len``h]j.)}(hj h]hunsigned int len}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubjD)}(hhh]j)}(hlength of patternh]hlength of pattern}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubj")}(h#``gfp_t gfp_mask`` allocation mask h](j()}(h``gfp_t gfp_mask``h]j.)}(hj h]hgfp_t gfp_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubjD)}(hhh]j)}(hallocation maskh]hallocation mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubj")}(h``int flags`` search flags h](j()}(h ``int flags``h]j.)}(hj h]h int flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubjD)}(hhh]j)}(h search flagsh]h search flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj2 h]h Description}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0 ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubj)}(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.}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chKhj ubj)}(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.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chMhj ubj)}(h**Note**h]j)}(hjh h]hNote}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chMhj ubj)}(hhh]j")}(hVThe 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&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chMhj ubjD)}(hhh]j)}(hthe various search algorithms.h]hthe various search algorithms.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj~ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtextsearch_destroy (C function)c.textsearch_destroyhNtauh1hhj hhhNhNubh)}(hhh](h)}(h0void textsearch_destroy (struct ts_config *conf)h]h)}(h/void textsearch_destroy(struct ts_config *conf)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chM3ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hM3ubj)}(htextsearch_destroyh]j)}(htextsearch_destroyh]htextsearch_destroy}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hM3ubj/)}(h(struct ts_config *conf)h]j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj" hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h ts_configh]h ts_config}(hj3 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0 ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5 modnameN classnameNjwjz)}j}]j)}jsj sbc.textsearch_destroyasbuh1hhj ubh)}(h h]h }(hjS hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hconfh]hconf}(hjn hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hM3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hM3ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM3hj hhubj)}(hhh]j)}(hdestroy a search configurationh]hdestroy a search configuration}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chM3hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration **Description** Releases all references of the configuration and frees up the memory.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:120: ./lib/textsearch.chM7hj ubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chM4hj ubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM4hj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hM4hj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj h]h Description}(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:120: ./lib/textsearch.chM6hj ubj)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:120: ./lib/textsearch.chM6hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtextsearch_next (C function)c.textsearch_nexthNtauh1hhj hhhNhNubh)}(hhh](h)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]h)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](h)}(hunsignedh]hunsigned}(hjY hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhK^ubh)}(h h]h }(hjh hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU hhhjg hK^ubh)}(hinth]hint}(hjv hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU hhhjg hK^ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU hhhjg hK^ubj)}(htextsearch_nexth]j)}(htextsearch_nexth]htextsearch_next}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjU hhhjg hK^ubj/)}(h0(struct ts_config *conf, struct ts_state *state)h](j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h ts_configh]h ts_config}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.textsearch_nextasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hconfh]hconf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct ts_state *stateh](j;)}(hj>h]hstruct}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hts_stateh]hts_state}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j c.textsearch_nextasbuh1hhj ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hstateh]hstate}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjU hhhjg hK^ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQ hhhjg hK^ubah}(h]jL ah ](jjeh"]h$]h&]jj)jhuh1hhjg hK^hjN hhubj)}(hhh]j)}(h continue searching for a patternh]h continue searching for a pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhK^hjhhubah}(h]h ]h"]h$]h&]uh1jhjN hhhjg hK^ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj hNhNubj)}(hXy**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Continues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state. Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKbhjubj)}(hhh](j")}(h0``struct ts_config *conf`` search configuration h](j()}(h``struct ts_config *conf``h]j.)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhK_hjubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK_hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK_hjubj")}(h(``struct ts_state *state`` search state h](j()}(h``struct ts_state *state``h]j.)}(hjh]hstruct ts_state *state}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhK`hjubjD)}(hhh]j)}(h search stateh]h search state}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hK`hj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hK`hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKbhjubj)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKbhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtextsearch_find (C function)c.textsearch_findhNtauh1hhj hhhNhNubh)}(hhh](h)}(hMunsigned int textsearch_find (struct ts_config *conf, struct ts_state *state)h]h)}(hLunsigned int textsearch_find(struct ts_config *conf, struct ts_state *state)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKuubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhKuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKuubj)}(htextsearch_findh]j)}(htextsearch_findh]htextsearch_find}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKuubj/)}(h0(struct ts_config *conf, struct ts_state *state)h](j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ts_configh]h ts_config}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j)}jsjsbc.textsearch_findasbuh1hhjubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ts_state *stateh](j;)}(hj>h]hstruct}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jAc.textsearch_findasbuh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKuubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKuhjhhubj)}(hhh]j)}(hstart searching for a patternh]hstart searching for a pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKuubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Returns the position of first occurrence of the pattern or UINT_MAX if no match was found.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./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&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKvhj5ubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhKvhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhKvhj2ubj")}(h(``struct ts_state *state`` search state h](j()}(h``struct ts_state *state``h]j.)}(hjth]hstruct ts_state *state}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKwhjnubjD)}(hhh]j)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKwhjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhKwhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKyhjubj)}(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&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhj hhhNhNubh)}(hhh](h)}(h6void * textsearch_get_pattern (struct ts_config *conf)h]h)}(h4void *textsearch_get_pattern(struct ts_config *conf)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(htextsearch_get_patternh]j)}(htextsearch_get_patternh]htextsearch_get_pattern}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct ts_config *conf)h]j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj:ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hhh]j)}(h ts_configh]h ts_config}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj^modnameN classnameNjwjz)}j}]j)}jsj$sbc.textsearch_get_patternasbuh1hhj:ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hreturn head of the patternh]hreturn head of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhj hNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjubj)}(hhh]j")}(h/``struct ts_config *conf`` search configurationh](j()}(h``struct ts_config *conf``h]j.)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhj hhhNhNubh)}(hhh](h)}(h@unsigned int textsearch_get_pattern_len (struct ts_config *conf)h]h)}(h?unsigned int textsearch_get_pattern_len(struct ts_config *conf)h](h)}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhKubh)}(hinth]hint}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhjjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhKubj)}(htextsearch_get_pattern_lenh]j)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjjhKubj/)}(h(struct ts_config *conf)h]j5)}(hstruct ts_config *confh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.textsearch_get_pattern_lenasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjjhKubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhKhjQhhubj)}(hhh]j)}(hreturn length of the patternh]hreturn length of the pattern}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhj5hhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhj hNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](j)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjTubj)}(hhh]j")}(h/``struct ts_config *conf`` search configurationh](j()}(h``struct ts_config *conf``h]j.)}(hjyh]hstruct ts_config *conf}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjsubjD)}(hhh]j)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:123: ./include/linux/textsearch.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhjoahhhhhKsubeh}(h]basic-kernel-library-functionsah ]h"]basic kernel library functionsah$]h&]uh1hhhhhhhhK5ubh)}(hhh](h)}(hCRC and Math Functions in Linuxh]hCRC and Math Functions in Linux}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcheck_add_overflow (C macro)c.check_add_overflowhNtauh1hhjhhhNhNubh)}(hhh](h)}(hcheck_add_overflowh]h)}(hcheck_add_overflowh]j)}(hcheck_add_overflowh]j)}(hjh]hcheck_add_overflow}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK9ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK9hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK9ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj5jj5jjjuh1hhhhjhNhNubj)}(h ``check_add_overflow (a, b, d)``h]j.)}(hj;h]hcheck_add_overflow (a, b, d)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK;hjhhubj<8)}(h*Calculate addition with overflow checking h]j)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK9hjQubah}(h]h ]h"]h$]h&]uh1j;8hjchK9hjhhubj)}(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](j)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK=hjjubj)}(hhh](j")}(h``a`` first addend h](j()}(h``a``h]j.)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK:hjubjD)}(hhh]j)}(h first addendh]h first addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK:hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK:hjubj")}(h``b`` second addend h](j()}(h``b``h]j.)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK;hjubjD)}(hhh]j)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK;hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK;hjubj")}(h``d`` pointer to store sum h](j()}(h``d``h]j.)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK>hjjubj)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK>hjjubj)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhY holds the results of the attempted addition, regardless of whether wrap-around occurred.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK@hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrapping_add (C macro)c.wrapping_addhNtauh1hhjhhhNhNubh)}(hhh](h)}(h wrapping_addh]h)}(h wrapping_addh]j)}(h wrapping_addh]j)}(hjh]h wrapping_add}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKGubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKGubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``wrapping_add (type, a, b)``h]j.)}(hjh]hwrapping_add (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKIhjhhubj<8)}(h*Intentionally perform a wrapping addition h]j)}(h)Intentionally perform a wrapping additionh]h)Intentionally perform a wrapping addition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKGhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKGhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKKhjubj)}(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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKHhj"ubjD)}(hhh]j)}(htype for result of calculationh]htype for result of calculation}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hKHhj>ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj=hKHhjubj")}(h``a`` first addend h](j()}(h``a``h]j.)}(hjah]ha}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKIhj[ubjD)}(hhh]j)}(h first addendh]h first addend}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhKIhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhKIhjubj")}(h``b`` second addend h](j()}(h``b``h]j.)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKJhjubjD)}(hhh]j)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKJhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKLhjubj)}(hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h]hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrapping_assign_add (C macro)c.wrapping_assign_addhNtauh1hhjhhhNhNubh)}(hhh](h)}(hwrapping_assign_addh]h)}(hwrapping_assign_addh]j)}(hwrapping_assign_addh]j)}(hjh]hwrapping_assign_add}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKWubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hKWubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj1hKWhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hKWubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjJjjJjjjuh1hhhhjhNhNubj)}(h%``wrapping_assign_add (var, offset)``h]j.)}(hjPh]h!wrapping_assign_add (var, offset)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKYhjhhubj<8)}(h6Intentionally perform a wrapping increment assignment h]j)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKWhjfubah}(h]h ]h"]h$]h&]uh1j;8hjxhKWhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK[hjubj)}(hhh](j")}(h#``var`` variable to be incremented h](j()}(h``var``h]j.)}(hjh]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKXhjubjD)}(hhh]j)}(hvariable to be incrementedh]hvariable to be incremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKXhjubj")}(h``offset`` amount to add h](j()}(h ``offset``h]j.)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKYhjubjD)}(hhh]j)}(h amount to addh]h amount to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKYhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKYhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK[hjubj)}(hIncrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Increments }(hj.hhhNhNubj)}(h**var**h]hvar}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh by }(hj.hhhNhNubj)}(h **offset**h]hoffset}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh2 with wrap-around. Returns the resulting value of }(hj.hhhNhNubj)}(h**var**h]hvar}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh+. Will not trip any wrap-around sanitizers.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK[hjubj)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjshhhNhNubj)}(h**var**h]hvar}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhK^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcheck_sub_overflow (C macro)c.check_sub_overflowhNtauh1hhjhhhNhNubh)}(hhh](h)}(hcheck_sub_overflowh]h)}(hcheck_sub_overflowh]j)}(hcheck_sub_overflowh]j)}(hjh]hcheck_sub_overflow}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKgubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKghjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKgubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h ``check_sub_overflow (a, b, d)``h]j.)}(hjh]hcheck_sub_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKihjhhubj<8)}(h-Calculate subtraction with overflow checking h]j)}(h,Calculate subtraction with overflow checkingh]h,Calculate subtraction with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKghjubah}(h]h ]h"]h$]h&]uh1j;8hjhKghjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./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&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhhj8ubjD)}(hhh]j)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShKhhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShKhhj5ubj")}(h/``b`` subtrahend; value to subtract from **a** h](j()}(h``b``h]j.)}(hjwh]hb}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKihjqubjD)}(hhh]j)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhKihj5ubj")}(h"``d`` pointer to store difference h](j()}(h``d``h]j.)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKjhjubjD)}(hhh]j)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKjhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKjhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKlhjubj)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKlhjubj)}(hb***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ holds the results of the attempted subtraction, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrapping_sub (C macro)c.wrapping_subhNtauh1hhjhhhNhNubh)}(hhh](h)}(h wrapping_subh]h)}(h wrapping_subh]j)}(h wrapping_subh]j)}(hjUh]h wrapping_sub}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjWhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKuubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjShhhjrhKuubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhKuhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhKuubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``wrapping_sub (type, a, b)``h]j.)}(hjh]hwrapping_sub (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKwhjhhubj<8)}(h-Intentionally perform a wrapping subtraction h]j)}(h,Intentionally perform a wrapping subtractionh]h,Intentionally perform a wrapping subtraction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKuhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKuhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKyhjubj)}(hhh](j")}(h(``type`` type for result of calculation h](j()}(h``type``h]j.)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKvhjubjD)}(hhh]j)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKvhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKvhjubj")}(h&``a`` minuend; value to subtract from h](j()}(h``a``h]j.)}(hjh]ha}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKwhjubjD)}(hhh]j)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hKwhj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hKwhjubj")}(h/``b`` subtrahend; value to subtract from **a** h](j()}(h``b``h]j.)}(hjWh]hb}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKxhjQubjD)}(hhh]j)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjphhhNhNubj)}(h**a**h]ha}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjlhKxhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhKxhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKzhjubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrapping_assign_sub (C macro)c.wrapping_assign_subhNtauh1hhjhhhNhNubh)}(hhh](h)}(hwrapping_assign_subh]h)}(hwrapping_assign_subh]j)}(hwrapping_assign_subh]j)}(hjh]hwrapping_assign_sub}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h%``wrapping_assign_sub (var, offset)``h]j.)}(hjh]h!wrapping_assign_sub (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(h2Intentionally perform a wrapping decrement assign h]j)}(h1Intentionally perform a wrapping decrement assignh]h1Intentionally perform a wrapping decrement assign}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj1ubah}(h]h ]h"]h$]h&]uh1j;8hjChKhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjJubj)}(hhh](j")}(h#``var`` variable to be decremented h](j()}(h``var``h]j.)}(hjoh]hvar}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjiubjD)}(hhh]j)}(hvariable to be decrementedh]hvariable to be decremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjfubj")}(h``offset`` amount to subtract h](j()}(h ``offset``h]j.)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubjD)}(hhh]j)}(hamount to subtracth]hamount to subtract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjJubj)}(hDecrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Decrements }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjhhhNhNubah}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjJubj)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj>hhhNhNubj)}(h**var**h]hvar}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcheck_mul_overflow (C macro)c.check_mul_overflowhNtauh1hhjhhhNhNubh)}(hhh](h)}(hcheck_mul_overflowh]h)}(hcheck_mul_overflowh]j)}(hcheck_mul_overflowh]j)}(hjyh]hcheck_mul_overflow}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjwhhhjhKubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h ``check_mul_overflow (a, b, d)``h]j.)}(hjh]hcheck_mul_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(h0Calculate multiplication with overflow checking h]j)}(h/Calculate multiplication with overflow checkingh]h/Calculate multiplication with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubj)}(hhh](j")}(h``a`` first factor h](j()}(h``a``h]j.)}(hj h]ha}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubjD)}(hhh]j)}(h first factorh]h first factor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h``b`` second factor h](j()}(h``b``h]j.)}(hjBh]hb}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj<ubjD)}(hhh]j)}(h second factorh]h second factor}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhKhjXubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hjWhKhjubj")}(h``d`` pointer to store product h](j()}(h``d``h]j.)}(hj{h]hd}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjuubjD)}(hhh]j)}(hpointer to store producth]hpointer to store product}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubj)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubj)}(he***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ holds the results of the attempted multiplication, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrapping_mul (C macro)c.wrapping_mulhNtauh1hhjhhhNhNubh)}(hhh](h)}(h wrapping_mulh]h)}(h wrapping_mulh]j)}(h wrapping_mulh]j)}(hj h]h wrapping_mul}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj/ hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj/ hKhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj/ hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjH jjH jjjuh1hhhhjhNhNubj)}(h``wrapping_mul (type, a, b)``h]j.)}(hjN h]hwrapping_mul (type, a, b)}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjL ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(h0Intentionally perform a wrapping multiplication h]j)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjd ubah}(h]h ]h"]h$]h&]uh1j;8hjv 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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj} ubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj ubjD)}(hhh]j)}(htype for result of calculationh]htype for result of calculation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubj")}(h``a`` first factor h](j()}(h``a``h]j.)}(hj h]ha}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj ubjD)}(hhh]j)}(h first factorh]h first factor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubj")}(h``b`` second factor h](j()}(h``b``h]j.)}(hj!h]hb}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubjD)}(hhh]j)}(h second factorh]h second factor}(hj-!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)!hKhj*!ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj)!hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj} ubj)}(h**Description**h]j)}(hjO!h]h Description}(hjQ!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj} ubj)}(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.}(hje!hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj} ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcheck_shl_overflow (C macro)c.check_shl_overflowhNtauh1hhjhhhNhNubh)}(hhh](h)}(hcheck_shl_overflowh]h)}(hcheck_shl_overflowh]j)}(hcheck_shl_overflowh]j)}(hj!h]hcheck_shl_overflow}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj!hKubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hKhj!hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!hhhj!hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj!jj!jjjuh1hhhhjhNhNubj)}(h ``check_shl_overflow (a, s, d)``h]j.)}(hj!h]hcheck_shl_overflow (a, s, d)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(h2Calculate a left-shifted value and check overflow h]j)}(h1Calculate a left-shifted value and check overflowh]h1Calculate a left-shifted value and check overflow}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubah}(h]h ]h"]h$]h&]uh1j;8hj!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](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubj)}(hhh](j")}(h``a`` Value to be shifted h](j()}(h``a``h]j.)}(hj"h]ha}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj"ubjD)}(hhh]j)}(hValue to be shiftedh]hValue to be shifted}(hj7"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3"hKhj4"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj3"hKhj"ubj")}(h"``s`` How many bits left to shift h](j()}(h``s``h]j.)}(hjW"h]hs}(hjY"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjU"ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjQ"ubjD)}(hhh]j)}(hHow many bits left to shifth]hHow many bits left to shift}(hjp"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl"hKhjm"ubah}(h]h ]h"]h$]h&]uh1jChjQ"ubeh}(h]h ]h"]h$]h&]uh1j!hjl"hKhj"ubj")}(h+``d`` Pointer to where to store the result h](j()}(h``d``h]j.)}(hj"h]hd}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj"ubjD)}(hhh]j)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hKhj"ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubj)}(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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh << }(hj"hhhNhNubj)}(h**s**h]hs}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh)}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubj)}(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}(hj.#hhhNhNubah}(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}(hjR#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&#ubh-’ doesn’t make sense. Example conditions:}(hj&#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]j)}(hjp#h](h‘}(hjr#hhhNhNubj)}(h**a**h]ha}(hjy#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr#ubh << }(hjr#hhhNhNubj)}(h**s**h]hs}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr#ubh*’ causes bits to be lost when stored in }(hjr#hhhNhNubj)}(h***d**h]h*d}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr#ubh.}(hjr#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjn#ubah}(h]h ]h"]h$]h&]uh1jhjk#ubj)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h]j)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h](h‘}(hj#hhhNhNubj)}(h**s**h]hs}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hj#hhhNhNubj)}(h**a**h]ha}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh << }(hj#hhhNhNubj)}(h**s**h]hs}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh’ is guaranteed to be 0.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj#ubah}(h]h ]h"]h$]h&]uh1jhjk#ubj)}(h'**a**' is negative.h]j)}(hj $h](h‘}(hj$hhhNhNubj)}(h**a**h]ha}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh’ is negative.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj $ubah}(h]h ]h"]h$]h&]uh1jhjk#ubj)}(h9'**a** << **s**' sets the sign bit, if any, in '***d**'. h]j)}(h8'**a** << **s**' sets the sign bit, if any, in '***d**'.h](h‘}(hj9$hhhNhNubj)}(h**a**h]ha}(hjA$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9$ubh << }(hj9$hhhNhNubj)}(h**s**h]hs}(hjS$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9$ubh%’ sets the sign bit, if any, in ‘}(hj9$hhhNhNubj)}(h***d**h]h*d}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9$ubh’.}(hj9$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj5$ubah}(h]h ]h"]h$]h&]uh1jhjk#ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hKhj!ubj)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hj$hhhNhNubj)}(h***d**h]h*d}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌoverflows_type (C macro)c.overflows_typehNtauh1hhjhhhNhNubh)}(hhh](h)}(hoverflows_typeh]h)}(hoverflows_typeh]j)}(hoverflows_typeh]j)}(hj$h]hoverflows_type}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj$hhhj$hKubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj$hhhj$hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj$jj$jjjuh1hhhhjhNhNubj)}(h``overflows_type (n, T)``h]j.)}(hj%h]hoverflows_type (n, T)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(hIhelper for checking the overflows between value, variables, or data type h]j)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj%ubah}(h]h ]h"]h$]h&]uh1j;8hj)%hKhjhhubj)}(hX**Parameters** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.h](j)}(h**Parameters**h]j)}(hj6%h]h Parameters}(hj8%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj0%ubj)}(hhh](j")}(h6``n`` source constant value or variable to be checked h](j()}(h``n``h]j.)}(hjU%h]hn}(hjW%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjS%ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjO%ubjD)}(hhh]j)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hjn%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj%hKhjk%ubah}(h]h ]h"]h$]h&]uh1jChjO%ubeh}(h]h ]h"]h$]h&]uh1j!hjj%hKhjL%ubj")}(h@``T`` destination variable or data type proposed to store **x** h](j()}(h``T``h]j.)}(hj%h]hT}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj%ubjD)}(hhh]j)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hj%hhhNhNubj)}(h**x**h]hx}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj%hKhjL%ubeh}(h]h ]h"]h$]h&]uh1jhj0%ubj)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj0%ubj)}(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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh. }(hj%hhhNhNubj)}(h**x**h]hx}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh and }(hj%hhhNhNubj)}(h**T**h]hT}(hj+&hhhNhNubah}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj0%ubj)}(h **Return**h]j)}(hjX&h]hReturn}(hjZ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj0%ubj)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hjn&hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj0%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcastable_to_type (C macro)c.castable_to_typehNtauh1hhjhhhNhNubh)}(hhh](h)}(hcastable_to_typeh]h)}(hcastable_to_typeh]j)}(hcastable_to_typeh]j)}(hj&h]hcastable_to_type}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj&hKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKhj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhj&hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj&jj&jjjuh1hhhhjhNhNubj)}(h``castable_to_type (n, T)``h]j.)}(hj&h]hcastable_to_type (n, T)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjhhubj<8)}(h8like __same_type(), but also allows for casted literals h]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj&ubah}(h]h ]h"]h$]h&]uh1j;8hj&hKhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj'ubj)}(hhh](j")}(h!``n`` variable or constant value h](j()}(h``n``h]j.)}(hj''h]hn}(hj)'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%'ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj!'ubjD)}(hhh]j)}(hvariable or constant valueh]hvariable or constant value}(hj@'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<'hKhj='ubah}(h]h ]h"]h$]h&]uh1jChj!'ubeh}(h]h ]h"]h$]h&]uh1j!hj<'hKhj'ubj")}(h``T`` variable or data type h](j()}(h``T``h]j.)}(hj`'h]hT}(hjb'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^'ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhjZ'ubjD)}(hhh]j)}(hvariable or data typeh]hvariable or data type}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju'hKhjv'ubah}(h]h ]h"]h$]h&]uh1jChjZ'ubeh}(h]h ]h"]h$]h&]uh1j!hju'hKhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubj)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj'ubj)}(hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument's type, it returns true. Otherwise, this falls back to __same_type().h]hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument’s type, it returns true. Otherwise, this falls back to __same_type().}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhKhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsize_mul (C function) c.size_mulhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0size_t size_mul (size_t factor1, size_t factor2)h]h)}(h/size_t size_mul(size_t factor1, size_t factor2)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j)}jssize_mulsb c.size_mulasbuh1hhj'hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj(hMubj)}(hsize_mulh]j)}(hj(h]hsize_mul}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj(hMubj/)}(h (size_t factor1, size_t factor2)h](j5)}(hsize_t factor1h](h)}(hhh]j)}(hsize_th]hsize_t}(hj5(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7(modnameN classnameNjwjz)}j}]j' c.size_mulasbuh1hhj.(ubh)}(h h]h }(hjS(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.(ubj)}(hfactor1h]hfactor1}(hja(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*(ubj5)}(hsize_t factor2h](h)}(hhh]j)}(hsize_th]hsize_t}(hj}(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j' c.size_mulasbuh1hhjv(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv(ubj)}(hfactor2h]hfactor2}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjv(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*(ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'hhhj(hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj(hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhj'hhubj)}(hhh]j)}(h;Calculate size_t multiplication with saturation at SIZE_MAXh]h;Calculate size_t multiplication with saturation at SIZE_MAX}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj(hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(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](j)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj(ubj)}(hhh](j")}(h ``size_t factor1`` first factor h](j()}(h``size_t factor1``h]j.)}(hj)h]hsize_t factor1}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj)ubjD)}(hhh]j)}(h first factorh]h first factor}(hj-)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj))hMhj*)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj))hMhj )ubj")}(h!``size_t factor2`` second factor h](j()}(h``size_t factor2``h]j.)}(hjM)h]hsize_t factor2}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjK)ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjG)ubjD)}(hhh]j)}(h second factorh]h second factor}(hjf)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb)hMhjc)ubah}(h]h ]h"]h$]h&]uh1jChjG)ubeh}(h]h ]h"]h$]h&]uh1j!hjb)hMhj )ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h **Return**h]j)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj(ubj)}(hcalculate **factor1** * **factor2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hj)hhhNhNubj)}(h **factor1**h]hfactor1}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh * }(hj)hhhNhNubj)}(h **factor2**h]hfactor2}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsize_add (C function) c.size_addhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0size_t size_add (size_t addend1, size_t addend2)h]h)}(h/size_t size_add(size_t addend1, size_t addend2)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jssize_addsb c.size_addasbuh1hhj)hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj*hMubj)}(hsize_addh]j)}(hj*h]hsize_add}(hj(*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$*ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj*hMubj/)}(h (size_t addend1, size_t addend2)h](j5)}(hsize_t addend1h](h)}(hhh]j)}(hsize_th]hsize_t}(hjF*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjC*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjH*modnameN classnameNjwjz)}j}]j* c.size_addasbuh1hhj?*ubh)}(h h]h }(hjd*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?*ubj)}(haddend1h]haddend1}(hjr*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;*ubj5)}(hsize_t addend2h](h)}(hhh]j)}(hsize_th]hsize_t}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]j* c.size_addasbuh1hhj*ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(haddend2h]haddend2}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;*ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj*hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj)hhhj*hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhj)hhubj)}(hhh]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj*hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj+ubj)}(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&]uh1j-hj#+ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj+ubjD)}(hhh]j)}(h first addendh]h first addend}(hj>+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:+hMhj;+ubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hj:+hMhj+ubj")}(h!``size_t addend2`` second addend h](j()}(h``size_t addend2``h]j.)}(hj^+h]hsize_t addend2}(hj`+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\+ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjX+ubjD)}(hhh]j)}(h second addendh]h second addend}(hjw+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs+hMhjt+ubah}(h]h ]h"]h$]h&]uh1jChjX+ubeh}(h]h ]h"]h$]h&]uh1j!hjs+hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubj)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj+ubj)}(hcalculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hj+hhhNhNubj)}(h **addend1**h]haddend1}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh + }(hj+hhhNhNubj)}(h **addend2**h]haddend2}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsize_sub (C function) c.size_subhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3size_t size_sub (size_t minuend, size_t subtrahend)h]h)}(h2size_t size_sub(size_t minuend, size_t subtrahend)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jssize_subsb c.size_subasbuh1hhj+hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM(ubh)}(h h]h }(hj',hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj&,hM(ubj)}(hsize_subh]j)}(hj#,h]hsize_sub}(hj9,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5,ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj&,hM(ubj/)}(h#(size_t minuend, size_t subtrahend)h](j5)}(hsize_t minuendh](h)}(hhh]j)}(hsize_th]hsize_t}(hjW,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjY,modnameN classnameNjwjz)}j}]j!, c.size_subasbuh1hhjP,ubh)}(h h]h }(hju,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP,ubj)}(hminuendh]hminuend}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjL,ubj5)}(hsize_t subtrahendh](h)}(hhh]j)}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j!, c.size_subasbuh1hhj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(h subtrahendh]h subtrahend}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjL,ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj&,hM(ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj&,hM(ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj&,hM(hj+hhubj)}(hhh]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM(hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj&,hM(ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj -jj -jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM,hj-ubj)}(hhh](j")}(h*``size_t minuend`` value to subtract from h](j()}(h``size_t minuend``h]j.)}(hj6-h]hsize_t minuend}(hj8-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4-ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM)hj0-ubjD)}(hhh]j)}(hvalue to subtract fromh]hvalue to subtract from}(hjO-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK-hM)hjL-ubah}(h]h ]h"]h$]h&]uh1jChj0-ubeh}(h]h ]h"]h$]h&]uh1j!hjK-hM)hj--ubj")}(h9``size_t subtrahend`` value to subtract from **minuend** h](j()}(h``size_t subtrahend``h]j.)}(hjo-h]hsize_t subtrahend}(hjq-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjm-ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM*hji-ubjD)}(hhh]j)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hj-hhhNhNubj)}(h **minuend**h]hminuend}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM*hj-ubah}(h]h ]h"]h$]h&]uh1jChji-ubeh}(h]h ]h"]h$]h&]uh1j!hj-hM*hj--ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj)}(h **Return**h]j)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM,hj-ubj)}(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 }(hj-hhhNhNubj)}(h **minuend**h]hminuend}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh - }(hj-hhhNhNubj)}(h**subtrahend**h]h subtrahend}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubhX, 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.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM,hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌarray_size (C macro) c.array_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h array_sizeh]h)}(h array_sizeh]j)}(h array_sizeh]j)}(hj.h]h array_size}(hj%.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM>ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhj8.hM>ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj8.hM>hj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhj8.hM>ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjQ.jjQ.jjjuh1hhhhjhNhNubj)}(h``array_size (a, b)``h]j.)}(hjW.h]harray_size (a, b)}(hjY.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjU.ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM@hjhhubj<8)}(h'Calculate size of 2-dimensional array. h]j)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hjq.hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM>hjm.ubah}(h]h ]h"]h$]h&]uh1j;8hj.hM>hjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two **Description** Calculates size of 2-dimensional array: **a** * **b**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](j)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMBhj.ubj)}(hhh](j")}(h``a`` dimension one h](j()}(h``a``h]j.)}(hj.h]ha}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM?hj.ubjD)}(hhh]j)}(h dimension oneh]h dimension one}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hM?hj.ubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hj.hM?hj.ubj")}(h``b`` dimension two h](j()}(h``b``h]j.)}(hj.h]hb}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM@hj.ubjD)}(hhh]j)}(h dimension twoh]h dimension two}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hM@hj.ubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hj.hM@hj.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubj)}(h**Description**h]j)}(hj/h]h Description}(hj!/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMBhj.ubj)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hj5/hhhNhNubj)}(h**a**h]ha}(hj=/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5/ubh * }(hj5/hhhNhNubj)}(h**b**h]hb}(hjO/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5/ubh.}(hj5/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMBhj.ubj)}(h **Return**h]j)}(hjj/h]hReturn}(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:133: ./include/linux/overflow.hhMDhj.ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMDhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌarray3_size (C macro) c.array3_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h array3_sizeh]h)}(h array3_sizeh]j)}(h array3_sizeh]j)}(hj/h]h array3_size}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMJubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj/hhhj/hMJubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMJhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMJubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj/jj/jjjuh1hhhhjhNhNubj)}(h``array3_size (a, b, c)``h]j.)}(hj/h]harray3_size (a, b, c)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMLhjhhubj<8)}(h'Calculate size of 3-dimensional array. h]j)}(h&Calculate size of 3-dimensional array.h]h&Calculate size of 3-dimensional array.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMJhj/ubah}(h]h ]h"]h$]h&]uh1j;8hj 0hMJhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMNhj0ubj)}(hhh](j")}(h``a`` dimension one h](j()}(h``a``h]j.)}(hj90h]ha}(hj;0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj70ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMKhj30ubjD)}(hhh]j)}(h dimension oneh]h dimension one}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN0hMKhjO0ubah}(h]h ]h"]h$]h&]uh1jChj30ubeh}(h]h ]h"]h$]h&]uh1j!hjN0hMKhj00ubj")}(h``b`` dimension two h](j()}(h``b``h]j.)}(hjr0h]hb}(hjt0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjp0ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMLhjl0ubjD)}(hhh]j)}(h dimension twoh]h dimension two}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMLhj0ubah}(h]h ]h"]h$]h&]uh1jChjl0ubeh}(h]h ]h"]h$]h&]uh1j!hj0hMLhj00ubj")}(h``c`` dimension three h](j()}(h``c``h]j.)}(hj0h]hc}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMMhj0ubjD)}(hhh]j)}(hdimension threeh]hdimension three}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMMhj0ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj0hMMhj00ubeh}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMOhj0ubj)}(h>Calculates size of 3-dimensional array: **a** * **b** * **c**.h](h(Calculates size of 3-dimensional array: }(hj0hhhNhNubj)}(h**a**h]ha}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh * }(hj0hhhNhNubj)}(h**b**h]hb}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh * }hj0sbj)}(h**c**h]hc}(hj(1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMOhj0ubj)}(h **Return**h]j)}(hjC1h]hReturn}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMQhj0ubj)}(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.}(hjY1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMQhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌflex_array_size (C macro)c.flex_array_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(hflex_array_sizeh]h)}(hflex_array_sizeh]j)}(hflex_array_sizeh]j)}(hj1h]hflex_array_size}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMWubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj1hMWubah}(h]j{1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMWhj}1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}1hhhj1hMWubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj1jj1jjjuh1hhhhjhNhNubj)}(h&``flex_array_size (p, member, count)``h]j.)}(hj1h]h"flex_array_size (p, member, count)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMYhjhhubj<8)}(hICalculate size of a flexible array member within an enclosing structure. h]j)}(hHCalculate size of a flexible array member within an enclosing structure.h]hHCalculate size of a flexible array member within an enclosing structure.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMWhj1ubah}(h]h ]h"]h$]h&]uh1j;8hj1hMWhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM[hj1ubj)}(hhh](j")}(h ``p`` Pointer to the structure. h](j()}(h``p``h]j.)}(hj2h]hp}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMYhj 2ubjD)}(hhh]j)}(hPointer to the structure.h]hPointer to the structure.}(hj+2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'2hMYhj(2ubah}(h]h ]h"]h$]h&]uh1jChj 2ubeh}(h]h ]h"]h$]h&]uh1j!hj'2hMYhj 2ubj")}(h.``member`` Name of the flexible array member. h](j()}(h ``member``h]j.)}(hjK2h]hmember}(hjM2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI2ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMZhjE2ubjD)}(hhh]j)}(h"Name of the flexible array member.h]h"Name of the flexible array member.}(hjd2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`2hMZhja2ubah}(h]h ]h"]h$]h&]uh1jChjE2ubeh}(h]h ]h"]h$]h&]uh1j!hj`2hMZhj 2ubj")}(h+``count`` Number of elements in the array. h](j()}(h ``count``h]j.)}(hj2h]hcount}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM[hj~2ubjD)}(hhh]j)}(h Number of elements in the array.h]h Number of elements in the array.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM[hj2ubah}(h]h ]h"]h$]h&]uh1jChj~2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hM[hj 2ubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM]hj1ubj)}(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 }(hj2hhhNhNubj)}(h **count**h]hcount}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh number of }(hj2hhhNhNubj)}(h **member**h]hmember}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh# elements, at the end of structure }(hj2hhhNhNubj)}(h**p**h]hp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM]hj1ubj)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM`hj1ubj)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hj23hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM`hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstruct_size (C macro) c.struct_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h struct_sizeh]h)}(h struct_sizeh]j)}(h struct_sizeh]j)}(hj[3h]h struct_size}(hje3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]3hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjY3hhhjx3hMhubah}(h]jT3ah ](jjeh"]h$]h&]jj)jhuh1hhjx3hMhhjV3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjV3hhhjx3hMhubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj3jj3jjjuh1hhhhjhNhNubj)}(h"``struct_size (p, member, count)``h]j.)}(hj3h]hstruct_size (p, member, count)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMjhjhhubj<8)}(h:Calculate size of structure with trailing flexible array. h]j)}(h9Calculate size of structure with trailing flexible array.h]h9Calculate size of structure with trailing flexible array.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhhj3ubah}(h]h ]h"]h$]h&]uh1j;8hj3hMhhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMlhj3ubj)}(hhh](j")}(h ``p`` Pointer to the structure. h](j()}(h``p``h]j.)}(hj3h]hp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMihj3ubjD)}(hhh]j)}(hPointer to the structure.h]hPointer to the structure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMihj4ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj4hMihj3ubj")}(h%``member`` Name of the array member. h](j()}(h ``member``h]j.)}(hj$4h]hmember}(hj&4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"4ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMjhj4ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hj=4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj94hMjhj:4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj94hMjhj3ubj")}(h+``count`` Number of elements in the array. h](j()}(h ``count``h]j.)}(hj]4h]hcount}(hj_4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[4ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMkhjW4ubjD)}(hhh]j)}(h Number of elements in the array.h]h Number of elements in the array.}(hjv4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr4hMkhjs4ubah}(h]h ]h"]h$]h&]uh1jChjW4ubeh}(h]h ]h"]h$]h&]uh1j!hjr4hMkhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubj)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMmhj3ubj)}(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 }(hj4hhhNhNubj)}(h**p**h]hp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh followed by an array of }(hj4hhhNhNubj)}(h **count**h]hcount}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh number of }(hj4hhhNhNubj)}(h **member**h]hmember}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh elements.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMmhj3ubj)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMphj3ubj)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMphj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌstruct_size_t (C macro)c.struct_size_thNtauh1hhjhhhNhNubh)}(hhh](h)}(h struct_size_th]h)}(h struct_size_th]j)}(h struct_size_th]j)}(hj45h]h struct_size_t}(hj>5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj65hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMxubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj25hhhjQ5hMxubah}(h]j-5ah ](jjeh"]h$]h&]jj)jhuh1hhjQ5hMxhj/5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/5hhhjQ5hMxubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjj5jjj5jjjuh1hhhhjhNhNubj)}(h'``struct_size_t (type, member, count)``h]j.)}(hjp5h]h#struct_size_t (type, member, count)}(hjr5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjn5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMzhjhhubj<8)}(h9Calculate size of structure with trailing flexible array h]j)}(h8Calculate size of structure with trailing flexible arrayh]h8Calculate size of structure with trailing flexible array}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMxhj5ubah}(h]h ]h"]h$]h&]uh1j;8hj5hMxhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM|hj5ubj)}(hhh](j")}(h``type`` structure type name. h](j()}(h``type``h]j.)}(hj5h]htype}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMyhj5ubjD)}(hhh]j)}(hstructure type name.h]hstructure type name.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMyhj5ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hMyhj5ubj")}(h%``member`` Name of the array member. h](j()}(h ``member``h]j.)}(hj5h]hmember}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMzhj5ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hMzhj6ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj6hMzhj5ubj")}(h+``count`` Number of elements in the array. h](j()}(h ``count``h]j.)}(hj66h]hcount}(hj86hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj46ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM{hj06ubjD)}(hhh]j)}(h Number of elements in the array.h]h Number of elements in the array.}(hjO6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK6hM{hjL6ubah}(h]h ]h"]h$]h&]uh1jChj06ubeh}(h]h ]h"]h$]h&]uh1j!hjK6hM{hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(h**Description**h]j)}(hjq6h]h Description}(hjs6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM}hj5ubj)}(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 }(hj6hhhNhNubj)}(h**type**h]htype}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh followed by an array of }(hj6hhhNhNubj)}(h **count**h]hcount}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh number of }(hj6hhhNhNubj)}(h **member**h]hmember}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hj6hhhNhNubj)}(h**type**h]htype}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhM}hj5ubj)}(h **Return**h]j)}(hj6h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj5ubj)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__DEFINE_FLEX (C macro)c.__DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](h)}(h __DEFINE_FLEXh]h)}(h __DEFINE_FLEXh]j)}(h __DEFINE_FLEXh]j)}(hj7h]h __DEFINE_FLEX}(hj)7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!7hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj7hhhj<7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj<7hMhj7hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7hhhj<7hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjU7jjU7jjjuh1hhhhjhNhNubj)}(h9``__DEFINE_FLEX (type, name, member, count, trailer...)``h]j.)}(hj[7h]h5__DEFINE_FLEX (type, name, member, count, trailer...)}(hj]7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjY7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjhhubj<8)}(hchelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressions h]j)}(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}(hju7hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjq7ubah}(h]h ]h"]h$]h&]uh1j;8hj7hMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj7ubj)}(hhh](j")}(h:``type`` structure type name, including "struct" keyword. h](j()}(h``type``h]j.)}(hj7h]htype}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj7ubjD)}(hhh]j)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhj7ubj")}(h(``name`` Name for a variable to define. h](j()}(h``name``h]j.)}(hj7h]hname}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj7ubjD)}(hhh]j)}(hName for a variable to define.h]hName for a variable to define.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhj7ubj")}(h%``member`` Name of the array member. h](j()}(h ``member``h]j.)}(hj!8h]hmember}(hj#8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj8ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj68hMhj78ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj68hMhj7ubj")}(hG``count`` Number of elements in the array; must be compile-time const. h](j()}(h ``count``h]j.)}(hjZ8h]hcount}(hj\8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjX8ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjT8ubjD)}(hhh]j)}(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](j)}(h**Parameters**h]j)}(hj4;h]h Parameters}(hj6;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2;ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj.;ubj)}(hhh](j")}(h:``type`` structure type name, including "struct" keyword. h](j()}(h``type``h]j.)}(hjS;h]htype}(hjU;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQ;ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjM;ubjD)}(hhh]j)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjl;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh;hMhji;ubah}(h]h ]h"]h$]h&]uh1jChjM;ubeh}(h]h ]h"]h$]h&]uh1j!hjh;hMhjJ;ubj")}(h(``name`` Name for a variable to define. h](j()}(h``name``h]j.)}(hj;h]hname}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj;ubjD)}(hhh]j)}(hName for a variable to define.h]hName for a variable to define.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjJ;ubj")}(h%``member`` Name of the array member. h](j()}(h ``member``h]j.)}(hj;h]hmember}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj;ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjJ;ubj")}(hG``count`` Number of elements in the array; must be compile-time const. h](j()}(h ``count``h]j.)}(hj;h]hcount}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj;ubjD)}(hhh]j)}(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 }(hjO<hhhNhNubj)}(h**type**h]htype}(hjW<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubhD structure with a trailing flexible array member. Use __struct_size(}(hjO<hhhNhNubj)}(h**name**h]hname}(hji<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh?) to get compile-time size of it afterwards. Use __member_size(}(hjO<hhhNhNubj)}(h**name->member**h]h name->member}(hj{<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh) to get compile-time size of }(hjO<hhhNhNubj)}(h**name**h]hname}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjO<hhhNhNubj)}(h**name**h]hname}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh, }(hjO<hhhNhNubj)}(h **member**h]hmember}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh2) to get compile-time number of elements in array }(hjO<hhhNhNubj)}(h **member**h]hmember}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO<ubh.}(hjO<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj.;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEFINE_FLEX (C macro) c.DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](h)}(h DEFINE_FLEXh]h)}(h DEFINE_FLEXh]j)}(h DEFINE_FLEXh]j)}(hj<h]h DEFINE_FLEX}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj<hhhj=hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhj<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj<hhhj=hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj,=jj,=jjjuh1hhhhjhNhNubj)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j.)}(hj2=h]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)}(hj4=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjhhubj<8)}(hPDefine an on-stack instance of structure with a trailing flexible array member. h]j)}(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.}(hjL=hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjH=ubah}(h]h ]h"]h$]h&]uh1j;8hjZ=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](j)}(h**Parameters**h]j)}(hjg=h]h Parameters}(hji=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhja=ubj)}(hhh](j")}(h:``TYPE`` structure type name, including "struct" keyword. h](j()}(h``TYPE``h]j.)}(hj=h]hTYPE}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj=ubjD)}(hhh]j)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMhj}=ubj")}(h(``NAME`` Name for a variable to define. h](j()}(h``NAME``h]j.)}(hj=h]hNAME}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj=ubjD)}(hhh]j)}(hName for a variable to define.h]hName for a variable to define.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMhj}=ubj")}(h%``MEMBER`` Name of the array member. h](j()}(h ``MEMBER``h]j.)}(hj=h]hMEMBER}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj=ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj >hMhj>ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj >hMhj}=ubj")}(h-``COUNTER`` Name of the __counted_by member. h](j()}(h ``COUNTER``h]j.)}(hj1>h]hCOUNTER}(hj3>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/>ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj+>ubjD)}(hhh]j)}(h Name of the __counted_by member.h]h Name of the __counted_by member.}(hjJ>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF>hMhjG>ubah}(h]h ]h"]h$]h&]uh1jChj+>ubeh}(h]h ]h"]h$]h&]uh1j!hjF>hMhj}=ubj")}(hG``COUNT`` Number of elements in the array; must be compile-time const. h](j()}(h ``COUNT``h]j.)}(hjj>h]hCOUNT}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjh>ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjd>ubjD)}(hhh]j)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jChjd>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhj}=ubeh}(h]h ]h"]h$]h&]uh1jhja=ubj)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhja=ubj)}(hXeDefine 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'Define a zeroed, on-stack, instance of }(hj>hhhNhNubj)}(h**TYPE**h]hTYPE}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhD structure with a trailing flexible array member. Use __struct_size(}(hj>hhhNhNubj)}(h**NAME**h]hNAME}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh?) to get compile-time size of it afterwards. Use __member_size(}(hj>hhhNhNubj)}(h**NAME->member**h]h NAME->member}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh) to get compile-time size of }(hj>hhhNhNubj)}(h**NAME**h]hNAME}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hj>hhhNhNubj)}(h**name**h]hname}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh, }(hj>hhhNhNubj)}(h **member**h]hmember}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh2) to get compile-time number of elements in array }(hj>hhhNhNubj)}(h **member**h]hmember}(hj/?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhja=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌSTACK_FLEX_ARRAY_SIZE (C macro)c.STACK_FLEX_ARRAY_SIZEhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSTACK_FLEX_ARRAY_SIZEh]h)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hjb?h]hSTACK_FLEX_ARRAY_SIZE}(hjl?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjd?hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj`?hhhj?hMubah}(h]j[?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMhj]?hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]?hhhj?hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj?jj?jjjuh1hhhhjhNhNubj)}(h'``STACK_FLEX_ARRAY_SIZE (name, array)``h]j.)}(hj?h]h#STACK_FLEX_ARRAY_SIZE (name, array)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjhhubj<8)}(hThelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**. h]j)}(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 }(hj?hhhNhNubj)}(h **array**h]harray}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj?ubah}(h]h ]h"]h$]h&]uh1j;8hj?hMhjhhubj)}(h**Parameters** ``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). ``array`` Name of the array member.h](j)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj?ubj)}(hhh](j")}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j()}(h``name``h]j.)}(hj@h]hname}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj?ubjD)}(hhh]j)}(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().}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhj?ubj")}(h#``array`` Name of the array member.h](j()}(h ``array``h]j.)}(hj=@h]harray}(hj?@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;@ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhj7@ubjD)}(hhh]j)}(hName of the array member.h]hName of the array member.}(hjV@hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./include/linux/overflow.hhMhjS@ubah}(h]h ]h"]h$]h&]uh1jChj7@ubeh}(h]h ]h"]h$]h&]uh1j!hjR@hMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]arithmetic-overflow-checkingah ]h"]arithmetic overflow checkingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc4 (C function)c.crc4hNtauh1hhj@hhhNhNubh)}(hhh](h)}(h.uint8_t crc4 (uint8_t c, uint64_t x, int bits)h]h)}(h-uint8_t crc4(uint8_t c, uint64_t x, int bits)h](h)}(hhh]j)}(huint8_th]huint8_t}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jscrc4sbc.crc4asbuh1hhj@hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj@hKubj)}(hcrc4h]j)}(hj@h]hcrc4}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhj@hKubj/)}(h!(uint8_t c, uint64_t x, int bits)h](j5)}(h uint8_t ch](h)}(hhh]j)}(huint8_th]huint8_t}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j@c.crc4asbuh1hhj@ubh)}(h h]h }(hj#AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjqh]hc}(hj1AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(h uint64_t xh](h)}(hhh]j)}(huint64_th]huint64_t}(hjLAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNAmodnameN classnameNjwjz)}j}]j@c.crc4asbuh1hhjEAubh)}(h h]h }(hjjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEAubj)}(hxh]hx}(hjxAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(hint bitsh](h)}(hinth]hint}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hbitsh]hbits}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@hhhj@hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhj@hKubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hKhj@hhubj)}(hhh]j)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj@hNhNubj)}(hX<**Parameters** ``uint8_t c`` starting crc4 ``uint64_t x`` value to checksum ``int bits`` number of bits in **x** to checksum **Description** Returns the crc4 value of **x**, using polynomial 0b10111. The **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjAubj)}(hhh](j")}(h``uint8_t c`` starting crc4 h](j()}(h ``uint8_t c``h]j.)}(hjBh]h uint8_t c}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjBubjD)}(hhh]j)}(h starting crc4h]h starting crc4}(hj1BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-BhKhj.Bubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj-BhKhjBubj")}(h!``uint64_t x`` value to checksum h](j()}(h``uint64_t x``h]j.)}(hjQBh]h uint64_t x}(hjSBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOBubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjKBubjD)}(hhh]j)}(hvalue to checksumh]hvalue to checksum}(hjjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfBhKhjgBubah}(h]h ]h"]h$]h&]uh1jChjKBubeh}(h]h ]h"]h$]h&]uh1j!hjfBhKhjBubj")}(h1``int bits`` number of bits in **x** to checksum h](j()}(h ``int bits``h]j.)}(hjBh]hint bits}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjBubjD)}(hhh]j)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hjBhhhNhNubj)}(h**x**h]hx}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh to checksum}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhKhjBubeh}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjAubj)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hjBhhhNhNubj)}(h**x**h]hx}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh, using polynomial 0b10111.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjAubj)}(hhThe **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](hThe }(hjChhhNhNubj)}(h**x**h]hx}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh2 value is treated as left-aligned, and bits above }(hjChhhNhNubj)}(h**bits**h]hbits}(hj(ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh% are ignored in the crc calculations.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc4.chKhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc7_be (C function) c.crc7_behNtauh1hhj@hhhNhNubh)}(hhh](h)}(h1u8 crc7_be (u8 crc, const u8 *buffer, size_t len)h]h)}(h0u8 crc7_be(u8 crc, const u8 *buffer, size_t len)h](h)}(hhh]j)}(hu8h]hu8}(hjdChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfCmodnameN classnameNjwjz)}j}]j)}jscrc7_besb c.crc7_beasbuh1hhj]ChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK4ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ChhhjChK4ubj)}(hcrc7_beh]j)}(hjCh]hcrc7_be}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]ChhhjChK4ubj/)}(h&(u8 crc, const u8 *buffer, size_t len)h](j5)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jC c.crc7_beasbuh1hhjCubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hcrch]hcrc}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(hconst u8 *bufferh](j;)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hu8h]hu8}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]jC c.crc7_beasbuh1hhjCubh)}(h h]h }(hj7DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjEDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hbufferh]hbuffer}(hjRDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjnDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpDmodnameN classnameNjwjz)}j}]jC c.crc7_beasbuh1hhjgDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgDubj)}(hlenh]hlen}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj]ChhhjChK4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYChhhjChK4ubah}(h]jTCah ](jjeh"]h$]h&]jj)jhuh1hhjChK4hjVChhubj)}(hhh]j)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK4hjDhhubah}(h]h ]h"]h$]h&]uh1jhjVChhhjChK4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhj@hNhNubj)}(hXS**Parameters** ``u8 crc`` previous CRC7 value ``const u8 *buffer`` data pointer ``size_t len`` number of bytes in the buffer **Context** any **Description** Returns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK8hjDubj)}(hhh](j")}(h``u8 crc`` previous CRC7 value h](j()}(h ``u8 crc``h]j.)}(hjEh]hu8 crc}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc7.chK5hjDubjD)}(hhh]j)}(hprevious CRC7 valueh]hprevious CRC7 value}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhK5hjEubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hjEhK5hjDubj")}(h"``const u8 *buffer`` data pointer h](j()}(h``const u8 *buffer``h]j.)}(hj>Eh]hconst u8 *buffer}(hj@EhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKEhj:LubjD)}(hhh]j)}(hcrc table used for calculation.h]hcrc table used for calculation.}(hjYLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjULhKEhjVLubah}(h]h ]h"]h$]h&]uh1jChj:Lubeh}(h]h ]h"]h$]h&]uh1j!hjULhKEhj7Lubj")}(h,``const u8 *pdata`` pointer to data buffer. h](j()}(h``const u8 *pdata``h]j.)}(hjyLh]hconst u8 *pdata}(hj{LhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwLubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKFhjsLubjD)}(hhh]j)}(hpointer to data buffer.h]hpointer to data buffer.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhKFhjLubah}(h]h ]h"]h$]h&]uh1jChjsLubeh}(h]h ]h"]h$]h&]uh1j!hjLhKFhj7Lubj")}(h2``size_t nbytes`` number of bytes in data buffer. h](j()}(h``size_t nbytes``h]j.)}(hjLh]h size_t nbytes}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKGhjLubjD)}(hhh]j)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhKGhjLubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjLhKGhj7Lubj")}(h(``u8 crc`` previous returned crc8 value.h](j()}(h ``u8 crc``h]j.)}(hjLh]hu8 crc}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKIhjLubjD)}(hhh]j)}(hprevious returned crc8 value.h]hprevious returned crc8 value.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc8.chKHhjMubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjMhKIhj7Lubeh}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcrc16 (C function)c.crc16hNtauh1hhj@hhhNhNubh)}(hhh](h)}(h,u16 crc16 (u16 crc, const u8 *p, size_t len)h]h)}(h+u16 crc16(u16 crc, const u8 *p, size_t len)h](h)}(hhh]j)}(hu16h]hu16}(hjHMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJMmodnameN classnameNjwjz)}j}]j)}jscrc16sbc.crc16asbuh1hhjAMhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK/ubh)}(h h]h }(hjjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAMhhhjiMhK/ubj)}(hcrc16h]j)}(hjfMh]hcrc16}(hj|MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAMhhhjiMhK/ubj/)}(h"(u16 crc, const u8 *p, size_t len)h](j5)}(hu16 crch](h)}(hhh]j)}(hu16h]hu16}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]jdMc.crc16asbuh1hhjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hcrch]hcrc}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(h const u8 *ph](j;)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(hu8h]hu8}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]jdMc.crc16asbuh1hhjMubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hj)NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]hp}(hj6NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjQNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSNmodnameN classnameNjwjz)}j}]jdMc.crc16asbuh1hhjJNubh)}(h h]h }(hjoNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJNubj)}(hlenh]hlen}(hj}NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjAMhhhjiMhK/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=MhhhjiMhK/ubah}(h]j8Mah ](jjeh"]h$]h&]jj)jhuh1hhjiMhK/hj:Mhhubj)}(hhh]j)}(h&compute the CRC-16 for the data bufferh]h&compute the CRC-16 for the data buffer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK/hjNhhubah}(h]h ]h"]h$]h&]uh1jhj:MhhhjiMhK/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjNjjNjjjuh1hhhhj@hNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``const u8 *p`` data pointer ``size_t len`` number of bytes in the buffer **Description** Returns the updated CRC value.h](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK3hjNubj)}(hhh](j")}(h``u16 crc`` previous CRC value h](j()}(h ``u16 crc``h]j.)}(hjNh]hu16 crc}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK0hjNubjD)}(hhh]j)}(hprevious CRC valueh]hprevious CRC value}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhK0hjNubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjNhK0hjNubj")}(h``const u8 *p`` data pointer h](j()}(h``const u8 *p``h]j.)}(hj!Oh]h const u8 *p}(hj#OhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK1hjOubjD)}(hhh]j)}(h data pointerh]h data pointer}(hj:OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6OhK1hj7Oubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hj6OhK1hjNubj")}(h-``size_t len`` number of bytes in the buffer h](j()}(h``size_t len``h]j.)}(hjZOh]h size_t len}(hj\OhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXOubah}(h]h ]h"]h$]h&]uh1j'hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK2hjTOubjD)}(hhh]j)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjsOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoOhK2hjpOubah}(h]h ]h"]h$]h&]uh1jChjTOubeh}(h]h ]h"]h$]h&]uh1j!hjoOhK2hjNubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK4hjNubj)}(hReturns the updated CRC value.h]hReturns the updated CRC value.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc16.chK4hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj@hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ crc32_generic_shift (C function)c.crc32_generic_shifthNtauh1hhj@hhhNhNubh)}(hhh](h)}(h=u32 crc32_generic_shift (u32 crc, size_t len, u32 polynomial)h]h)}(hDetermine whether some value is a power of two, where zero is }(hjXhhhNhNubj)}(h*not*h]hnot}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh considered a power of two.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK(hjDXubj)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK+hjDXubj)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hjXhhhNhNubj)}(h**n**h]hn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh" is a power of 2, otherwise false.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK*hjDXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjaWhhhNhNubh)}(hhh](h)}(h4unsigned long __roundup_pow_of_two (unsigned long n)h]h)}(h3unsigned long __roundup_pow_of_two(unsigned long n)h](h)}(hunsignedh]hunsigned}(hj4YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0YhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK3ubh)}(h h]h }(hjCYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0YhhhjBYhK3ubh)}(hlongh]hlong}(hjQYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0YhhhjBYhK3ubh)}(h h]h }(hj_YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0YhhhjBYhK3ubj)}(h__roundup_pow_of_twoh]j)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hjqYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0YhhhjBYhK3ubj/)}(h(unsigned long n)h]j5)}(hunsigned long nh](h)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hj h]hn}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubah}(h]h ]h"]h$]h&]j,j-uh1j.hj0YhhhjBYhK3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,YhhhjBYhK3ubah}(h]j'Yah ](jjeh"]h$]h&]jj)jhuh1hhjBYhK3hj)Yhhubj)}(hhh]j)}(h round up to nearest power of twoh]h round up to nearest power of two}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK3hjYhhubah}(h]h ]h"]h$]h&]uh1jhj)YhhhjBYhK3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjZjjZjjjuh1hhhhjaWhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](j)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK7hj Zubj)}(hhh]j")}(h%``unsigned long n`` value to round uph](j()}(h``unsigned long n``h]j.)}(hj/Zh]hunsigned long n}(hj1ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-Zubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK9hj)ZubjD)}(hhh]j)}(hvalue to round uph]hvalue to round up}(hjHZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK4hjEZubah}(h]h ]h"]h$]h&]uh1jChj)Zubeh}(h]h ]h"]h$]h&]uh1j!hjDZhK9hj&Zubah}(h]h ]h"]h$]h&]uh1jhj Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjaWhhhNhNubh)}(hhh](h)}(h6unsigned long __rounddown_pow_of_two (unsigned long n)h]h)}(h5unsigned long __rounddown_pow_of_two(unsigned long n)h](h)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK=ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhK=ubh)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhjZhK=ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhK=ubj)}(h__rounddown_pow_of_twoh]j)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjZhK=ubj/)}(h(unsigned long n)h]j5)}(hunsigned long nh](h)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hj [hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hj h]hn}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubah}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjZhK=ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZhhhjZhK=ubah}(h]j|Zah ](jjeh"]h$]h&]jj)jhuh1hhjZhK=hj~Zhhubj)}(hhh]j)}(h"round down to nearest power of twoh]h"round down to nearest power of two}(hjC[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK=hj@[hhubah}(h]h ]h"]h$]h&]uh1jhj~ZhhhjZhK=ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[[jj[[jjjuh1hhhhjaWhNhNubj)}(h9**Parameters** ``unsigned long n`` value to round downh](j)}(h**Parameters**h]j)}(hje[h]h Parameters}(hjg[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc[ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKAhj_[ubj)}(hhh]j")}(h'``unsigned long n`` value to round downh](j()}(h``unsigned long n``h]j.)}(hj[h]hunsigned long n}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKChj~[ubjD)}(hhh]j)}(hvalue to round downh]hvalue to round down}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhK>hj[ubah}(h]h ]h"]h$]h&]uh1jChj~[ubeh}(h]h ]h"]h$]h&]uh1j!hj[hKChj{[ubah}(h]h ]h"]h$]h&]uh1jhj_[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌconst_ilog2 (C macro) c.const_ilog2hNtauh1hhjaWhhhNhNubh)}(hhh](h)}(h const_ilog2h]h)}(h const_ilog2h]j)}(h const_ilog2h]j)}(hj[h]h const_ilog2}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKGubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhj[hKGubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhj[hKGhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj[hKGubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj\jj\jjjuh1hhhhjaWhNhNubj)}(h``const_ilog2 (n)``h]j.)}(hj\h]hconst_ilog2 (n)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKIhjaWhhubj<8)}(h9log base 2 of 32-bit or a 64-bit constant unsigned value h]j)}(h8log base 2 of 32-bit or a 64-bit constant unsigned valueh]h8log base 2 of 32-bit or a 64-bit constant unsigned value}(hj.\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKGhj*\ubah}(h]h ]h"]h$]h&]uh1j;8hj<\hKGhjaWhhubj)}(h**Parameters** ``n`` parameter **Description** Use this where sparse expects a true constant expression, e.g. for array indices.h](j)}(h**Parameters**h]j)}(hjI\h]h Parameters}(hjK\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG\ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKKhjC\ubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjh\h]hn}(hjj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjf\ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKHhjb\ubjD)}(hhh]j)}(h parameterh]h parameter}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}\hKHhj~\ubah}(h]h ]h"]h$]h&]uh1jChjb\ubeh}(h]h ]h"]h$]h&]uh1j!hj}\hKHhj_\ubah}(h]h ]h"]h$]h&]uh1jhjC\ubj)}(h**Description**h]j)}(hj\h]h Description}(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:162: ./include/linux/log2.hhKJhjC\ubj)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKJhjC\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌilog2 (C macro)c.ilog2hNtauh1hhjaWhhhNhNubh)}(hhh](h)}(hilog2h]h)}(hilog2h]j)}(hilog2h]j)}(hj\h]hilog2}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhj\hKubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhj\hKhj\hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj\hhhj\hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj]jj]jjjuh1hhhhjaWhNhNubj)}(h ``ilog2 (n)``h]j.)}(hj]h]h ilog2 (n)}(hj ]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaWhhubj<8)}(h0log base 2 of 32-bit or a 64-bit unsigned value h]j)}(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}(hj8]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj4]ubah}(h]h ]h"]h$]h&]uh1j;8hjF]hKhjaWhhubj)}(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](j)}(h**Parameters**h]j)}(hjS]h]h Parameters}(hjU]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjM]ubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjr]h]hn}(hjt]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjp]ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjl]ubjD)}(hhh]j)}(h parameterh]h parameter}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1jChjl]ubeh}(h]h ]h"]h$]h&]uh1j!hj]hKhji]ubah}(h]h ]h"]h$]h&]uh1jhjM]ubj)}(h**Description**h]j)}(hj]h]h Description}(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:162: ./include/linux/log2.hhKhjM]ubj)}(hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator constructionh]hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator construction}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjM]ubj)}(hHselects the appropriately-sized optimised version depending on sizeof(n)h]hHselects the appropriately-sized optimised version depending on sizeof(n)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjM]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌroundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjaWhhhNhNubh)}(hhh](h)}(hroundup_pow_of_twoh]h)}(hroundup_pow_of_twoh]j)}(hroundup_pow_of_twoh]j)}(hj]h]hroundup_pow_of_two}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhj^hKubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhj^hKhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhj^hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj1^jj1^jjjuh1hhhhjaWhNhNubj)}(h``roundup_pow_of_two (n)``h]j.)}(hj7^h]hroundup_pow_of_two (n)}(hj9^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaWhhubj<8)}(h1round the given value up to nearest power of two h]j)}(h0round the given value up to nearest power of twoh]h0round the given value up to nearest power of two}(hjQ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjM^ubah}(h]h ]h"]h$]h&]uh1j;8hj_^hKhjaWhhubj)}(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](j)}(h**Parameters**h]j)}(hjl^h]h Parameters}(hjn^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjf^ubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hj^h]hn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj^ubjD)}(hhh]j)}(h parameterh]h parameter}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hKhj^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjf^ubj)}(h**Description**h]j)}(hj^h]h Description}(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:162: ./include/linux/log2.hhKhjf^ubj)}(hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjf^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjaWhhhNhNubh)}(hhh](h)}(hrounddown_pow_of_twoh]h)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]j)}(hj_h]hrounddown_pow_of_two}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj _ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhj"_hKubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj"_hKhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_hhhj"_hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj;_jj;_jjjuh1hhhhjaWhNhNubj)}(h``rounddown_pow_of_two (n)``h]j.)}(hjA_h]hrounddown_pow_of_two (n)}(hjC_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaWhhubj<8)}(h3round the given value down to nearest power of two h]j)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjW_ubah}(h]h ]h"]h$]h&]uh1j;8hji_hKhjaWhhubj)}(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](j)}(h**Parameters**h]j)}(hjv_h]h Parameters}(hjx_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjp_ubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hj_h]hn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj_ubjD)}(hhh]j)}(h parameterh]h parameter}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjp_ubj)}(h**Description**h]j)}(hj_h]h Description}(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:162: ./include/linux/log2.hhKhjp_ubj)}(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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjp_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌorder_base_2 (C macro)c.order_base_2hNtauh1hhjaWhhhNhNubh)}(hhh](h)}(h order_base_2h]h)}(h order_base_2h]j)}(h order_base_2h]j)}(hj`h]h order_base_2}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj `hhhj,`hKubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj,`hKhj `hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj `hhhj,`hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjE`jjE`jjjuh1hhhhjaWhNhNubj)}(h``order_base_2 (n)``h]j.)}(hjK`h]horder_base_2 (n)}(hjM`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI`ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaWhhubj<8)}(h8calculate the (rounded up) base 2 order of the argument h]j)}(h7calculate the (rounded up) base 2 order of the argumenth]h7calculate the (rounded up) base 2 order of the argument}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhja`ubah}(h]h ]h"]h$]h&]uh1j;8hjs`hKhjaWhhubj)}(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](j)}(h**Parameters**h]j)}(hj`h]h Parameters}(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:162: ./include/linux/log2.hhKhjz`ubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hj`h]hn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj`ubjD)}(hhh]j)}(h parameterh]h parameter}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hKhj`ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjz`ubj)}(h**Description**h]j)}(hj`h]h Description}(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:162: ./include/linux/log2.hhKhjz`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:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhj`ubjD)}(hhh]j)}(hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h]hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hjahKhj`ubah}(h]h ]h"]h$]h&]uh1jhjz`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbits_per (C macro) c.bits_perhNtauh1hhjaWhhhNhNubh)}(hhh](h)}(hbits_perh]h)}(hbits_perh]j)}(hbits_perh]j)}(hjDah]hbits_per}(hjNahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjFahhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjBahhhjaahKubah}(h]j=aah ](jjeh"]h$]h&]jj)jhuh1hhjaahKhj?ahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj?ahhhjaahKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjzajjzajjjuh1hhhhjaWhNhNubj)}(h``bits_per (n)``h]j.)}(hjah]h bits_per (n)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~aubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaWhhubj<8)}(h7calculate the number of bits required for the argument h]j)}(h6calculate the number of bits required for the argumenth]h6calculate the number of bits required for the argument}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubah}(h]h ]h"]h$]h&]uh1j;8hjahKhjaWhhubj)}(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](j)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubj)}(hhh]j")}(h``n`` parameter h](j()}(h``n``h]j.)}(hjah]hn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubjD)}(hhh]j)}(h parameterh]h parameter}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahKhjaubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hjahKhjaubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubj)}(hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.h]hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.}(hj%bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubj)}(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.}(hj4bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:162: ./include/linux/log2.hhKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjaWhhhNhNubeh}(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}(hjUbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRbhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌintlog2 (C function) c.intlog2hNtauh1hhjRbhhhNhNubh)}(hhh](h)}(h unsigned int intlog2 (u32 value)h]h)}(hunsigned int intlog2(u32 value)h](h)}(hunsignedh]hunsigned}(hj|bhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxbhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxbhhhjbhKubh)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxbhhhjbhKubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxbhhhjbhKubj)}(hintlog2h]j)}(hintlog2h]hintlog2}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxbhhhjbhKubj/)}(h (u32 value)h]j5)}(h u32 valueh](h)}(hhh]j)}(hu32h]hu32}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsjbsb c.intlog2asbuh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hvalueh]hvalue}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubah}(h]h ]h"]h$]h&]j,j-uh1j.hjxbhhhjbhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjtbhhhjbhKubah}(h]jobah ](jjeh"]h$]h&]jj)jhuh1hhjbhKhjqbhhubj)}(hhh]j)}(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}(hj0chhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhj-chhubah}(h]h ]h"]h$]h&]uh1jhjqbhhhjbhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHcjjHcjjjuh1hhhhjRbhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjRch]h Parameters}(hjTchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubj)}(hhh]j")}(h'``u32 value`` The value (must be != 0) h](j()}(h ``u32 value``h]j.)}(hjqch]h u32 value}(hjschhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjocubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjkcubjD)}(hhh]j)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchKhjcubah}(h]h ]h"]h$]h&]uh1jChjkcubeh}(h]h ]h"]h$]h&]uh1j!hjchKhjhcubah}(h]h ]h"]h$]h&]uh1jhjLcubj)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubj)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubj<8)}(h1intlog2(value) = intlog2(value * 2^x) - x * 2^24 h]j)}(h0intlog2(value) = intlog2(value * 2^x) - x * 2^24h]h0intlog2(value) = intlog2(value * 2^x) - x * 2^24}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjcubah}(h]h ]h"]h$]h&]uh1j;8hjchKhjLcubj)}(hSome usecase examples:h]hSome usecase examples:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubj<8)}(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](j)}(h'intlog2(8) will give 3 << 24 = 3 * 2^24h]h'intlog2(8) will give 3 << 24 = 3 * 2^24}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjcubj)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjcubj)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjcubeh}(h]h ]h"]h$]h&]uh1j;8hj dhKhjLcubj)}(h **Return**h]j)}(hj2dh]hReturn}(hj4dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0dubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubj)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hjHdhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhKhjLcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjRbhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌintlog10 (C function) c.intlog10hNtauh1hhjRbhhhNhNubh)}(hhh](h)}(h!unsigned int intlog10 (u32 value)h]h)}(h unsigned int intlog10(u32 value)h](h)}(hunsignedh]hunsigned}(hjwdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsdhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK$ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsdhhhjdhK$ubh)}(hinth]hint}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsdhhhjdhK$ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsdhhhjdhK$ubj)}(hintlog10h]j)}(hintlog10h]hintlog10}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjsdhhhjdhK$ubj/)}(h (u32 value)h]j5)}(h u32 valueh](h)}(hhh]j)}(hu32h]hu32}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsjdsb c.intlog10asbuh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hvalueh]hvalue}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubah}(h]h ]h"]h$]h&]j,j-uh1j.hjsdhhhjdhK$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjodhhhjdhK$ubah}(h]jjdah ](jjeh"]h$]h&]jj)jhuh1hhjdhK$hjldhhubj)}(hhh]j)}(h@computes log10 of a value; the result is shifted left by 24 bitsh]h@computes log10 of a value; the result is shifted left by 24 bits}(hj+ehhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK$hj(ehhubah}(h]h ]h"]h$]h&]uh1jhjldhhhjdhK$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCejjCejjjuh1hhhhjRbhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjMeh]h Parameters}(hjOehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjGeubj)}(hhh]j")}(h'``u32 value`` The value (must be != 0) h](j()}(h ``u32 value``h]j.)}(hjleh]h u32 value}(hjnehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjeubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK&hjfeubjD)}(hhh]j)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehK&hjeubah}(h]h ]h"]h$]h&]uh1jChjfeubeh}(h]h ]h"]h$]h&]uh1j!hjehK&hjceubah}(h]h ]h"]h$]h&]uh1jhjGeubj)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjGeubj)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK(hjGeubj<8)}(h4intlog10(value) = intlog10(value * 10^x) - x * 2^24 h]j)}(h3intlog10(value) = intlog10(value * 10^x) - x * 2^24h]h3intlog10(value) = intlog10(value * 10^x) - x * 2^24}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK*hjeubah}(h]h ]h"]h$]h&]uh1j;8hjehK*hjGeubj)}(hAn usecase example:h]hAn usecase example:}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK,hjGeubj<8)}(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<8)}(h,intlog10(1000) will give 3 << 24 = 3 * 2^24 h]j)}(h+intlog10(1000) will give 3 << 24 = 3 * 2^24h]h+intlog10(1000) will give 3 << 24 = 3 * 2^24}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK.hjeubah}(h]h ]h"]h$]h&]uh1j;8hj fhK.hjeubj)}(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}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK0hjeubeh}(h]h ]h"]h$]h&]uh1j;8hj fhK.hjGeubj)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hj&fhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK2hjGeubj)}(h **Return**h]j)}(hj7fh]hReturn}(hj9fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5fubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK4hjGeubj)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hjMfhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:168: ./include/linux/int_log.hhK4hjGeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjRbhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_pow (C function) c.int_powhNtauh1hhjRbhhhNhNubh)}(hhh](h)}(h(u64 int_pow (u64 base, unsigned int exp)h]h)}(h'u64 int_pow(u64 base, unsigned int exp)h](h)}(hhh]j)}(hu64h]hu64}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|fubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jsint_powsb c.int_powasbuh1hhjxfhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chK ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxfhhhjfhK ubj)}(hint_powh]j)}(hjfh]hint_pow}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxfhhhjfhK ubj/)}(h(u64 base, unsigned int exp)h](j5)}(hu64 baseh](h)}(hhh]j)}(hu64h]hu64}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]jf c.int_powasbuh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hbaseh]hbase}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hunsigned int exph](h)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hj$ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hinth]hint}(hj2ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hj@ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hexph]hexp}(hjNghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxfhhhjfhK ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjtfhhhjfhK ubah}(h]jofah ](jjeh"]h$]h&]jj)jhuh1hhjfhK hjqfhhubj)}(hhh]j)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjxghhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chK hjughhubah}(h]h ]h"]h$]h&]uh1jhjqfhhhjfhK ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhjRbhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjgubj)}(hhh](j")}(h:``u64 base`` base which will be raised to the given power h](j()}(h ``u64 base``h]j.)}(hjgh]hu64 base}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjgubjD)}(hhh]j)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghKhjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghKhjgubj")}(h+``unsigned int exp`` power to be raised to h](j()}(h``unsigned int exp``h]j.)}(hjgh]hunsigned int exp}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjgubjD)}(hhh]j)}(hpower to be raised toh]hpower to be raised to}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhKhjhubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhhKhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hj-hh]h Description}(hj/hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjgubj)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjChhhhNhNubj)}(h**base**h]hbase}(hjKhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChubh raised to the }(hjChhhhNhNubj)}(h**exp**h]hexp}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChubh power}(hjChhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:170: ./lib/math/int_pow.chKhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjRbhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_sqrt (C function) c.int_sqrthNtauh1hhjRbhhhNhNubh)}(hhh](h)}(h(unsigned long int_sqrt (unsigned long x)h]h)}(h'unsigned long int_sqrt(unsigned long x)h](h)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjhhKubh)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhjhhKubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjhhKubj)}(hint_sqrth]j)}(hint_sqrth]hint_sqrt}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhhjhhKubj/)}(h(unsigned long x)h]j5)}(hunsigned long xh](h)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hlongh]hlong}(hj ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjzAh]hx}(hj'ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhhjhhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhjhhKubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhKhjhhhubj)}(hhh]j)}(h computes the integer square rooth]h computes the integer square root}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjMihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhijjhijjjuh1hhhhjRbhNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))h](j)}(h**Parameters**h]j)}(hjrih]h Parameters}(hjtihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjliubj)}(hhh]j")}(h;``unsigned long x`` integer of which to calculate the sqrt h](j()}(h``unsigned long x``h]j.)}(hjih]hunsigned long x}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjiubjD)}(hhh]j)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihKhjiubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjliubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjliubj)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chKhjliubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjRbhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌint_sqrt64 (C function) c.int_sqrt64hNtauh1hhjRbhhhNhNubh)}(hhh](h)}(hu32 int_sqrt64 (u64 x)h]h)}(hu32 int_sqrt64(u64 x)h](h)}(hhh]j)}(hu32h]hu32}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}js int_sqrt64sb c.int_sqrt64asbuh1hhj jhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK-ubh)}(h h]h }(hj6jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj jhhhj5jhK-ubj)}(h int_sqrt64h]j)}(hj2jh]h int_sqrt64}(hjHjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj jhhhj5jhK-ubj/)}(h(u64 x)h]j5)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hjfjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhjmodnameN classnameNjwjz)}j}]j0j c.int_sqrt64asbuh1hhj_jubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_jubj)}(hjzAh]hx}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[jubah}(h]h ]h"]h$]h&]j,j-uh1j.hj jhhhj5jhK-ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj jhhhj5jhK-ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhj5jhK-hjjhhubj)}(hhh]j)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK-hjjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhj5jhK-ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjRbhNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK1hjjubj)}(hhh]j")}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j()}(h ``u64 x``h]j.)}(hjjh]hu64 x}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK3hjjubjD)}(hhh]j)}(h,64bit integer of which to calculate the sqrth]h,64bit integer of which to calculate the sqrt}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:173: ./lib/math/int_sqrt.chK/hjkubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjkhK3hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjRbhhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDivision Functionsh]hDivision Functions}(hjHkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEkhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdo_div (C macro)c.do_divhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hdo_divh]h)}(hdo_divh]j)}(hdo_divh]j)}(hjikh]hdo_div}(hjskhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjokubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkkhhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjgkhhhjkhK ubah}(h]jbkah ](jjeh"]h$]h&]jj)jhuh1hhjkhK hjdkhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdkhhhjkhK ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjkjjkjjjuh1hhhhjEkhNhNubj)}(h``do_div (n, base)``h]j.)}(hjkh]hdo_div (n, base)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK"hjEkhhubj<8)}(h>returns 2 values: calculate remainder and update new dividend h]j)}(h=returns 2 values: calculate remainder and update new dividendh]h=returns 2 values: calculate remainder and update new dividend}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK hjkubah}(h]h ]h"]h$]h&]uh1j;8hjkhK hjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjkubj)}(hhh](j")}(h*``n`` uint64_t dividend (will be updated) h](j()}(h``n``h]j.)}(hjkh]hn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'h`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK!hjkubjD)}(hhh]j)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhK!hjlubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjlhK!hjkubj")}(h``base`` uint32_t divisor h](j()}(h``base``h]j.)}(hj2lh]hbase}(hj4lhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0lubah}(h]h ]h"]h$]h&]uh1j'h`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK"hj,lubjD)}(hhh]j)}(huint32_t divisorh]huint32_t divisor}(hjKlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGlhK"hjHlubah}(h]h ]h"]h$]h&]uh1jChj,lubeh}(h]h ]h"]h$]h&]uh1j!hjGlhK"hjkubeh}(h]h ]h"]h$]h&]uh1jhjkubj)}(h**Description**h]j)}(hjmlh]h Description}(hjolhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjklubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjkubj)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjlhhhNhNubj.)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubh }(hjlhhhNhNubj.)}(h``n = n / base;``h]h n = n / base;}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubeh}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK$hjkubj)}(h **Return**h]j)}(hjlh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK(hjkubj)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK(hjkubj)}(h**NOTE**h]j)}(hjlh]hNOTE}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK*hjkubj)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hjlhhhNhNubj)}(h**n**h]hn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh5 is evaluated multiple times, beware of side effects!}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:179: ./include/asm-generic/div64.hhK*hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_u64_rem (C function) c.div_u64_remhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h;u64 div_u64_rem (u64 dividend, u32 divisor, u32 *remainder)h]h)}(h:u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)h](h)}(hhh]j)}(hu64h]hu64}(hj5mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7mmodnameN classnameNjwjz)}j}]j)}js div_u64_remsb c.div_u64_remasbuh1hhj.mhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKubh)}(h h]h }(hjWmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.mhhhjVmhKubj)}(h div_u64_remh]j)}(hjSmh]h div_u64_rem}(hjimhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjemubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.mhhhjVmhKubj/)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j5)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jQm c.div_u64_remasbuh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hdividendh]hdividend}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|mubj5)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jQm c.div_u64_remasbuh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hdivisorh]hdivisor}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|mubj5)}(hu32 *remainderh](h)}(hhh]j)}(hu32h]hu32}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]jQm c.div_u64_remasbuh1hhjnubh)}(h h]h }(hj5nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjCnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h remainderh]h remainder}(hjPnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|mubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj.mhhhjVmhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*mhhhjVmhKubah}(h]j%mah ](jjeh"]h$]h&]jj)jhuh1hhjVmhKhj'mhhubj)}(hhh]j)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hjznhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjwnhhubah}(h]h ]h"]h$]h&]uh1jhj'mhhhjVmhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhjEkhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubj)}(hhh](j")}(h)``u64 dividend`` unsigned 64bit dividend h](j()}(h``u64 dividend``h]j.)}(hjnh]h u64 dividend}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjnhKhjnubj")}(h'``u32 divisor`` unsigned 32bit divisor h](j()}(h``u32 divisor``h]j.)}(hjnh]h u32 divisor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ohKhj oubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hj ohKhjnubj")}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j()}(h``u32 *remainder``h]j.)}(hj-oh]hu32 *remainder}(hj/ohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+oubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj'oubjD)}(hhh]j)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hjFohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBohKhjCoubah}(h]h ]h"]h$]h&]uh1jChj'oubeh}(h]h ]h"]h$]h&]uh1j!hjBohKhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubj)}(h **Return**h]j)}(hjhoh]hReturn}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfoubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubj)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hj~ohhhNhNubj.)}(h``*remainder``h]h *remainder}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~oubh!, then returns dividend / divisor}(hj~ohhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubj)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_s64_rem (C function) c.div_s64_remhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h;s64 div_s64_rem (s64 dividend, s32 divisor, s32 *remainder)h]h)}(h:s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)h](h)}(hhh]j)}(hs64h]hs64}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}js div_s64_remsb c.div_s64_remasbuh1hhjohhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK!ubh)}(h h]h }(hj phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhj phK!ubj)}(h div_s64_remh]j)}(hjph]h div_s64_rem}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhj phK!ubj/)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hj;phhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8pubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=pmodnameN classnameNjwjz)}j}]jp c.div_s64_remasbuh1hhj4pubh)}(h h]h }(hjYphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4pubj)}(hdividendh]hdividend}(hjgphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4pubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0pubj5)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]jp c.div_s64_remasbuh1hhj|pubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|pubj)}(hdivisorh]hdivisor}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|pubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0pubj5)}(hs32 *remainderh](h)}(hhh]j)}(hs32h]hs32}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]jp c.div_s64_remasbuh1hhjpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h remainderh]h remainder}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0pubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhj phK!ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhj phK!ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhj phK!hjohhubj)}(hhh]j)}(h5signed 64bit divide with 32bit divisor with remainderh]h5signed 64bit divide with 32bit divisor with remainder}(hj.qhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK!hj+qhhubah}(h]h ]h"]h$]h&]uh1jhjohhhj phK!ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjFqjjFqjjjuh1hhhhjEkhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjPqh]h Parameters}(hjRqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNqubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK%hjJqubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hjoqh]h s64 dividend}(hjqqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmqubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK"hjiqubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhK"hjqubah}(h]h ]h"]h$]h&]uh1jChjiqubeh}(h]h ]h"]h$]h&]uh1j!hjqhK"hjfqubj")}(h%``s32 divisor`` signed 32bit divisor h](j()}(h``s32 divisor``h]j.)}(hjqh]h s32 divisor}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK#hjqubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhK#hjqubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjqhK#hjfqubj")}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j()}(h``s32 *remainder``h]j.)}(hjqh]hs32 *remainder}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK$hjqubjD)}(hhh]j)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhK$hjqubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjqhK$hjfqubeh}(h]h ]h"]h$]h&]uh1jhjJqubj)}(h **Return**h]j)}(hjrh]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK&hjJqubj)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hj2rhhhNhNubj.)}(h``*remainder``h]h *remainder}(hj:rhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2rubh!, then returns dividend / divisor}(hj2rhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK&hjJqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv64_u64_rem (C function)c.div64_u64_remhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]h)}(hhj.vubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjMvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIvhK>hjJvubah}(h]h ]h"]h$]h&]uh1jChj.vubeh}(h]h ]h"]h$]h&]uh1j!hjIvhK>hj+vubj")}(h'``u64 divisor`` unsigned 64bit divisor h](j()}(h``u64 divisor``h]j.)}(hjmvh]h u64 divisor}(hjovhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkvubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK?hjgvubjD)}(hhh]j)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhK?hjvubah}(h]h ]h"]h$]h&]uh1jChjgvubeh}(h]h ]h"]h$]h&]uh1j!hjvhK?hj+vubeh}(h]h ]h"]h$]h&]uh1jhjvubj)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKAhjvubj)}(hdividend / divisorh]hdividend / divisor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKAhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv64_s64 (C function) c.div64_s64hNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h)s64 div64_s64 (s64 dividend, s64 divisor)h]h)}(h(s64 div64_s64(s64 dividend, s64 divisor)h](h)}(hhh]j)}(hs64h]hs64}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}js div64_s64sb c.div64_s64asbuh1hhjvhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKIubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjwhKIubj)}(h div64_s64h]j)}(hjwh]h div64_s64}(hj$whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj wubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjwhKIubj/)}(h(s64 dividend, s64 divisor)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hjBwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDwmodnameN classnameNjwjz)}j}]j w c.div64_s64asbuh1hhj;wubh)}(h h]h }(hj`whhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;wubj)}(hdividendh]hdividend}(hjnwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7wubj5)}(h s64 divisorh](h)}(hhh]j)}(hs64h]hs64}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j w c.div64_s64asbuh1hhjwubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hdivisorh]hdivisor}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7wubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjwhKIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjwhKIubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjwhKIhjvhhubj)}(hhh]j)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKIhjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjwhKIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjEkhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** dividend / divisorh](j)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhjwubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hj!xh]h s64 dividend}(hj#xhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKJhjxubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj:xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6xhKJhj7xubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hj6xhKJhjxubj")}(h%``s64 divisor`` signed 64bit divisor h](j()}(h``s64 divisor``h]j.)}(hjZxh]h s64 divisor}(hj\xhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXxubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKKhjTxubjD)}(hhh]j)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjsxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoxhKKhjpxubah}(h]h ]h"]h$]h&]uh1jChjTxubeh}(h]h ]h"]h$]h&]uh1j!hjoxhKKhjxubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h **Return**h]j)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhjwubj)}(hdividend / divisorh]hdividend / divisor}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_u64 (C function) c.div_u64hNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h'u64 div_u64 (u64 dividend, u32 divisor)h]h)}(h&u64 div_u64(u64 dividend, u32 divisor)h](h)}(hhh]j)}(hu64h]hu64}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsdiv_u64sb c.div_u64asbuh1hhjxhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKtubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjxhKtubj)}(hdiv_u64h]j)}(hjxh]hdiv_u64}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj yubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjxhKtubj/)}(h(u64 dividend, u32 divisor)h](j5)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hj/yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,yubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1ymodnameN classnameNjwjz)}j}]jx c.div_u64asbuh1hhj(yubh)}(h h]h }(hjMyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(yubj)}(hdividendh]hdividend}(hj[yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(yubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$yubj5)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjwyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjyymodnameN classnameNjwjz)}j}]jx c.div_u64asbuh1hhjpyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpyubj)}(hdivisorh]hdivisor}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$yubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjxhKtubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjxhKtubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhKthjxhhubj)}(hhh]j)}(h(unsigned 64bit divide with 32bit divisorh]h(unsigned 64bit divide with 32bit divisor}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKthjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhKtubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjEkhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKxhjyubj)}(hhh](j")}(h)``u64 dividend`` unsigned 64bit dividend h](j()}(h``u64 dividend``h]j.)}(hjzh]h u64 dividend}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj zubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKuhjzubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj'zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#zhKuhj$zubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hj#zhKuhjzubj")}(h'``u32 divisor`` unsigned 32bit divisor h](j()}(h``u32 divisor``h]j.)}(hjGzh]h u32 divisor}(hjIzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEzubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKvhjAzubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj`zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\zhKvhj]zubah}(h]h ]h"]h$]h&]uh1jChjAzubeh}(h]h ]h"]h$]h&]uh1j!hj\zhKvhjzubeh}(h]h ]h"]h$]h&]uh1jhjyubj)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKxhjyubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKxhjyubj)}(h **Return**h]j)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK|hjyubj)}(hdividend / divisorh]hdividend / divisor}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhK|hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdiv_s64 (C function) c.div_s64hNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h's64 div_s64 (s64 dividend, s32 divisor)h]h)}(h&s64 div_s64(s64 dividend, s32 divisor)h](h)}(hhh]j)}(hs64h]hs64}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]j)}jsdiv_s64sb c.div_s64asbuh1hhjzhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhj{hKubj)}(hdiv_s64h]j)}(hj{h]hdiv_s64}(hj%{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhj{hKubj/)}(h(s64 dividend, s32 divisor)h](j5)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hjC{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjE{modnameN classnameNjwjz)}j}]j { c.div_s64asbuh1hhj<{ubh)}(h h]h }(hja{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<{ubj)}(hdividendh]hdividend}(hjo{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8{ubj5)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j { c.div_s64asbuh1hhj{ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hdivisorh]hdivisor}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8{ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhj{hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhj{hKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhj{hKhjzhhubj)}(hhh]j)}(h&signed 64bit divide with 32bit divisorh]h&signed 64bit divide with 32bit divisor}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhj{hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhjEkhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** dividend / divisorh](j)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj{ubj)}(hhh](j")}(h'``s64 dividend`` signed 64bit dividend h](j()}(h``s64 dividend``h]j.)}(hj"|h]h s64 dividend}(hj$|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj |ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj|ubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj;|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7|hKhj8|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj7|hKhj|ubj")}(h%``s32 divisor`` signed 32bit divisor h](j()}(h``s32 divisor``h]j.)}(hj[|h]h s32 divisor}(hj]|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjY|ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhjU|ubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjt|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp|hKhjq|ubah}(h]h ]h"]h$]h&]uh1jChjU|ubeh}(h]h ]h"]h$]h&]uh1j!hjp|hKhj|ubeh}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h **Return**h]j)}(hj|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj{ubj)}(hdividend / divisorh]hdividend / divisor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hDIV64_U64_ROUND_UPh]h)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]j)}(hj|h]hDIV64_U64_ROUND_UP}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj|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 ](jqmacroeh"]h$]h&]jjqjj }jj }jjjuh1hhhhjEkhNhNubj)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j.)}(hj}h]hDIV64_U64_ROUND_UP (ll, d)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM"hjEkhhubj<8)}(h4unsigned 64bit divide with 64bit divisor rounded up h]j)}(h3unsigned 64bit divide with 64bit divisor rounded uph]h3unsigned 64bit divide with 64bit divisor rounded up}(hj+}hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM hj'}ubah}(h]h ]h"]h$]h&]uh1j;8hj9}hM hjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hjF}h]h Parameters}(hjH}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM$hj@}ubj)}(hhh](j")}(h``ll`` unsigned 64bit dividend h](j()}(h``ll``h]j.)}(hje}h]hll}(hjg}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjc}ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM!hj_}ubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj~}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz}hM!hj{}ubah}(h]h ]h"]h$]h&]uh1jChj_}ubeh}(h]h ]h"]h$]h&]uh1j!hjz}hM!hj\}ubj")}(h``d`` unsigned 64bit divisor h](j()}(h``d``h]j.)}(hj}h]hd}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM"hj}ubjD)}(hhh]j)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hM"hj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hM"hj\}ubeh}(h]h ]h"]h$]h&]uh1jhj@}ubj)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM$hj@}ubj)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM$hj@}ubj)}(h **Return**h]j)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM'hj@}ubj)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM'hj@}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hDIV_U64_ROUND_UPh]h)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]j)}(hj?~h]hDIV_U64_ROUND_UP}(hjI~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjE~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjA~hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM-ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj=~hhhj\~hM-ubah}(h]j8~ah ](jjeh"]h$]h&]jj)jhuh1hhj\~hM-hj:~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:~hhhj\~hM-ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjju~jju~jjjuh1hhhhjEkhNhNubj)}(h``DIV_U64_ROUND_UP (ll, d)``h]j.)}(hj{~h]hDIV_U64_ROUND_UP (ll, d)}(hj}~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjy~ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM/hjEkhhubj<8)}(h4unsigned 64bit divide with 32bit divisor rounded up h]j)}(h3unsigned 64bit divide with 32bit divisor rounded uph]h3unsigned 64bit divide with 32bit divisor rounded up}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM-hj~ubah}(h]h ]h"]h$]h&]uh1j;8hj~hM-hjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM1hj~ubj)}(hhh](j")}(h``ll`` unsigned 64bit dividend h](j()}(h``ll``h]j.)}(hj~h]hll}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM.hj~ubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hM.hj~ubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hj~hM.hj~ubj")}(h``d`` unsigned 32bit divisor h](j()}(h``d``h]j.)}(hjh]hd}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM/hjubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM/hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM/hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM1hj~ubj)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM1hj~ubj)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM4hj~ubj)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM4hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hDIV64_U64_ROUND_CLOSESTh]h)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hjh]hDIV64_U64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM:ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM:hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjEkhNhNubj)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hjh]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM<hjEkhhubj<8)}(hDunsigned 64bit divide with 64bit divisor rounded to nearest integer h]j)}(hCunsigned 64bit divide with 64bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 64bit divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM:hjubah}(h]h ]h"]h$]h&]uh1j;8hj hM:hjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM>hjubj)}(hhh](j")}(h%``dividend`` unsigned 64bit dividend h](j()}(h ``dividend``h]j.)}(hj9h]hdividend}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM;hj3ubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhM;hjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhM;hj0ubj")}(h#``divisor`` unsigned 64bit divisor h](j()}(h ``divisor``h]j.)}(hjrh]hdivisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM<hjlubjD)}(hhh]j)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM>hjubj)}(hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.}(hjÀhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM>hjubj)}(h **Return**h]j)}(hjԀh]hReturn}(hjրhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҀubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMAhjubj)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hDIV_U64_ROUND_CLOSESTh]h)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hjh]hDIV_U64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMGubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj0hMGubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj0hMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj0hMGubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjIjjIjjjuh1hhhhjEkhNhNubj)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hjOh]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMIhjEkhhubj<8)}(hDunsigned 64bit divide with 32bit divisor rounded to nearest integer h]j)}(hCunsigned 64bit divide with 32bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 32bit divisor rounded to nearest integer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMGhjeubah}(h]h ]h"]h$]h&]uh1j;8hjwhMGhjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMKhj~ubj)}(hhh](j")}(h%``dividend`` unsigned 64bit dividend h](j()}(h ``dividend``h]j.)}(hjh]hdividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMHhjubjD)}(hhh]j)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhjubj")}(h#``divisor`` unsigned 32bit divisor h](j()}(h ``divisor``h]j.)}(hj܁h]hdivisor}(hjށhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjځubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMIhjցubjD)}(hhh]j)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubah}(h]h ]h"]h$]h&]uh1jChjցubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMKhj~ubj)}(hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMKhj~ubj)}(h **Return**h]j)}(hj>h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMNhj~ubj)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMNhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hDIV_S64_ROUND_CLOSESTh]h)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hj}h]hDIV_S64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMTubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhjhMTubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhMTubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjEkhNhNubj)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j.)}(hjh]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMVhjEkhhubj<8)}(hBsigned 64bit divide with 32bit divisor rounded to nearest integer h]j)}(hAsigned 64bit divide with 32bit divisor rounded to nearest integerh]hAsigned 64bit divide with 32bit divisor rounded to nearest integer}(hjӂhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMThjςubah}(h]h ]h"]h$]h&]uh1j;8hjhMThjEkhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMXhjubj)}(hhh](j")}(h#``dividend`` signed 64bit dividend h](j()}(h ``dividend``h]j.)}(hj h]hdividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMUhjubjD)}(hhh]j)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMUhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMUhjubj")}(h!``divisor`` signed 32bit divisor h](j()}(h ``divisor``h]j.)}(hjFh]hdivisor}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMVhj@ubjD)}(hhh]j)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hMVhj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hMVhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMXhjubj)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMXhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM[hjubj)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌroundup_u64 (C function) c.roundup_u64hNtauh1hhjEkhhhNhNubh)}(hhh](h)}(hu64 roundup_u64 (u64 x, u32 y)h]h)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}js roundup_u64sb c.roundup_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMhubj)}(h roundup_u64h]j)}(hjh]h roundup_u64}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMhubj/)}(h(u64 x, u32 y)h](j5)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j  c.roundup_u64asbuh1hhj;ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hjzAh]hx}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7ubj5)}(hu32 yh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j  c.roundup_u64asbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hyh]hy}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhhjhhubj)}(hhh]j)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMhhj܄hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjEkhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMlhjubj)}(hhh](j")}(h``u64 x`` the value to up h](j()}(h ``u64 x``h]j.)}(hj h]hu64 x}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMihjubjD)}(hhh]j)}(hthe value to uph]hthe value to up}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hMihj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMihjubj")}(h(``u32 y`` 32bit multiple to round up to h](j()}(h ``u32 y``h]j.)}(hjYh]hu32 y}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMjhjSubjD)}(hhh]j)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMjhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhMjhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMlhjubj)}(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}(hjąhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . For 32bit }(hjhhhNhNubj)}(h**x**h]hx}(hjօhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? values, see roundup and the faster round_up() for powers of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMlhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMohjubj)}(hrounded up value.h]hrounded up value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:182: ./include/linux/math64.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌgcd (C function)c.gcdhNtauh1hhjEkhhhNhNubh)}(hhh](h)}(h4unsigned long gcd (unsigned long a, unsigned long b)h]h)}(h3unsigned long gcd(unsigned long a, unsigned long b)h](h)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhKubh)}(hlongh]hlong}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhjDhKubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhKubj)}(hgcdh]j)}(hgcdh]hgcd}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2hhhjDhKubj/)}(h"(unsigned long a, unsigned long b)h](j5)}(hunsigned long ah](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hj6 h]ha}(hjdžhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long bh](h)}(hunsignedh]hunsigned}(hj߆hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjۆubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjۆubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjۆubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjۆubj)}(hj h]hb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۆubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj2hhhjDhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhjDhKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhKhj+hhubj)}(hhh]j)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhj=hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhjEkhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhj\ubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhj{ubjD)}(hhh]j)}(h first valueh]h first value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjxubj")}(h ``unsigned long b`` second valueh](j()}(h``unsigned long b``h]j.)}(hjh]hunsigned long b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhjubjD)}(hhh]j)}(h second valueh]h second value}(hjӇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:185: ./lib/math/gcd.chKhjЇubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjχhKhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEkhhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void generate_random_uuid (unsigned char uuid[16])h]h)}(h1void generate_random_uuid(unsigned char uuid[16])h](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hKubj)}(hgenerate_random_uuidh]j)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hKubj/)}(h(unsigned char uuid[16])h]j5)}(hunsigned char uuid[16]h](h)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(huuidh]huuid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubj)}(hjFh]h[}(hjhhhNhNubah}(h]h ]jah" ]h$]h&]uh1jhjfubhdesc_sig_literal_number)}(h16h]h16}(hjhhhNhNubah}(h]h ]mah"]h$]h&]uh1jhjfubj)}(hjFh]h]}(hjΈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubah}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hKhj"hhubj)}(hhh]j)}(hgenerate a random UUIDh]hgenerate a random UUID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjubj)}(hhh]j")}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j()}(h``unsigned char uuid[16]``h]j.)}(hj8h]hunsigned char uuid[16]}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhj2ubjD)}(hhh]j)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hjMhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjubj)}(hRandom UUID interfaceh]hRandom UUID interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjubj)}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuuid_is_valid (C function)c.uuid_is_validhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%bool uuid_is_valid (const char *uuid)h]h)}(h$bool uuid_is_valid(const char *uuid)h](h)}(hjoh]hbool}(hjljhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjÉhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKMubh)}(h h]h }(hjՉhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjÉhhhjԉhKMubj)}(h uuid_is_validh]j)}(h uuid_is_validh]h uuid_is_valid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjÉhhhjԉhKMubj/)}(h(const char *uuid)h]j5)}(hconst char *uuidh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huuidh]huuid}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjÉhhhjԉhKMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjԉhKMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԉhKMhjhhubj)}(hhh]j)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԉhKMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKNhjubjD)}(hhh]j)}(hUUID string to checkh]hUUID string to check}(hjˊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNJhKNhjȊubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjNJhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./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:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKQhjubjD)}(hhh]j)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKShjubj)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKUhjubj)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:191: ./lib/uuid.chKVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] uuid-guidah ]h"] uuid/guidah$]h&]uh1hhjhhhhhKubeh}(h]crc-and-math-functions-in-linuxah ]h"]crc and math functions in linuxah$]h&]uh1hhhhhhhhKubh)}(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](hՌipc_init (C function) c.ipc_inithNtauh1hhjhhhNhNubh)}(hhh](h)}(hint ipc_init (void)h]h)}(hint ipc_init(void)h](h)}(hinth]hint}(hjċhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKQubh)}(h h]h }(hjӋhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjҋhKQubj)}(hipc_inith]j)}(hipc_inith]hipc_init}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjҋhKQubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjҋhKQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjҋhKQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjҋhKQhjhhubj)}(hhh]j)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKQhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjҋhKQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKUhjGubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjlh]hvoid}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjfubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjGubj)}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKRhjGubj)}(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.}(hǰhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKUhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_init_ids (C function)c.ipc_init_idshNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void ipc_init_ids (struct ipc_ids *ids)h]h)}(h&void ipc_init_ids(struct ipc_ids *ids)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKmubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKmubj)}(h ipc_init_idsh]j)}(h ipc_init_idsh]h ipc_init_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hKmubj/)}(h(struct ipc_ids *ids)h]j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_init_idsasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hKmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKmhjhhubj)}(hhh]j)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKmubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjӍjjӍjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjݍh]h Parameters}(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:200: ./ipc/util.chKqhj׍ubj)}(hhh]j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKnhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKnhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKnhjubah}(h]h ]h"]h$]h&]uh1jhj׍ubj)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKphj׍ubj)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKphj׍ubeh}(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](h)}(htvoid ipc_init_proc_interface (const char *path, const char *header, int ids, int (*show)(struct seq_file *, void *))h]h)}(hqvoid ipc_init_proc_interface(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](h)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjhKubj)}(hipc_init_proc_interfaceh]j)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjhKubj/)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j5)}(hconst char *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjƎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjԎhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *headerh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheaderh]hheader}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint idsh](h)}(hinth]hint}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h$int (*show)(struct seq_file*, void*)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h(h]h(}(hjďhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjҏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshowh]hshow}(hjߏhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h)h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjƏh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hseq_fileh]hseq_file}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_init_proc_interfaceasbuh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h,h]h,}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjhKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjqhhubj)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjː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](j)}(h**Parameters**h]j)}(hjՐh]h Parameters}(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:200: ./ipc/util.chKhjϐubj)}(hhh](j")}(h$``const char *path`` Path in procfs h](j()}(h``const char *path``h]j.)}(hjh]hconst char *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubjD)}(hhh]j)}(hPath in procfsh]hPath in procfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKhjubj")}(hJ``const char *header`` Banner to be printed at the beginning of the file. h](j()}(h``const char *header``h]j.)}(hj-h]hconst char *header}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhj'ubjD)}(hhh]j)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhKhjubj")}(h%``int ids`` ipc id table to iterate. h](j()}(h ``int ids``h]j.)}(hjfh]hint ids}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhj`ubjD)}(hhh]j)}(hipc id table to iterate.h]hipc id table to iterate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hKhjubj")}(h8``int (*show)(struct seq_file *, void *)`` show routine.h](j()}(h*``int (*show)(struct seq_file *, void *)``h]j.)}(hjh]h&int (*show)(struct seq_file *, void *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubjD)}(hhh]j)}(h show routine.h]h show routine.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjϐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_findkey (C function) c.ipc_findkeyhNtauh1hhjhhhNhNubh)}(hhh](h)}(hCstruct kern_ipc_perm * ipc_findkey (struct ipc_ids *ids, key_t key)h]h)}(hAstruct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}js ipc_findkeysb c.ipc_findkeyasbuh1hhjhhhjhKubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h ipc_findkeyh]j)}(hj6h]h ipc_findkey}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h (struct ipc_ids *ids, key_t key)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j4 c.ipc_findkeyasbuh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hidsh]hids}(hjʒhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubj5)}(h key_t keyh](h)}(hhh]j)}(hkey_th]hkey_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j4 c.ipc_findkeyasbuh1hhjߒubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjߒubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjߒubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjTjjTjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(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:200: ./ipc/util.chKhjXubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjwubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjtubj")}(h``key_t key`` key to find h](j()}(h ``key_t key``h]j.)}(hjh]h key_t key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjubjD)}(hhh]j)}(h key to findh]h key to find}(hjϓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˓hKhj̓ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj˓hKhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjXubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjXubj)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chKhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_addid (C function) c.ipc_addidhNtauh1hhjhhhNhNubh)}(hhh](h)}(hIint ipc_addid (struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h]h)}(hHint ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](h)}(hinth]hint}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjShMubj)}(h ipc_addidh]j)}(h ipc_addidh]h ipc_addid}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhjShMubj/)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjhsb c.ipc_addidasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjΔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hidsh]hids}(hj۔hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubj5)}(hstruct kern_ipc_perm *newh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.ipc_addidasbuh1hhjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubj5)}(h int limith](h)}(hinth]hint}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hlimith]hlimit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjAhhhjShMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShMhj:hhubj)}(hhh]j)}(hadd an ipc identifierh]hadd an ipc identifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj•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](j)}(h**Parameters**h]j)}(hj̕h]h Parameters}(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:200: ./ipc/util.chM hjƕubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h5``struct kern_ipc_perm *new`` new ipc permission set h](j()}(h``struct kern_ipc_perm *new``h]j.)}(hj$h]hstruct kern_ipc_perm *new}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjubjD)}(hhh]j)}(hnew ipc permission seth]hnew ipc permission set}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hM hj:ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hM hjubj")}(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&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjWubjD)}(hhh]j)}(h limit for the number of used idsh]h limit for the number of used ids}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhM hjsubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjrhM hjubeh}(h]h ]h"]h$]h&]uh1jhjƕubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjƕubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjƕubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjƕubj)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hj̖hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjƕubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget_new (C function) c.ipcget_newhNtauh1hhjhhhNhNubh)}(hhh](h)}(htint ipcget_new (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]h)}(hsint ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMJubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMJubj)}(h ipcget_newh]j)}(h ipcget_newh]h ipcget_new}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMJubj/)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsb c.ipcget_newasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hnsh]hns}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjȗhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjŗubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjʗmodnameN classnameNjwjz)}j}]jr c.ipcget_newasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hconst struct ipc_ops *opsh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]jr c.ipcget_newasbuh1hhjubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hstruct ipc_params *paramsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjØhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjŘmodnameN classnameNjwjz)}j}]jr c.ipcget_newasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamsh]hparams}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMJhjhhubj)}(hhh]j)}(hcreate a new ipc objecth]hcreate a new ipc object}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMJhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>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](j)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMNhjBubj)}(hhh](j")}(h+``struct ipc_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hjgh]hstruct ipc_namespace *ns}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMKhjaubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMKhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hMKhj^ubj")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMLhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhj^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&]uh1j-hjיubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMMhjәubjD)}(hhh]j)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jChjәubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhj^ubj")}(h-``struct ipc_params *params`` its parameters h](j()}(h``struct ipc_params *params``h]j.)}(hjh]hstruct ipc_params *params}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMNhj ubjD)}(hhh]j)}(hits parametersh]hits parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hMNhj(ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj'hMNhj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMPhjBubj)}(h`This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.h]h`This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMPhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_check_perms (C function)c.ipc_check_permshNtauh1hhjhhhNhNubh)}(hhh](h)}(hint ipc_check_perms (struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h]h)}(hint ipc_check_perms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM_ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM_ubj)}(hipc_check_permsh]j)}(hipc_check_permsh]hipc_check_perms}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM_ubj/)}(hl(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hjϚhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj˚ubh)}(h h]h }(hjܚhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj˚ubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_check_permsasbuh1hhj˚ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj˚ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˚ubj)}(hnsh]hns}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj˚ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjǚubj5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j c.ipc_check_permsasbuh1hhj=ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hipcph]hipcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjǚubj5)}(hconst struct ipc_ops *opsh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj̛hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjٛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.ipc_check_permsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hopsh]hops}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjǚubj5)}(hstruct ipc_params *paramsh](j;)}(hj>h]hstruct}(hj<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j c.ipc_check_permsasbuh1hhj8ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hparamsh]hparams}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjǚubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM_ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM_hjhhubj)}(hhh]j)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj՜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](j)}(h**Parameters**h]j)}(hjߜh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݜubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMchjٜubj)}(hhh](j")}(h+``struct ipc_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hjh]hstruct ipc_namespace *ns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM`hjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM`hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM`hjubj")}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hj7h]hstruct kern_ipc_perm *ipcp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMahj1ubjD)}(hhh]j)}(hipc permission seth]hipc permission set}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhMahjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhMahjubj")}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j()}(h``const struct ipc_ops *ops``h]j.)}(hjph]hconst struct ipc_ops *ops}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMbhjjubjD)}(hhh]j)}(h#the actual security routine to callh]h#the actual security routine to call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMbhjubj")}(h-``struct ipc_params *params`` its parameters h](j()}(h``struct ipc_params *params``h]j.)}(hjh]hstruct ipc_params *params}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMchjubjD)}(hhh]j)}(hits parametersh]hits parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMchjubeh}(h]h ]h"]h$]h&]uh1jhjٜubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMehjٜubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMehjٜubj)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMihjٜubj)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMkhjٜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget_public (C function)c.ipcget_publichNtauh1hhjhhhNhNubh)}(hhh](h)}(hwint ipcget_public (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]h)}(hvint ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](h)}(hinth]hint}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhMubj)}(h ipcget_publich]j)}(h ipcget_publich]h ipcget_public}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhjUhMubj/)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjjsbc.ipcget_publicasbuh1hhjubh)}(h h]h }(hjžhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjОhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnsh]hns}(hjݞhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubj5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.ipcget_publicasbuh1hhjubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubj5)}(hconst struct ipc_ops *opsh](j;)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjbubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjbubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.ipcget_publicasbuh1hhjbubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hjh]h*}(hj˟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hopsh]hops}(hj؟hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubj5)}(hstruct ipc_params *paramsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.ipcget_publicasbuh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamsh]hparams}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj|ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjChhhjUhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?hhhjUhMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhj<hhubj)}(hhh]j)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hhh](j")}(h+``struct ipc_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hjh]hstruct ipc_namespace *ns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hj̠hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȠhMhjɠubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjȠhMhjubj")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMhjubj")}(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&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjXubjD)}(hhh]j)}(hits parametersh]hits parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhjhhhNhNubh)}(hhh](h)}(hEvoid ipc_kht_remove (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]h)}(hDvoid ipc_kht_remove(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hipc_kht_removeh]j)}(hipc_kht_removeh]hipc_kht_remove}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_kht_removeasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubj5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jdc.ipc_kht_removeasbuh1hhjubh)}(h h]h }(hjآhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hipcph]hipcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h$remove an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj9ubj)}(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&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjXubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjUubj")}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjh]hstruct kern_ipc_perm *ipcp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h/ipc perm structure containing the key to removeh]h/ipc perm structure containing the key to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubj)}(h**Description**h]j)}(hjңh]h Description}(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:200: ./ipc/util.chMhj9ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int ipc_search_maxidx (struct ipc_ids *ids, int limit)h]h)}(h5int ipc_search_maxidx(struct ipc_ids *ids, int limit)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj%hMubj)}(hipc_search_maxidxh]j)}(hipc_search_maxidxh]hipc_search_maxidx}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj%hMubj/)}(h (struct ipc_ids *ids, int limit)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]j)}jsj:sbc.ipc_search_maxidxasbuh1hhjPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubj5)}(h int limith](h)}(hinth]hint}(hjƤhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj¤ubh)}(h h]h }(hjԤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj¤ubj)}(hlimith]hlimit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj¤ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj%hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhj hhubj)}(hhh]j)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj$jj$jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj(ubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjMh]hstruct ipc_ids *ids}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjGubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhMhjDubj")}(h;``int limit`` known upper limit for highest assigned index h](j()}(h ``int limit``h]j.)}(hjh]h int limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hjh]h Description}(hjåhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj(ubj)}(hXThe function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.h](h6The function determines the highest assigned index in }(hjץhhhNhNubj)}(h**ids**h]hids}(hjߥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjץubh. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.}(hjץhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj(ubj)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_rmid (C function) c.ipc_rmidhNtauh1hhjhhhNhNubh)}(hhh](h)}(h?void ipc_rmid (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]h)}(h>void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](h)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj5hMubj)}(hipc_rmidh]j)}(hipc_rmidh]hipc_rmid}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj5hMubj/)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj`ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjJsb c.ipc_rmidasbuh1hhj`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubj5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hj֦hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjҦubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjҦubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.ipc_rmidasbuh1hhjҦubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjҦubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҦubj)}(hipcph]hipcp}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjҦubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj5hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhjhhubj)}(hhh]j)}(hremove an ipc identifierh]hremove an ipc identifier}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjsubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjѧh]hstruct kern_ipc_perm *ipcp}(hjӧhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjϧubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj˧ubjD)}(hhh]j)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj˧ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubj)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjsubj)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjsubeh}(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](h)}(hJvoid ipc_set_key_private (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]h)}(hIvoid ipc_set_key_private(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](h)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj_hMubj)}(hipc_set_key_privateh]j)}(hipc_set_key_privateh]hipc_set_key_private}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMhhhj_hMubj/)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjtsbc.ipc_set_key_privateasbuh1hhjubh)}(h h]h }(hj̨hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjڨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jȨc.ipc_set_key_privateasbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hipcph]hipcp}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMhhhj_hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhj_hMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhjFhhubj)}(hhh]j)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hj۩hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjשhMhjةubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjשhMhjubj")}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjh]hstruct kern_ipc_perm *ipcp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcperms (C function) c.ipcpermshNtauh1hhjhhhNhNubh)}(hhh](h)}(hOint ipcperms (struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h]h)}(hNint ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjhMubj)}(hipcpermsh]j)}(hipcpermsh]hipcperms}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjwhhhjhMubj/)}(hB(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjŪhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hj֪hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӪubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjتmodnameN classnameNjwjz)}j}]j)}jsjsb c.ipcpermsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnsh]hns}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j c.ipcpermsasbuh1hhj&ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hipcph]hipcp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h short flagh](h)}(hshorth]hshort}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagh]hflag}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjwhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjphhubj)}(hhh]j)}(hcheck ipc permissionsh]hcheck ipc permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjݫhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM#hjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM hjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hM hj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hM hjubj")}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjZh]hstruct kern_ipc_perm *ipcp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM!hjTubjD)}(hhh]j)}(hipc permission seth]hipc permission set}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohM!hjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohM!hjubj")}(h&``short flag`` desired permission set h](j()}(h``short flag``h]j.)}(hjh]h short flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM"hjubjD)}(hhh]j)}(hdesired permission seth]hdesired permission set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM"hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM"hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjάh]h Description}(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:200: ./ipc/util.chM$hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM$hjubj)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh will most probably be 0 or }(hjhhhNhNubj.)}(h ``S_...UGO``h]hS_...UGO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh from }(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM'hjubeh}(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](h)}(hLvoid kernel_to_ipc64_perm (struct kern_ipc_perm *in, struct ipc64_perm *out)h]h)}(hKvoid kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out)h](h)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMDubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhjPhMDubj)}(hkernel_to_ipc64_permh]j)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>hhhjPhMDubj/)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j5)}(hstruct kern_ipc_perm *inh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjesbc.kernel_to_ipc64_permasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hj˭hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hinh]hin}(hjحhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubj5)}(hstruct ipc64_perm *outh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.kernel_to_ipc64_permasbuh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(houth]hout}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj>hhhjPhMDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhjPhMDubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjPhMDhj7hhubj)}(hhh]j)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMDhjohhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhMDubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMHhjubj)}(hhh](j")}(h0``struct kern_ipc_perm *in`` kernel permissions h](j()}(h``struct kern_ipc_perm *in``h]j.)}(hjh]hstruct kern_ipc_perm *in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMEhjubjD)}(hhh]j)}(hkernel permissionsh]hkernel permissions}(hj̮hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȮhMEhjɮubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjȮhMEhjubj")}(h5``struct ipc64_perm *out`` new style ipc permissions h](j()}(h``struct ipc64_perm *out``h]j.)}(hjh]hstruct ipc64_perm *out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMFhjubjD)}(hhh]j)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMFhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj'h]h Description}(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:200: ./ipc/util.chMHhjubj)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hj=hhhNhNubj)}(h**in**h]hin}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhD into a set of permissions descriptions for returning to userspace (}(hj=hhhNhNubj)}(h**out**h]hout}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh).}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMHhjubeh}(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](h)}(hIvoid ipc64_perm_to_ipc_perm (struct ipc64_perm *in, struct ipc_perm *out)h]h)}(hHvoid ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMWubj)}(hipc64_perm_to_ipc_permh]j)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMWubj/)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j5)}(hstruct ipc64_perm *inh](j;)}(hj>h]hstruct}(hjͯhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjɯubh)}(h h]h }(hjگhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɯubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc64_perm_to_ipc_permasbuh1hhjɯubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɯubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɯubj)}(hinh]hin}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjɯubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjůubj5)}(hstruct ipc_perm *outh](j;)}(hj>h]hstruct}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubh)}(hhh]j)}(hipc_permh]hipc_perm}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj_modnameN classnameNjwjz)}j}]jc.ipc64_perm_to_ipc_permasbuh1hhj;ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(houth]hout}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjůubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMWubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjhhubj)}(hhh]j)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMWubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjذjjذjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM[hjܰubj)}(hhh](j")}(h4``struct ipc64_perm *in`` new style ipc permissions h](j()}(h``struct ipc64_perm *in``h]j.)}(hjh]hstruct ipc64_perm *in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMXhjubjD)}(hhh]j)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhjubj")}(h3``struct ipc_perm *out`` old style ipc permissions h](j()}(h``struct ipc_perm *out``h]j.)}(hj:h]hstruct ipc_perm *out}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMYhj4ubjD)}(hhh]j)}(hold style ipc permissionsh]hold style ipc permissions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhMYhjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhMYhjubeh}(h]h ]h"]h$]h&]uh1jhjܰubj)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM[hjܰubj)}(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 }(hjhhhNhNubj)}(h**in**h]hin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 into a compatibility object and store it into the }(hjhhhNhNubj)}(h**out**h]hout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chM[hjܰubeh}(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](h)}(hJstruct kern_ipc_perm * ipc_obtain_object_idr (struct ipc_ids *ids, int id)h]h)}(hHstruct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)h](j;)}(hj>h]hstruct}(hjޱhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjڱhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjڱhhhjhMjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjڱhhhjhMjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjڱhhhjhMjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڱhhhjhMjubj)}(hipc_obtain_object_idrh]j)}(hjh]hipc_obtain_object_idr}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjڱhhhjhMjubj/)}(h(struct ipc_ids *ids, int id)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]jc.ipc_obtain_object_idrasbuh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubj5)}(hint idh](h)}(hinth]hint}(hjȲhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIJubh)}(h h]h }(hjֲhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIJubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjڱhhhjhMjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjֱhhhjhMjubah}(h]jѱah ](jjeh"]h$]h&]jj)jhuh1hhjhMjhjӱhhubj)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMjhj hhubah}(h]h ]h"]h$]h&]uh1jhjӱhhhjhMjubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj&jj&jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMnhj*ubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjOh]hstruct ipc_ids *ids}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMlhjIubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMlhjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhMlhjFubj")}(h``int id`` ipc id to look for h](j()}(h ``int id``h]j.)}(hjh]hint id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMmhjubjD)}(hhh]j)}(hipc id to look forh]hipc id to look for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMmhjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubj)}(h**Description**h]j)}(hjóh]h Description}(hjųhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMohj*ubj)}(hMCall inside the RCU critical section. The ipc object is *not* locked on exit.h](h8Call inside the RCU critical section. The ipc object is }(hjٳhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٳubh locked on exit.}(hjٳhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMohj*ubeh}(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](h)}(hLstruct kern_ipc_perm * ipc_obtain_object_check (struct ipc_ids *ids, int id)h]h)}(hJstruct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j)}jsipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhjhhhj'hMubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hMubj)}(hipc_obtain_object_checkh]j)}(hjWh]hipc_obtain_object_check}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj'hMubj/)}(h(struct ipc_ids *ids, int id)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jUc.ipc_obtain_object_checkasbuh1hhjubh)}(h h]h }(hjдhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj޴hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint idh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hidh]hid}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj'hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj)}(hhh]j)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjfubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``int id`` ipc id to look for h](j()}(h ``int id``h]j.)}(hjĵh]hint id}(hjƵhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjµubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc id to look forh]hipc id to look for}(hjݵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٵhMhjڵubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjٵhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjfubj)}(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 }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh locked on exit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipcget (C function)c.ipcgethNtauh1hhjhhhNhNubh)}(hhh](h)}(hpint ipcget (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]h)}(hoint ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](h)}(hinth]hint}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjdhMubj)}(hipcgeth]j)}(hipcgeth]hipcget}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjdhMubj/)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjysbc.ipcgetasbuh1hhjubh)}(h h]h }(hjѶhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj߶hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnsh]hns}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]jͶc.ipcgetasbuh1hhjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct ipc_ops *opsh](j;)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jͶc.ipcgetasbuh1hhjqubh)}(h h]h }(hj̷hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjڷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct ipc_params *paramsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jͶc.ipcgetasbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamsh]hparams}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjRhhhjdhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjKhhubj)}(hhh]j)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hhh](j")}(h'``struct ipc_namespace *ns`` namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hj¸h]hstruct ipc_namespace *ns}(hjĸhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h namespaceh]h namespace}(hj۸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׸hMhjظubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj׸hMhjubj")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hs``const struct ipc_ops *ops`` operations to be called on ipc object creation, permission checks and further checks h](j()}(h``const struct ipc_ops *ops``h]j.)}(hj4h]hconst struct ipc_ops *ops}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj.ubjD)}(hhh]j)}(hToperations to be called on ipc object creation, permission checks and further checksh]hToperations to be called on ipc object creation, permission checks and further checks}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjubj")}(hP``struct ipc_params *params`` the parameters needed by the previous operations. h](j()}(h``struct ipc_params *params``h]j.)}(hjnh]hstruct ipc_params *params}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjhubjD)}(hhh]j)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().h]hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_update_perm (C function)c.ipc_update_permhNtauh1hhjhhhNhNubh)}(hhh](h)}(hFint ipc_update_perm (struct ipc64_perm *in, struct kern_ipc_perm *out)h]h)}(hEint ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hipc_update_permh]j)}(hipc_update_permh]hipc_update_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j5)}(hstruct ipc64_perm *inh](j;)}(hj>h]hstruct}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj'ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]j)}jsjsbc.ipc_update_permasbuh1hhj'ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hinh]hin}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#ubj5)}(hstruct kern_ipc_perm *outh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jec.ipc_update_permasbuh1hhjubh)}(h h]h }(hjٺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(houth]hout}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6jj6jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` the permission given as input. ``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj:ubj)}(hhh](j")}(h9``struct ipc64_perm *in`` the permission given as input. h](j()}(h``struct ipc64_perm *in``h]j.)}(hj_h]hstruct ipc64_perm *in}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjYubjD)}(hhh]j)}(hthe permission given as input.h]hthe permission given as input.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjVubj")}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j()}(h``struct kern_ipc_perm *out``h]j.)}(hjh]hstruct kern_ipc_perm *out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h!the permission of the ipc to set.h]h!the permission of the ipc to set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct kern_ipc_perm * ipcctl_obtain_check (struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h]h)}(hstruct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhjhhhjhMubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hipcctl_obtain_checkh]j)}(hj/h]hipcctl_obtain_check}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hi(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j5)}(hstruct ipc_namespace *nsh](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j-c.ipcctl_obtain_checkasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hnsh]hns}(hjühhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjܼhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjؼubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjؼubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j-c.ipcctl_obtain_checkasbuh1hhjؼubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjؼubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؼubj)}(hidsh]hids}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjؼubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hint idh](h)}(hinth]hint}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hidh]hid}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hint cmdh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hstruct ipc64_perm *permh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjýhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjԽhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjѽubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjֽmodnameN classnameNjwjz)}j}]j-c.ipcctl_obtain_checkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpermh]hperm}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hint extra_permh](h)}(hinth]hint}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(h extra_permh]h extra_perm}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h,retrieve an ipc object and check permissionsh]h,retrieve an ipc object and check permissions}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` the table of ids where to look for the ipc ``int id`` the id of the ipc to retrieve ``int cmd`` the cmd to check ``struct ipc64_perm *perm`` the permission to set ``int extra_perm`` one extra permission parameter used by msq **Description** This function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down. It: - retrieves the ipc object with the given id in the given table. - performs some audit and permission check, depending on the given cmd - returns a pointer to the ipc object or otherwise, the corresponding error. Call holding the both the rwsem and the rcu read lock.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hhh](j")}(h+``struct ipc_namespace *ns`` ipc namespace h](j()}(h``struct ipc_namespace *ns``h]j.)}(hjh]hstruct ipc_namespace *ns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h ipc namespaceh]h ipc namespace}(hjƾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¾hMhjþubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj¾hMhjubj")}(hC``struct ipc_ids *ids`` the table of ids where to look for the ipc h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(h*the table of ids where to look for the ipch]h*the table of ids where to look for the ipc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``int id`` the id of the ipc to retrieve h](j()}(h ``int id``h]j.)}(hjh]hint id}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hthe id of the ipc to retrieveh]hthe id of the ipc to retrieve}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhjubj")}(h``int cmd`` the cmd to check h](j()}(h ``int cmd``h]j.)}(hjXh]hint cmd}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjRubjD)}(hhh]j)}(hthe cmd to checkh]hthe cmd to check}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjubj")}(h2``struct ipc64_perm *perm`` the permission to set h](j()}(h``struct ipc64_perm *perm``h]j.)}(hjh]hstruct ipc64_perm *perm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hthe permission to seth]hthe permission to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h>``int extra_perm`` one extra permission parameter used by msq h](j()}(h``int extra_perm``h]j.)}(hjʿh]hint extra_perm}(hj̿hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjȿubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjĿubjD)}(hhh]j)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߿hMhjubah}(h]h ]h"]h$]h&]uh1jChjĿubeh}(h]h ]h"]h$]h&]uh1j!hj߿hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj-ubjD)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]j)}(hjHh]h>retrieves the ipc object with the given id in the given table.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjFubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hDperforms some audit and permission check, depending on the given cmdh]j)}(hj`h]hDperforms some audit and permission check, depending on the given cmd}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhj^ubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hKreturns a pointer to the ipc object or otherwise, the corresponding error. h]j)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjvubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjWhMhj@ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhjhhhNhNubh)}(hhh](h)}(h int ipc_parse_version (int *cmd)h]h)}(hint ipc_parse_version(int *cmd)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hipc_parse_versionh]j)}(hipc_parse_versionh]hipc_parse_version}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h (int *cmd)h]j5)}(hint *cmdh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcmdh]hcmd}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hipc call versionh]hipc call version}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hhh]j")}(h ``int *cmd`` pointer to command h](j()}(h ``int *cmd``h]j.)}(hjh]hint *cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hpointer to commandh]hpointer to command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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 }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ value is turned from an encoding command and version into just the command code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhjhhhNhNubh)}(hhh](h)}(hJstruct kern_ipc_perm * sysvipc_find_ipc (struct ipc_ids *ids, loff_t *pos)h]h)}(hHstruct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t *pos)h](j;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjFhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jssysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhj5hhhjFhMubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjFhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjFhMubj)}(hsysvipc_find_ipch]j)}(hjvh]hsysvipc_find_ipc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhjFhMubj/)}(h"(struct ipc_ids *ids, loff_t *pos)h](j5)}(hstruct ipc_ids *idsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jtc.sysvipc_find_ipcasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidsh]hids}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h loff_t *posh](h)}(hhh]j)}(hloff_th]hloff_t}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]jtc.sysvipc_find_ipcasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hposh]hpos}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhjFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjFhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj.hhubj)}(hhh]j)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjFhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(hhh](j")}(h+``struct ipc_ids *ids`` ipc identifier set h](j()}(h``struct ipc_ids *ids``h]j.)}(hjh]hstruct ipc_ids *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hipc identifier seth]hipc identifier set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h"``loff_t *pos`` expected position h](j()}(h``loff_t *pos``h]j.)}(hjh]h loff_t *pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubjD)}(hhh]j)}(hexpected positionh]hexpected position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj>h]h Description}(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:200: ./ipc/util.chMhjubj)}(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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh+. If there is no ipc structure at position }(hjThhhNhNubj)}(h**pos**h]hpos}(hjnhhhNhNubah}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh is not modified.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:200: ./ipc/util.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjhhhNhNubh)}(hhh](h)}(hDECLARE_KFIFO_PTRh]h)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]j)}(hjh]hDECLARE_KFIFO_PTR}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKoubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj#hKoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hKohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj#hKoubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj<jj<jjjuh1hhhhjhNhNubj)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j.)}(hjBh]hDECLARE_KFIFO_PTR (fifo, type)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKqhjhhubj<8)}(h'macro to declare a fifo pointer object h]j)}(h¯o to declare a fifo pointer objecth]h¯o to declare a fifo pointer object}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKohjXubah}(h]h ]h"]h$]h&]uh1j;8hjjhKohjhhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](j)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKshjqubj)}(hhh](j")}(h#``fifo`` name of the declared fifo h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKphjubjD)}(hhh]j)}(hname of the declared fifoh]hname of the declared fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKphjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKphjubj")}(h"``type`` type of the fifo elementsh](j()}(h``type``h]j.)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKrhjubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKqhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKrhjubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhjhhhNhNubh)}(hhh](h)}(h DECLARE_KFIFOh]h)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]j)}(hj#h]h DECLARE_KFIFO}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKvubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj@hKvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj@hKvhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj@hKvubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjYjjYjjjuh1hhhhjhNhNubj)}(h$``DECLARE_KFIFO (fifo, type, size)``h]j.)}(hj_h]h DECLARE_KFIFO (fifo, type, size)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKxhjhhubj<8)}(hmacro to declare a fifo object h]j)}(hmacro to declare a fifo objecth]hmacro to declare a fifo object}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKvhjuubah}(h]h ]h"]h$]h&]uh1j;8hjhKvhjhhubj)}(h**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKzhjubj)}(hhh](j")}(h#``fifo`` name of the declared fifo h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKwhjubjD)}(hhh]j)}(hname of the declared fifoh]hname of the declared fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKwhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKwhjubj")}(h#``type`` type of the fifo elements h](j()}(h``type``h]j.)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKxhjubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKxhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKxhjubj")}(hF``size`` the number of elements in the fifo, this must be a power of 2h](j()}(h``size``h]j.)}(hj%h]hsize}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKzhjubjD)}(hhh]j)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKyhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hKzhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌINIT_KFIFO (C macro) c.INIT_KFIFOhNtauh1hhjhhhNhNubh)}(hhh](h)}(h INIT_KFIFOh]h)}(h INIT_KFIFOh]j)}(h INIT_KFIFOh]j)}(hjyh]h INIT_KFIFO}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhK~ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjwhhhjhK~ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhK~hjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhK~ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``INIT_KFIFO (fifo)``h]j.)}(hjh]hINIT_KFIFO (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h,Initialize a fifo declared by DECLARE_KFIFO h]j)}(h+Initialize a fifo declared by DECLARE_KFIFOh]h+Initialize a fifo declared by DECLARE_KFIFO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhK~hjubah}(h]h ]h"]h$]h&]uh1j;8hjhK~hjhhubj)}(h=**Parameters** ``fifo`` name of the declared fifo datatypeh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(hhh]j")}(h+``fifo`` name of the declared fifo datatypeh](j()}(h``fifo``h]j.)}(hj h]hfifo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubjD)}(hhh]j)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEFINE_KFIFO (C macro)c.DEFINE_KFIFOhNtauh1hhjhhhNhNubh)}(hhh](h)}(h DEFINE_KFIFOh]h)}(h DEFINE_KFIFOh]j)}(h DEFINE_KFIFOh]j)}(hj]h]h DEFINE_KFIFO}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhjzhKubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhjzhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h#``DEFINE_KFIFO (fifo, type, size)``h]j.)}(hjh]hDEFINE_KFIFO (fifo, type, size)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h¯o to define and initialize a fifo h]j)}(h%macro to define and initialize a fifoh]h%macro to define and initialize a fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjhhubj)}(h**Parameters** ``fifo`` name of the declared fifo datatype ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2 **Note** the macro can be used for global and local fifo data type variables.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(hhh](j")}(h,``fifo`` name of the declared fifo datatype h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubjD)}(hhh]j)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h#``type`` type of the fifo elements h](j()}(h``type``h]j.)}(hj&h]htype}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj ubjD)}(hhh]j)}(htype of the fifo elementsh]htype of the fifo elements}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hKhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hKhjubj")}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j()}(h``size``h]j.)}(hj_h]hsize}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjYubjD)}(hhh]j)}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthKhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(hDthe macro can be used for global and local fifo data type variables.h]hDthe macro can be used for global and local fifo data type variables.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_initialized (C macro)c.kfifo_initializedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_initializedh]h)}(hkfifo_initializedh]j)}(hkfifo_initializedh]j)}(hjh]hkfifo_initialized}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_initialized (fifo)``h]j.)}(hjh]hkfifo_initialized (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h!Check if the fifo is initialized h]j)}(h Check if the fifo is initializedh]h Check if the fifo is initialized}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj+ubah}(h]h ]h"]h$]h&]uh1j;8hj=hKhjhhubj)}(h**Parameters** ``fifo`` address of the fifo to check **Description** Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjDubj)}(hhh]j")}(h&``fifo`` address of the fifo to check h](j()}(h``fifo``h]j.)}(hjih]hfifo}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjcubjD)}(hhh]j)}(haddress of the fifo to checkh]haddress of the fifo to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hKhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjDubj)}(h[Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](hReturn }(hjhhhNhNubj.)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh# if fifo is initialized, otherwise }(hjhhhNhNubj.)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh . Assumes the fifo was 0 before.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_esize (C macro) c.kfifo_esizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_esizeh]h)}(h kfifo_esizeh]j)}(h kfifo_esizeh]j)}(hjh]h kfifo_esize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj$hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj$hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj=jj=jjjuh1hhhhjhNhNubj)}(h``kfifo_esize (fifo)``h]j.)}(hjCh]hkfifo_esize (fifo)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h4returns the size of the element managed by the fifo h]j)}(h3returns the size of the element managed by the fifoh]h3returns the size of the element managed by the fifo}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjYubah}(h]h ]h"]h$]h&]uh1j;8hjkhKhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjrubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_recsize (C macro)c.kfifo_recsizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_recsizeh]h)}(h kfifo_recsizeh]j)}(h kfifo_recsizeh]j)}(hjh]h kfifo_recsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj!jj!jjjuh1hhhhjhNhNubj)}(h``kfifo_recsize (fifo)``h]j.)}(hj'h]hkfifo_recsize (fifo)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h,returns the size of the record length field h]j)}(h+returns the size of the record length fieldh]h+returns the size of the record length field}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj=ubah}(h]h ]h"]h$]h&]uh1j;8hjOhKhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjVubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj{h]hfifo}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjuubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_size (C macro) c.kfifo_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_sizeh]h)}(h kfifo_sizeh]j)}(h kfifo_sizeh]j)}(hjh]h kfifo_size}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_size (fifo)``h]j.)}(hj h]hkfifo_size (fifo)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h)returns the size of the fifo in elements h]j)}(h(returns the size of the fifo in elementsh]h(returns the size of the fifo in elements}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj!ubah}(h]h ]h"]h$]h&]uh1j;8hj3hKhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj:ubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj_h]hfifo}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjYubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthKhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_reset (C macro) c.kfifo_resethNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_reseth]h)}(h kfifo_reseth]j)}(h kfifo_reseth]j)}(hjh]h kfifo_reset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_reset (fifo)``h]j.)}(hjh]hkfifo_reset (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h removes the entire fifo content h]j)}(hremoves the entire fifo contenth]hremoves the entire fifo content}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjhhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Note** usage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h](j)}(h**Parameters**h]j)}(hj$h]h Parameters}(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:209: ./include/linux/kfifo.hhKhjubj)}(hhh]j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjCh]hfifo}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj=ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hj~h]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h]husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_reset_out (C macro)c.kfifo_reset_outhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_reset_outh]h)}(hkfifo_reset_outh]j)}(hkfifo_reset_outh]j)}(hjh]hkfifo_reset_out}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_reset_out (fifo)``h]j.)}(hjh]hkfifo_reset_out (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(hskip fifo content h]j)}(hskip fifo contenth]hskip fifo content}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hj!hKhjhhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used **Note** The usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().h](j)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj(ubj)}(hhh]j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjMh]hfifo}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjGubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj(ubj)}(hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().h]hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_len (C macro) c.kfifo_lenhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_lenh]h)}(h kfifo_lenh]j)}(h kfifo_lenh]j)}(hjh]h kfifo_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_len (fifo)``h]j.)}(hjh]hkfifo_len (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h0returns the number of used elements in the fifo h]j)}(h/returns the number of used elements in the fifoh]h/returns the number of used elements in the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hj+hKhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj2ubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hjWh]hfifo}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjQubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_is_empty (C macro)c.kfifo_is_emptyhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_is_emptyh]h)}(hkfifo_is_emptyh]j)}(hkfifo_is_emptyh]j)}(hjh]hkfifo_is_empty}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_is_empty (fifo)``h]j.)}(hjh]hkfifo_is_empty (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjhhubj<8)}(h"returns true if the fifo is empty h]j)}(h!returns true if the fifo is emptyh]h!returns true if the fifo is empty}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj;h]hfifo}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhj5ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#kfifo_is_empty_spinlocked (C macro)c.kfifo_is_empty_spinlockedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_is_empty_spinlockedh]h)}(hkfifo_is_empty_spinlockedh]j)}(hkfifo_is_empty_spinlockedh]j)}(hjh]hkfifo_is_empty_spinlocked}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h*``kfifo_is_empty_spinlocked (fifo, lock)``h]j.)}(hjh]h&kfifo_is_empty_spinlocked (fifo, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h?returns true if the fifo is empty using a spinlock for locking h]j)}(h>returns true if the fifo is empty using a spinlock for lockingh]h>returns true if the fifo is empty using a spinlock for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjhhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhjubj")}(h(``lock`` spinlock to be used for lockingh](j()}(h``lock``h]j.)}(hjXh]hlock}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjRubjD)}(hhh]j)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjhhhNhNubh)}(hhh](h)}(h#kfifo_is_empty_spinlocked_noirqsaveh]h)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(hjh]h#kfifo_is_empty_spinlocked_noirqsave}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j.)}(hjh]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h[returns true if the fifo is empty using a spinlock for locking, doesn't disable interrupts h]j)}(hZreturns true if the fifo is empty using a spinlock for locking, doesn't disable interruptsh]h\returns true if the fifo is empty using a spinlock for locking, doesn’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj<h]hfifo}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj6ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhj3ubj")}(h(``lock`` spinlock to be used for lockingh](j()}(h``lock``h]j.)}(hjuh]hlock}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjoubjD)}(hhh]j)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_is_fullh]h)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]j)}(hjh]h kfifo_is_full}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_is_full (fifo)``h]j.)}(hjh]hkfifo_is_full (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjhhubj<8)}(h!returns true if the fifo is full h]j)}(h returns true if the fifo is fullh]h returns true if the fifo is full}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hj-hMhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM"hj4ubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hjYh]hfifo}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM$hjSubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhM$hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_avail (C macro) c.kfifo_availhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_availh]h)}(h kfifo_availh]j)}(h kfifo_availh]j)}(hjh]h kfifo_avail}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM(ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM(hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM(ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_avail (fifo)``h]j.)}(hjh]hkfifo_avail (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM*hjhhubj<8)}(h2returns the number of unused elements in the fifo h]j)}(h1returns the number of unused elements in the fifoh]h1returns the number of unused elements in the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM(hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM(hjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM,hjubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj=h]hfifo}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM.hj7ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM)hjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhM.hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_skip_counth]h)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]j)}(hjh]hkfifo_skip_count}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM8ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h"``kfifo_skip_count (fifo, count)``h]j.)}(hjh]hkfifo_skip_count (fifo, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM:hjhhubj<8)}(hskip output data h]j)}(hskip output datah]hskip output data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM8hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM8hjhhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM<hjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj!h]hfifo}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM9hjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hM9hj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hM9hjubj")}(h``count`` count of data to skiph](j()}(h ``count``h]j.)}(hjZh]hcount}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM;hjTubjD)}(hhh]j)}(hcount of data to skiph]hcount of data to skip}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM:hjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohM;hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_skip (C macro) c.kfifo_skiphNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_skiph]h)}(h kfifo_skiph]j)}(h kfifo_skiph]j)}(hjh]h kfifo_skip}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMGubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_skip (fifo)``h]j.)}(hjh]hkfifo_skip (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMIhjhhubj<8)}(hskip output data h]j)}(hskip output datah]hskip output data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMGhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMGhjhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMKhjubj)}(hhh]j")}(h'``fifo`` address of the fifo to be usedh](j()}(h``fifo``h]j.)}(hj>h]hfifo}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhj8ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMHhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_peek_lenh]h)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]j)}(hjh]hkfifo_peek_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_peek_len (fifo)``h]j.)}(hjh]hkfifo_peek_len (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMOhjhhubj<8)}(h&gets the size of the next fifo record h]j)}(h%gets the size of the next fifo recordh]h%gets the size of the next fifo record}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMQhjubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMNhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMNhj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hMNhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj]h]h Description}(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:209: ./include/linux/kfifo.hhMPhjubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_alloc (C macro) c.kfifo_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_alloch]h)}(h kfifo_alloch]j)}(h kfifo_alloch]j)}(hjh]h kfifo_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM^ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM^ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM^hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j.)}(hjh]h"kfifo_alloc (fifo, size, gfp_mask)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM`hjhhubj<8)}(h(dynamically allocates a new fifo buffer h]j)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM^hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM^hjhhubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMbhjubj)}(hhh](j")}(h``fifo`` pointer to the fifo h](j()}(h``fifo``h]j.)}(hj,h]hfifo}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM_hj&ubjD)}(hhh]j)}(hpointer to the fifoh]hpointer to the fifo}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhM_hjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhM_hj#ubj")}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j()}(h``size``h]j.)}(hjeh]hsize}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM`hj_ubjD)}(hhh]j)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM`hj{ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hjzhM`hj#ubj")}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j()}(h ``gfp_mask``h]j.)}(hjh]hgfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMahjubjD)}(hhh]j)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMahjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMahj#ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMchjubj)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMchjubj)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMehjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_free (C macro) c.kfifo_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_freeh]h)}(h kfifo_freeh]j)}(h kfifo_freeh]j)}(hj'h]h kfifo_free}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhjDhMuubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhjDhMuhj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhjDhMuubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj]jj]jjjuh1hhhhjhNhNubj)}(h``kfifo_free (fifo)``h]j.)}(hjch]hkfifo_free (fifo)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMwhjhhubj<8)}(hfrees the fifo h]j)}(hfrees the fifoh]hfrees the fifo}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMuhjyubah}(h]h ]h"]h$]h&]uh1j;8hjhMuhjhhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMyhjubj)}(hhh]j")}(h``fifo`` the fifo to be freedh](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM{hjubjD)}(hhh]j)}(hthe fifo to be freedh]hthe fifo to be freed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMvhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_init (C macro) c.kfifo_inithNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_inith]h)}(h kfifo_inith]j)}(h kfifo_inith]j)}(hj h]h kfifo_init}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj(hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjAjjAjjjuh1hhhhjhNhNubj)}(h#``kfifo_init (fifo, buffer, size)``h]j.)}(hjGh]hkfifo_init (fifo, buffer, size)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h.initialize a fifo using a preallocated buffer h]j)}(h-initialize a fifo using a preallocated bufferh]h-initialize a fifo using a preallocated buffer}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj]ubah}(h]h ]h"]h$]h&]uh1j;8hjohMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjvubj)}(hhh](j")}(h'``fifo`` the fifo to assign the buffer h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(hthe fifo to assign the bufferh]hthe fifo to assign the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h.``buffer`` the preallocated buffer to be used h](j()}(h ``buffer``h]j.)}(hjh]hbuffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j()}(h``size``h]j.)}(hj h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h=the size of the internal buffer, this have to be a power of 2h]h=the size of the internal buffer, this have to be a power of 2}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj"hMhjubeh}(h]h ]h"]h$]h&]uh1jhjvubj)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjvubj)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjvubj)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_put (C macro) c.kfifo_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_puth]h)}(h kfifo_puth]j)}(h kfifo_puth]j)}(hjh]h kfifo_put}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_put (fifo, val)``h]j.)}(hjh]hkfifo_put (fifo, val)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(hput data into the fifo h]j)}(hput data into the fifoh]hput data into the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj&h]hfifo}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjubj")}(h``val`` the data to be added h](j()}(h``val``h]j.)}(hj_h]hval}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjYubjD)}(hhh]j)}(hthe data to be addedh]hthe data to be added}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.h]hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_get (C macro) c.kfifo_gethNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_geth]h)}(h kfifo_geth]j)}(h kfifo_geth]j)}(hjh]h kfifo_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_get (fifo, val)``h]j.)}(hj$h]hkfifo_get (fifo, val)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(hget data from the fifo h]j)}(hget data from the fifoh]hget data from the fifo}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj:ubah}(h]h ]h"]h$]h&]uh1j;8hjLhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjSubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjxh]hfifo}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjrubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubj")}(h(``val`` address where to store the data h](j()}(h``val``h]j.)}(hjh]hval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress where to store the datah]haddress where to store the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjSubj)}(hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjSubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_peek (C macro) c.kfifo_peekhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_peekh]h)}(h kfifo_peekh]j)}(h kfifo_peekh]j)}(hj:h]h kfifo_peek}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhjWhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjpjjpjjjuh1hhhhjhNhNubj)}(h``kfifo_peek (fifo, val)``h]j.)}(hjvh]hkfifo_peek (fifo, val)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h(get data from the fifo without removing h]j)}(h'get data from the fifo without removingh]h'get data from the fifo without removing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h(``val`` address where to store the data h](j()}(h``val``h]j.)}(hjh]hval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress where to store the datah]haddress where to store the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj>h]h Description}(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:209: ./include/linux/kfifo.hhMhjubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_in (C macro) c.kfifo_inhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_inh]h)}(hkfifo_inh]j)}(hkfifo_inh]j)}(hjh]hkfifo_in}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_in (fifo, buf, n)``h]j.)}(hjh]hkfifo_in (fifo, buf, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjhhubj<8)}(hput data into the fifo h]j)}(hput data into the fifoh]hput data into the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhjubj")}(h``buf`` the data to be added h](j()}(h``buf``h]j.)}(hjUh]hbuf}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjOubjD)}(hhh]j)}(hthe data to be addedh]hthe data to be added}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhM hjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhM hjubj")}(h%``n`` number of elements to be added h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubjD)}(hhh]j)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubj)}(h[This macro copies the given buffer into the fifo and returns the number of copied elements.h]h[This macro copies the given buffer into the fifo and returns the number of copied elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_in_spinlockedh]h)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]j)}(hjh]hkfifo_in_spinlocked}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjMjjMjjjuh1hhhhjhNhNubj)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j.)}(hjSh]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM!hjhhubj<8)}(h4put data into the fifo using a spinlock for locking h]j)}(h3put data into the fifo using a spinlock for lockingh]h3put data into the fifo using a spinlock for locking}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjiubah}(h]h ]h"]h$]h&]uh1j;8hj{hMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM#hjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h``buf`` the data to be added h](j()}(h``buf``h]j.)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM!hjubjD)}(hhh]j)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM!hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM!hjubj")}(h%``n`` number of elements to be added h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM"hjubjD)}(hhh]j)}(hnumber of elements to be addedh]hnumber of elements to be added}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hM"hj/ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj.hM"hjubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hjRh]hlock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM#hjLubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghM#hjhubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjghM#hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM%hjubj)}(hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.h]hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_in_spinlocked_noirqsaveh]h)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hjh]hkfifo_in_spinlocked_noirqsave}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM3ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM3hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j.)}(hjh]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM5hjhhubj<8)}(hJput data into fifo using a spinlock for locking, don't disable interrupts h]j)}(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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM3hjubah}(h]h ]h"]h$]h&]uh1j;8hj0hM3hjhhubj)}(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](j)}(h**Parameters**h]j)}(hj=h]h Parameters}(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:209: ./include/linux/kfifo.hhM7hj7ubj)}(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&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM5hjVubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhM5hjrubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjqhM5hjSubj")}(h``buf`` the data to be added h](j()}(h``buf``h]j.)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM6hjubjD)}(hhh]j)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM6hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM6hjSubj")}(h%``n`` number of elements to be added h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM7hjubjD)}(hhh]j)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM7hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM7hjSubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hjh]hlock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM8hjubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM8hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM8hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubj)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM:hj7ubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM:hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out (C macro) c.kfifo_outhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_outh]h)}(h kfifo_outh]j)}(h kfifo_outh]j)}(hjh]h kfifo_out}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhj|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|hhhjhMKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h``kfifo_out (fifo, buf, n)``h]j.)}(hjh]hkfifo_out (fifo, buf, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhjhhubj<8)}(hget data from the fifo h]j)}(hget data from the fifoh]hget data from the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMKhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMOhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMLhj ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMLhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMLhjubj")}(h&``buf`` pointer to the storage buffer h](j()}(h``buf``h]j.)}(hjJh]hbuf}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMMhjDubjD)}(hhh]j)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMMhj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hMMhjubj")}(h%``n`` max. number of elements to get h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMNhj}ubjD)}(hhh]j)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMNhjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhMNhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhjubj)}(hSThis macro gets some data from the fifo and returns the numbers of elements copied.h]hSThis macro gets some data from the fifo and returns the numbers of elements copied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhjubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_out_spinlockedh]h)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]j)}(hj h]hkfifo_out_spinlocked}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMeubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj)hMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj)hMehjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj)hMeubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjBjjBjjjuh1hhhhjhNhNubj)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j.)}(hjHh]h)kfifo_out_spinlocked (fifo, buf, n, lock)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMghjhhubj<8)}(h4get data from the fifo using a spinlock for locking h]j)}(h3get data from the fifo using a spinlock for lockingh]h3get data from the fifo using a spinlock for locking}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMehj^ubah}(h]h ]h"]h$]h&]uh1j;8hjphMehjhhubj)}(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](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMihjwubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMfhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMfhjubj")}(h&``buf`` pointer to the storage buffer h](j()}(h``buf``h]j.)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMghjubjD)}(hhh]j)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMghjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMghjubj")}(h%``n`` max. number of elements to get h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhhjubjD)}(hhh]j)}(hmax. number of elements to geth]hmax. number of elements to get}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhhj$ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhhjubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hjGh]hlock}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMihjAubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMihj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj\hMihjubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMkhjwubj)}(hRThis macro gets the data from the fifo and returns the numbers of elements copied.h]hRThis macro gets the data from the fifo and returns the numbers of elements copied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMkhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_out_spinlocked_noirqsaveh]h)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hjh]hkfifo_out_spinlocked_noirqsave}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM{ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM{ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM{hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h7``kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)``h]j.)}(hjh]h3kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM}hjhhubj<8)}(hNget data from the fifo using a spinlock for locking, don't disable interrupts h]j)}(hMget data from the fifo using a spinlock for locking, don't disable interruptsh]hOget data from the fifo using a spinlock for locking, don’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM{hjubah}(h]h ]h"]h$]h&]uh1j;8hj%hM{hjhhubj)}(hXI**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h](j)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj,ubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjQh]hfifo}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM}hjKubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhM}hjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhM}hjHubj")}(h&``buf`` pointer to the storage buffer h](j()}(h``buf``h]j.)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM~hjubjD)}(hhh]j)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM~hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM~hjHubj")}(h%``n`` max. number of elements to get h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjHubj")}(h4``lock`` pointer to the spinlock to use for locking h](j()}(h``lock``h]j.)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubj)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj,ubj)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_from_userh]h)}(hkfifo_from_userh]j)}(hkfifo_from_userh]j)}(hjvh]hkfifo_from_user}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h-``kfifo_from_user (fifo, from, len, copied)``h]j.)}(hjh]h)kfifo_from_user (fifo, from, len, copied)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h-puts some data from user space into the fifo h]j)}(h,puts some data from user space into the fifoh]h,puts some data from user space into the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``from`` pointer to the data to be added h](j()}(h``from``h]j.)}(hj?h]hfrom}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj9ubjD)}(hhh]j)}(hpointer to the data to be addedh]hpointer to the data to be added}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMhjUubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hjThMhjubj")}(h+``len`` the length of the data to be added h](j()}(h``len``h]j.)}(hjxh]hlen}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjrubjD)}(hhh]j)}(h"the length of the data to be addedh]h"the length of the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j()}(h ``copied``h]j.)}(hjh]hcopied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hThis macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjhhhNhNubh)}(hhh](h)}(h kfifo_to_userh]h)}(h kfifo_to_userh]j)}(h kfifo_to_userh]j)}(hj^h]h kfifo_to_user}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhj{hMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j.)}(hjh]h%kfifo_to_user (fifo, to, len, copied)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h*copies data from the fifo into user space h]j)}(h)copies data from the fifo into user spaceh]h)copies data from the fifo into user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h%``to`` where the data must be copied h](j()}(h``to``h]j.)}(hj'h]hto}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj!ubjD)}(hhh]j)}(hwhere the data must be copiedh]hwhere the data must be copied}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMhjubj")}(h+``len`` the size of the destination buffer h](j()}(h``len``h]j.)}(hj`h]hlen}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjZubjD)}(hhh]j)}(h"the size of the destination bufferh]h"the size of the destination buffer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhjubj")}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j()}(h ``copied``h]j.)}(hjh]hcopied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the fifo into the }(hjhhhNhNubj)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh buffer and returns -EFAULT/0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_dma_in_prepare_mappedh]h)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]j)}(hjFh]hkfifo_dma_in_prepare_mapped}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjHhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjchMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjAhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjAhhhjchMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj|jj|jjjuh1hhhhjhNhNubj)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j.)}(hjh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h"setup a scatterlist for DMA input h]j)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``sgl`` pointer to the scatterlist array h](j()}(h``sgl``h]j.)}(hjh]hsgl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj ubjD)}(hhh]j)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhjubj")}(h5``nents`` number of entries in the scatterlist array h](j()}(h ``nents``h]j.)}(hjHh]hnents}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjBubjD)}(hhh]j)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhjubj")}(h'``len`` number of elements to transfer h](j()}(h``len``h]j.)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj{ubjD)}(hhh]j)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h0``dma`` mapped dma address to fill into **sgl** h](j()}(h``dma``h]j.)}(hjh]hdma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.h]heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_dma_in_finishh]h)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]j)}(hjQh]hkfifo_dma_in_finish}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjShhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjOhhhjnhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLhhhjnhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h#``kfifo_dma_in_finish (fifo, len)``h]j.)}(hjh]hkfifo_dma_in_finish (fifo, len)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(hfinish a DMA IN operation h]j)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h$``len`` number of bytes to received h](j()}(h``len``h]j.)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj/hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_dma_out_prepare_mappedh]h)}(hkfifo_dma_out_prepare_mappedh]j)}(hkfifo_dma_out_prepare_mappedh]j)}(hjh]hkfifo_dma_out_prepare_mapped}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j.)}(hjh]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjhhubj<8)}(h#setup a scatterlist for DMA output h]j)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubj)}(hhh](j")}(h(``fifo`` address of the fifo to be used h](j()}(h``fifo``h]j.)}(hj3h]hfifo}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhj-ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhj*ubj")}(h)``sgl`` pointer to the scatterlist array h](j()}(h``sgl``h]j.)}(hjlh]hsgl}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjfubjD)}(hhh]j)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubj")}(h5``nents`` number of entries in the scatterlist array h](j()}(h ``nents``h]j.)}(hjh]hnents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubj")}(h'``len`` number of elements to transfer h](j()}(h``len``h]j.)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubj")}(h0``dma`` mapped dma address to fill into **sgl** h](j()}(h``dma``h]j.)}(hjh]hdma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMhjubjD)}(hhh]j)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hj0hhhNhNubj)}(h**sgl**h]hsgl}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhM hjubj)}(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](hdata** + **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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMRhjubj)}(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&]uh1j-hj+ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMOhj'ubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMOhjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhMOhj$ubj")}(h?``tail`` pointer to an unsigned int to store the value of tail h](j()}(h``tail``h]j.)}(hjfh]htail}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMPhj`ubjD)}(hhh]j)}(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&]uh1jhj{hMPhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMPhj$ubj")}(h*``n`` max. number of elements to point at h](j()}(h``n``h]j.)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMQhjubjD)}(hhh]j)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMQhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMShjubj)}(hXEThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned).h](hXThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (}(hjhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**tail**h]htail}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) with count returned).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMShjubj)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkfifo_out_linear_ptrh]h)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]j)}(hjLh]hkfifo_out_linear_ptr}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMlubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjJhhhjihMlubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjihMlhjGhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjGhhhjihMlubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMnhjhhubj<8)}(h%gets a pointer to the available data h]j)}(h$gets a pointer to the available datah]h$gets a pointer to the available data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMlhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMlhjhhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMphjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMmhjubjD)}(hhh]j)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMmhjubj")}(h5``ptr`` pointer to data to store the pointer to tail h](j()}(h``ptr``h]j.)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMnhjubjD)}(hhh]j)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMnhj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj*hMnhjubj")}(h*``n`` max. number of elements to point at h](j()}(h``n``h]j.)}(hjNh]hn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMohjHubjD)}(hhh]j)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMohjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchMohjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMqhjubj)}(hXVSimilarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned).h](hX9Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with count returned).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMqhjubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:209: ./include/linux/kfifo.hhMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjhhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubj)}(hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.h]hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_buf_full (C function)c.relay_buf_fullhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*int relay_buf_full (struct rchan_buf *buf)h]h)}(h)int relay_buf_full(struct rchan_buf *buf)h](h)}(hinth]hint}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hKubj)}(hrelay_buf_fullh]j)}(hrelay_buf_fullh]hrelay_buf_full}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj=hKubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjRsbc.relay_buf_fullasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubah}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj=hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj=hKubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj=hKhj$hhubj)}(hhh]j)}(h$boolean, is the channel buffer full?h]h$boolean, is the channel buffer full?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hk**Parameters** ``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is full, 0 otherwise.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhj ubj)}(hhh]j")}(hW``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is full, 0 otherwise.h](j()}(h``struct rchan_buf *buf``h]j.)}(hj0h]hstruct rchan_buf *buf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhj*ubjD)}(hhh](j)}(hchannel bufferh]hchannel buffer}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjFubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h-Returns 1 if the buffer is full, 0 otherwise.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chKhjFubeh}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_reset (C function) c.relay_resethNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void relay_reset (struct rchan *chan)h]h)}(h$void relay_reset(struct rchan *chan)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM5ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM5ubj)}(h relay_reseth]j)}(h relay_reseth]h relay_reset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM5ubj/)}(h(struct rchan *chan)h]j5)}(hstruct rchan *chanh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.relay_resetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj)}(hhh]j)}(hreset the channelh]hreset the channel}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM5hjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhjhNhNubj)}(hX]**Parameters** ``struct rchan *chan`` the channel 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](j)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM9hjuubj)}(hhh]j")}(hXA``struct rchan *chan`` the channel 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](j()}(h``struct rchan *chan``h]j.)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM<hjubjD)}(hhh](j)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM6hjubj)}(hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.h]hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM8hjubj)}(hiNOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h]hkNOTE. Care should be taken that the channel isn’t actually being used by anything when this call is made.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_open (C function) c.relay_openhNtauh1hhjhhhNhNubh)}(hhh](h)}(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]h)}(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;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubh)}(hhh]j)}(hrchanh]hrchan}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j)}js relay_opensb c.relay_openasbuh1hhj hhhjhMubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj)}(h relay_openh]j)}(hjNh]h relay_open}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj 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](j5)}(hconst char *base_filenameh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h base_filenameh]h base_filename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *parenth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jL c.relay_openasbuh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t subbuf_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]jL c.relay_openasbuh1hhjTubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h subbuf_sizeh]h subbuf_size}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t n_subbufsh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jL c.relay_openasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h n_subbufsh]h n_subbufs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h const struct rchan_callbacks *cbh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchan_callbacksh]hrchan_callbacks}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]jL c.relay_openasbuh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcbh]hcb}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hvoid *private_datah](h)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h private_datah]h private_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hcreate a new relay channelh]hcreate a new relay channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(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 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubj)}(hhh](j")}(h;``const char *base_filename`` base name of files to create h](j()}(h``const char *base_filename``h]j.)}(hjh]hconst char *base_filename}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubjD)}(hhh]j)}(hbase name of files to createh]hbase name of files to create}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j()}(h``struct dentry *parent``h]j.)}(hj@h]hstruct dentry *parent}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj:ubjD)}(hhh]j)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjYhhhNhNubj.)}(h``NULL``h]hNULL}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubh for root directory or buffer}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubjD)}(hhh]j)}(hsize of sub-buffersh]hsize of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h+``size_t n_subbufs`` number of sub-buffers h](j()}(h``size_t n_subbufs``h]j.)}(hjh]hsize_t n_subbufs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubjD)}(hhh]j)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h?``const struct rchan_callbacks *cb`` client callback functions h](j()}(h$``const struct rchan_callbacks *cb``h]j.)}(hjh]h const struct rchan_callbacks *cb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubjD)}(hhh]j)}(hclient callback functionsh]hclient callback functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hX/``void *private_data`` user-defined data 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](j()}(h``void *private_data``h]j.)}(hj6h]hvoid *private_data}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj0ubjD)}(hhh](j)}(huser-defined datah]huser-defined data}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjLubj)}(h:Returns channel pointer if successful, ``NULL`` otherwise.h](h'Returns channel pointer if successful, }(hj^hhhNhNubj.)}(h``NULL``h]hNULL}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubh otherwise.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjLubj)}(hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be }(hjhhhNhNubj.)}(h ``S_IRUSR``h]hS_IRUSR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjLubeh}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhjhhhNhNubh)}(hhh](h)}(hAsize_t relay_switch_subbuf (struct rchan_buf *buf, size_t length)h]h)}(h@size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsrelay_switch_subbufsbc.relay_switch_subbufasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrelay_switch_subbufh]j)}(hjh]hrelay_switch_subbuf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h&(struct rchan_buf *buf, size_t length)h](j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]jc.relay_switch_subbufasbuh1hhj ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t lengthh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.relay_switch_subbufasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hX **Parameters** ``struct rchan_buf *buf`` channel buffer ``size_t length`` size of current event 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM hj ubj)}(hhh](j")}(h)``struct rchan_buf *buf`` channel buffer h](j()}(h``struct rchan_buf *buf``h]j.)}(hj.h]hstruct rchan_buf *buf}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj(ubjD)}(hhh]j)}(hchannel bufferh]hchannel buffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMhj%ubj")}(h``size_t length`` size of current event 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](j()}(h``size_t length``h]j.)}(hjgh]h size_t length}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM"hjaubjD)}(hhh](j)}(hsize of current eventh]hsize of current event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj}ubj)}(h1Returns either the length passed in or 0 if full.h]h1Returns either the length passed in or 0 if full.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM hj}ubj)}(hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h]hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hM"hj}ubeh}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|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Ռ#relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h[void relay_subbufs_consumed (struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h]h)}(hZvoid relay_subbufs_consumed(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM\ubj)}(hrelay_subbufs_consumedh]j)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM\ubj/)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j5)}(hstruct rchan *chanh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchanh]hrchan}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j)}jsjsbc.relay_subbufs_consumedasbuh1hhjubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int cpuh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t subbufs_consumedh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jUc.relay_subbufs_consumedasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsubbufs_consumedh]hsubbufs_consumed}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM\hjhhubj)}(hhh]j)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM\hj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhjhNhNubj)}(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 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](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM`hjSubj)}(hhh](j")}(h#``struct rchan *chan`` the channel h](j()}(h``struct rchan *chan``h]j.)}(hjxh]hstruct rchan *chan}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM]hjrubjD)}(hhh]j)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhM]hjoubj")}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j()}(h``unsigned int cpu``h]j.)}(hjh]hunsigned int cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM^hjubjD)}(hhh]j)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM^hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM^hjoubj")}(hX@``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count 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](j()}(h``size_t subbufs_consumed``h]j.)}(hjh]hsize_t subbufs_consumed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMehjubjD)}(hhh](j)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM_hjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMahjubj)}(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’.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMehjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMehjoubeh}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_close (C function) c.relay_closehNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void relay_close (struct rchan *chan)h]h)}(h$void relay_close(struct rchan *chan)h](h)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM}ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhjohM}ubj)}(h relay_closeh]j)}(h relay_closeh]h relay_close}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]hhhjohM}ubj/)}(h(struct rchan *chan)h]j5)}(hstruct rchan *chanh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.relay_closeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj]hhhjohM}ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjohM}ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohM}hjVhhubj)}(hhh]j)}(hclose the channelh]hclose the channel}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohM}ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhjhNhNubj)}(hi**Parameters** ``struct rchan *chan`` the channel Closes all channel buffers and frees the channel.h](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj=ubj)}(hhh]j")}(hU``struct rchan *chan`` the channel Closes all channel buffers and frees the channel.h](j()}(h``struct rchan *chan``h]j.)}(hjbh]hstruct rchan *chan}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhj\ubjD)}(hhh](j)}(h the channelh]h the channel}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chM~hjxubj)}(h1Closes all channel buffers and frees the channel.h]h1Closes all channel buffers and frees the channel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjxubeh}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_flush (C function) c.relay_flushhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void relay_flush (struct rchan *chan)h]h)}(h$void relay_flush(struct rchan *chan)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h relay_flushh]j)}(h relay_flushh]h relay_flush}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct rchan *chan)h]j5)}(hstruct rchan *chanh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrchanh]hrchan}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j)}jsjsb c.relay_flushasbuh1hhjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hclose the channelh]hclose the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(ho**Parameters** ``struct rchan *chan`` the channel Flushes all channel buffers, i.e. forces buffer switch.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubj)}(hhh]j")}(h[``struct rchan *chan`` the channel Flushes all channel buffers, i.e. forces buffer switch.h](j()}(h``struct rchan *chan``h]j.)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubjD)}(hhh](j)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:222: ./kernel/relay.chMhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_mmap_buf (C function)c.relay_mmap_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(hFint relay_mmap_buf (struct rchan_buf *buf, struct vm_area_struct *vma)h]h)}(hEint relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma)h](h)}(hinth]hint}(hj5 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1 hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKKubh)}(h h]h }(hjD hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1 hhhjC hKKubj)}(hrelay_mmap_bufh]j)}(hrelay_mmap_bufh]hrelay_mmap_buf}(hjV hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjR ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1 hhhjC hKKubj/)}(h3(struct rchan_buf *buf, struct vm_area_struct *vma)h](j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjr hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjn ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjX sbc.relay_mmap_bufasbuh1hhjn ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn ubj)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjn ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjj ubj5)}(hstruct vm_area_struct *vmah](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.relay_mmap_bufasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj. hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvmah]hvma}(hj; hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1 hhhjC hKKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj- hhhjC hKKubah}(h]j( ah ](jjeh"]h$]h&]jj)jhuh1hhjC hKKhj* hhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]j)}(hjj h]h,mmap channel buffer to process address space}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKKhjh ubah}(h]h ]h"]h$]h&]uh1jhje hhhjy hNubah}(h]h ]h"]h$]h&]jjuh1jhjy hKKhjb hhubah}(h]h ]h"]h$]h&]uh1jhj* hhhjC hKKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer ``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:225: ./kernel/relay.chKOhj ubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKLhj ubjD)}(hhh]j)}(hrelay channel bufferh]hrelay channel buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKLhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKLhj ubj")}(h``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](j()}(h``struct vm_area_struct *vma``h]j.)}(hj h]hstruct vm_area_struct *vma}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKPhj ubjD)}(hhh](j)}(h-vm_area_struct describing memory to be mappedh]h-vm_area_struct describing memory to be mapped}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKMhj ubj)}(h"Returns 0 if ok, negative on errorh]h"Returns 0 if ok, negative on error}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKOhj ubj)}(h-Caller should already have grabbed mmap_lock.h]h-Caller should already have grabbed mmap_lock.}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKQhj ubeh}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKPhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(hh]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.relay_alloc_bufasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h size_t *sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj( hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj% ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj* modnameN classnameNjwjz)}j}]j c.relay_alloc_bufasbuh1hhj! ubh)}(h h]h }(hjF hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj! ubj)}(hjh]h*}(hjT hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj! ubj)}(hsizeh]hsize}(hja hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj! ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hje hhhjw hKeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhja hhhjw hKeubah}(h]j\ ah ](jjeh"]h$]h&]jj)jhuh1hhjw hKehj^ hhubj)}(hhh]j)}(hallocate a channel bufferh]hallocate a channel buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKehj hhubah}(h]h ]h"]h$]h&]uh1jhj^ hhhjw hKeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the buffer struct ``size_t *size`` total size of the buffer Returns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:225: ./kernel/relay.chKihj ubj)}(hhh](j")}(h,``struct rchan_buf *buf`` the buffer struct h](j()}(h``struct rchan_buf *buf``h]j.)}(hj h]hstruct rchan_buf *buf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKfhj ubjD)}(hhh]j)}(hthe buffer structh]hthe buffer struct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKfhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKfhj ubj")}(h``size_t *size`` total size of the buffer Returns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h](j()}(h``size_t *size``h]j.)}(hj h]h size_t *size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKihj ubjD)}(hhh](j)}(htotal size of the bufferh]htotal size of the buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKghj ubj)}(hReturns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h](h+Returns a pointer to the resulting buffer, }(hj- hhhNhNubj.)}(h``NULL``h]hNULL}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj- ubhR if unsuccessful. The passed in size will get page aligned, if it isn’t already.}(hj- hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj hKihj ubeh}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKihj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_create_buf (C function)c.relay_create_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8struct rchan_buf * relay_create_buf (struct rchan *chan)h]h)}(h6struct rchan_buf *relay_create_buf(struct rchan *chan)h](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{ hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ hhhj hKubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsrelay_create_bufsbc.relay_create_bufasbuh1hhj{ hhhj hKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ hhhj hKubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ hhhj hKubj)}(hrelay_create_bufh]j)}(hj h]hrelay_create_buf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{ hhhj hKubj/)}(h(struct rchan *chan)h]j5)}(hstruct rchan *chanh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.relay_create_bufasbuh1hhj ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hchanh]hchan}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj{ hhhj hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjw hhhj hKubah}(h]jr ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjt hhubj)}(hhh]j)}(h(allocate and initialize a channel bufferh]h(allocate and initialize a channel buffer}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjwhhubah}(h]h ]h"]h$]h&]uh1jhjt hhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hw**Parameters** ``struct rchan *chan`` the relay channel Returns channel buffer if successful, ``NULL`` otherwise.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(hhh]j")}(hc``struct rchan *chan`` the relay channel Returns channel buffer if successful, ``NULL`` otherwise.h](j()}(h``struct rchan *chan``h]j.)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubjD)}(hhh](j)}(hthe relay channelh]hthe relay channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(h9Returns channel buffer if successful, ``NULL`` otherwise.h](h&Returns channel buffer if successful, }(hjhhhNhNubj.)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"relay_destroy_channel (C function)c.relay_destroy_channelhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void relay_destroy_channel (struct kref *kref)h]h)}(h-void relay_destroy_channel(struct kref *kref)h](h)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjDhKubj)}(hrelay_destroy_channelh]j)}(hrelay_destroy_channelh]hrelay_destroy_channel}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2hhhjDhKubj/)}(h(struct kref *kref)h]j5)}(hstruct kref *krefh](j;)}(hj>h]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjYsbc.relay_destroy_channelasbuh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubah}(h]h ]h"]h$]h&]j,j-uh1j.hj2hhhjDhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhjDhKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhKhj+hhubj)}(hhh]j)}(hfree the channel structh]hfree the channel struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct kref *kref`` target kernel reference that contains the relay channel Should only be called from kref_put().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(hhh]j")}(hu``struct kref *kref`` target kernel reference that contains the relay channel Should only be called from kref_put().h](j()}(h``struct kref *kref``h]j.)}(hj7h]hstruct kref *kref}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj1ubjD)}(hhh](j)}(h7target kernel reference that contains the relay channelh]h7target kernel reference that contains the relay channel}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjMubj)}(h&Should only be called from kref_put().h]h&Should only be called from kref_put().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjMubeh}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_destroy_buf (C function)c.relay_destroy_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void relay_destroy_buf (struct rchan_buf *buf)h]h)}(h-void relay_destroy_buf(struct rchan_buf *buf)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hrelay_destroy_bufh]j)}(hrelay_destroy_bufh]hrelay_destroy_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_destroy_bufasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h1destroy an rchan_buf struct and associated bufferh]h1destroy an rchan_buf struct and associated buffer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjxjjxjjjuh1hhhhjhNhNubj)}(h=**Parameters** ``struct rchan_buf *buf`` the buffer structh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj|ubj)}(hhh]j")}(h+``struct rchan_buf *buf`` the buffer structh](j()}(h``struct rchan_buf *buf``h]j.)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubjD)}(hhh]j)}(hthe buffer structh]hthe buffer struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_remove_buf (C function)c.relay_remove_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(h)void relay_remove_buf (struct kref *kref)h]h)}(h(void relay_remove_buf(struct kref *kref)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKubj)}(hrelay_remove_bufh]j)}(hrelay_remove_bufh]hrelay_remove_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hKubj/)}(h(struct kref *kref)h]j5)}(hstruct kref *krefh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(hkrefh]hkref}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_remove_bufasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(hhh]j)}(hremove a channel bufferh]hremove a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct kref *kref`` target kernel reference that contains the relay buffer Removes the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(hhh]j")}(h``struct kref *kref`` target kernel reference that contains the relay buffer Removes the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h](j()}(h``struct kref *kref``h]j.)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubjD)}(hhh](j)}(h6target kernel reference that contains the relay bufferh]h6target kernel reference that contains the relay buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubj)}(hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h]hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_buf_empty (C function)c.relay_buf_emptyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+int relay_buf_empty (struct rchan_buf *buf)h]h)}(h*int relay_buf_empty(struct rchan_buf *buf)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshKubj)}(hrelay_buf_emptyh]j)}(hrelay_buf_emptyh]hrelay_buf_empty}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshKubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_buf_emptyasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjshKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhjshKubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshKhjZhhubj)}(hhh]j)}(h%boolean, is the channel buffer empty?h]h%boolean, is the channel buffer empty?}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj"hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjhNhNubj)}(hl**Parameters** ``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is empty, 0 otherwise.h](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhjAubj)}(hhh]j")}(hX``struct rchan_buf *buf`` channel buffer Returns 1 if the buffer is empty, 0 otherwise.h](j()}(h``struct rchan_buf *buf``h]j.)}(hjfh]hstruct rchan_buf *buf}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj`ubjD)}(hhh](j)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj|ubj)}(h.Returns 1 if the buffer is empty, 0 otherwise.h]h.Returns 1 if the buffer is empty, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chKhj|ubeh}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hKhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwakeup_readers (C function)c.wakeup_readershNtauh1hhjhhhNhNubh)}(hhh](h)}(h+void wakeup_readers (struct irq_work *work)h]h)}(h*void wakeup_readers(struct irq_work *work)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hwakeup_readersh]j)}(hwakeup_readersh]hwakeup_readers}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct irq_work *work)h]j5)}(hstruct irq_work *workh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hirq_workh]hirq_work}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsjsbc.wakeup_readersasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hworkh]hwork}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h$wake up readers waiting on a channelh]h$wake up readers waiting on a channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h{**Parameters** ``struct irq_work *work`` contains the channel buffer This is the function used to defer reader wakingh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM hjubj)}(hhh]j")}(hg``struct irq_work *work`` contains the channel buffer This is the function used to defer reader wakingh](j()}(h``struct irq_work *work``h]j.)}(hjh]hstruct irq_work *work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM hjubjD)}(hhh](j)}(hcontains the channel bufferh]hcontains the channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubj)}(h0This is the function used to defer reader wakingh]h0This is the function used to defer reader waking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chM hjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__relay_reset (C function)c.__relay_resethNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void __relay_reset (struct rchan_buf *buf, unsigned int init)h]h)}(hh]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj\sbc.__relay_resetasbuh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned int inith](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hinith]hinit}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhjGhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]j)}(hreset a channel bufferh]hreset a channel buffer}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the channel buffer ``unsigned int init`` 1 if this is a first-time initialization See relay_reset() for description of effect.h](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjfubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubjD)}(hhh]j)}(hthe channel bufferh]hthe channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hl``unsigned int init`` 1 if this is a first-time initialization See relay_reset() for description of effect.h](j()}(h``unsigned int init``h]j.)}(hjh]hunsigned int init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubjD)}(hhh](j)}(h(1 if this is a first-time initializationh]h(1 if this is a first-time initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubj)}(h,See relay_reset() for description of effect.h]h,See relay_reset() for description of effect.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubeh}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_close_buf (C function)c.relay_close_bufhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void relay_close_buf (struct rchan_buf *buf)h]h)}(h+void relay_close_buf(struct rchan_buf *buf)h](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hMubj)}(hrelay_close_bufh]j)}(hrelay_close_bufh]hrelay_close_buf}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hMubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjPsbc.relay_close_bufasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubah}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMhj"hhubj)}(hhh]j)}(hclose a channel bufferh]hclose a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj ubj)}(hhh]j")}(h``struct rchan_buf *buf`` channel buffer 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](j()}(h``struct rchan_buf *buf``h]j.)}(hj.h]hstruct rchan_buf *buf}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj(ubjD)}(hhh](j)}(hchannel bufferh]hchannel buffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjDubj)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjDubeh}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_open (C function)c.relay_file_openhNtauh1hhjhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_file_openasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct file *filph](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjBubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]jc.relay_file_openasbuh1hhjBubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hopen file op for relay filesh]hopen file op for relay files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file Increments the channel buffer refcount.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubjD)}(hhh]j)}(h the inodeh]h the inode}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hG``struct file *filp`` the file Increments the channel buffer refcount.h](j()}(h``struct file *filp``h]j.)}(hjAh]hstruct file *filp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj;ubjD)}(hhh](j)}(hthe fileh]hthe file}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjWubj)}(h'Increments the channel buffer refcount.h]h'Increments the channel buffer refcount.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjWubeh}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hjVhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_mmap (C function)c.relay_file_mmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hCint relay_file_mmap (struct file *filp, struct vm_area_struct *vma)h]h)}(hBint relay_file_mmap(struct file *filp, struct vm_area_struct *vma)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrelay_file_mmaph]j)}(hrelay_file_mmaph]hrelay_file_mmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h/(struct file *filp, struct vm_area_struct *vma)h](j5)}(hstruct file *filph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.relay_file_mmapasbuh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct vm_area_struct *vmah](j;)}(hj>h]hstruct}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j!c.relay_file_mmapasbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hmmap file op for relay filesh]hmmap file op for relay files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct file *filp`` the file ``struct vm_area_struct *vma`` the vma describing what to map Calls upon relay_mmap_buf() to map the file into user space.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubjD)}(hhh]j)}(hthe fileh]hthe file}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhjubj")}(h{``struct vm_area_struct *vma`` the vma describing what to map Calls upon relay_mmap_buf() to map the file into user space.h](j()}(h``struct vm_area_struct *vma``h]j.)}(hjTh]hstruct vm_area_struct *vma}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjNubjD)}(hhh](j)}(hthe vma describing what to maph]hthe vma describing what to map}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjjubj)}(h__poll_t relay_file_poll (struct file *filp, poll_table *wait)h]h)}(h=__poll_t relay_file_poll(struct file *filp, poll_table *wait)h](h)}(hhh]j)}(h__poll_th]h__poll_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsrelay_file_pollsbc.relay_file_pollasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrelay_file_pollh]j)}(hjh]hrelay_file_poll}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h%(struct file *filp, poll_table *wait)h](j5)}(hstruct file *filph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hfileh]hfile}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj/modnameN classnameNjwjz)}j}]jc.relay_file_pollasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfilph]hfilp}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hpoll_table *waith](h)}(hhh]j)}(h poll_tableh]h poll_table}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.relay_file_pollasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hi**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table Poll implemention.h](j)}(h**Parameters**h]j)}(hjh]sh Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjubj)}(hhh](j")}(h``struct file *filp`` the file h](j()}(h``struct file *filp``h]j.)}(hj&h]hstruct file *filp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj ubjD)}(hhh]j)}(hthe fileh]hthe file}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjubj")}(h3``poll_table *wait`` poll table Poll implemention.h](j()}(h``poll_table *wait``h]j.)}(hj_h]hpoll_table *wait}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjYubjD)}(hhh](j)}(h poll tableh]h poll table}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjuubj)}(hPoll implemention.h]hPoll implemention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjuubeh}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelay_file_release (C function)c.relay_file_releasehNtauh1hhjhhhNhNubh)}(hhh](h)}(h?int relay_file_release (struct inode *inode, struct file *filp)h]h)}(h>int relay_file_release(struct inode *inode, struct file *filp)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrelay_file_releaseh]j)}(hrelay_file_releaseh]hrelay_file_release}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h((struct inode *inode, struct file *filp)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hinodeh]hinode}(hj# hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj% modnameN classnameNjwjz)}j}]j)}jsjsbc.relay_file_releaseasbuh1hhj ubh)}(h h]h }(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinodeh]hinode}(hj^ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct file *filph](j;)}(hj>h]hstruct}(hjw hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjs ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs ubh)}(hhh]j)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j? c.relay_file_releaseasbuh1hhjs ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs ubj)}(hfilph]hfilp}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjs ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hrelease file op for relay filesh]hrelease file op for relay files}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!jj!jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file Decrements the channel refcount, as the filesystem is no longer using it.h](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(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:225: ./kernel/relay.chMhj!ubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hj9!h]hstruct inode *inode}(hj;!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7!ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj3!ubjD)}(hhh]j)}(h the inodeh]h the inode}(hjR!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN!hMhjO!ubah}(h]h ]h"]h$]h&]uh1jChj3!ubeh}(h]h ]h"]h$]h&]uh1j!hjN!hMhj0!ubj")}(hi``struct file *filp`` the file Decrements the channel refcount, as the filesystem is no longer using it.h](j()}(h``struct file *filp``h]j.)}(hjr!h]hstruct file *filp}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjp!ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjl!ubjD)}(hhh](j)}(hthe fileh]hthe file}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj!ubj)}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubeh}(h]h ]h"]h$]h&]uh1jChjl!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhj0!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhjhhhNhNubh)}(hhh](h)}(hLsize_t relay_file_read_subbuf_avail (size_t read_pos, struct rchan_buf *buf)h]h)}(hKsize_t relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf *buf)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!modnameN classnameNjwjz)}j}]j)}jsrelay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhj!hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMJubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj!hMJubj)}(hrelay_file_read_subbuf_availh]j)}(hj!h]hrelay_file_read_subbuf_avail}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj "ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj!hMJubj/)}(h((size_t read_pos, struct rchan_buf *buf)h](j5)}(hsize_t read_posh](h)}(hhh]j)}(hsize_th]hsize_t}(hj/"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1"modnameN classnameNjwjz)}j}]j!c.relay_file_read_subbuf_availasbuh1hhj("ubh)}(h h]h }(hjM"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj("ubj)}(hread_posh]hread_pos}(hj["hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj("ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$"ubj5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hjt"hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjp"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp"ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j!c.relay_file_read_subbuf_availasbuh1hhjp"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp"ubj)}(hbufh]hbuf}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjp"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$"ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj!hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj!hMJubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hMJhj!hhubj)}(hhh]j)}(h$return bytes available in sub-bufferh]h$return bytes available in sub-buffer}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMJhj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj #jj #jjjuh1hhhhjhNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](j)}(h**Parameters**h]j)}(hj#h]h Parameters}(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:225: ./kernel/relay.chMNhj#ubj)}(hhh](j")}(h'``size_t read_pos`` file read position h](j()}(h``size_t read_pos``h]j.)}(hj6#h]hsize_t read_pos}(hj8#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4#ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMKhj0#ubjD)}(hhh]j)}(hfile read positionh]hfile read position}(hjO#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK#hMKhjL#ubah}(h]h ]h"]h$]h&]uh1jChj0#ubeh}(h]h ]h"]h$]h&]uh1j!hjK#hMKhj-#ubj")}(h.``struct rchan_buf *buf`` relay channel bufferh](j()}(h``struct rchan_buf *buf``h]j.)}(hjo#h]hstruct rchan_buf *buf}(hjq#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjm#ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMMhji#ubjD)}(hhh]j)}(hrelay channel bufferh]hrelay channel buffer}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMLhj#ubah}(h]h ]h"]h$]h&]uh1jChji#ubeh}(h]h ]h"]h$]h&]uh1j!hj#hMMhj-#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhjhhhNhNubh)}(hhh](h)}(h8size_t relay_file_read_start_pos (struct rchan_buf *buf)h]h)}(h7size_t relay_file_read_start_pos(struct rchan_buf *buf)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsrelay_file_read_start_possbc.relay_file_read_start_posasbuh1hhj#hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMeubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj#hMeubj)}(hrelay_file_read_start_posh]j)}(hj#h]hrelay_file_read_start_pos}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj#hMeubj/)}(h(struct rchan_buf *buf)h]j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj($hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj9$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;$modnameN classnameNjwjz)}j}]j#c.relay_file_read_start_posasbuh1hhj$ubh)}(h h]h }(hjW$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hje$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbufh]hbuf}(hjr$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj$ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj#hMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj#hMeubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMehj#hhubj)}(hhh]j)}(h%find the first available byte to readh]h%find the first available byte to read}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMehj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj$jj$jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer 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](j)}(h**Parameters**h]j)}(hj$h]h Parameters}(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:225: ./kernel/relay.chMihj$ubj)}(hhh]j")}(h``struct rchan_buf *buf`` relay channel buffer 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](j()}(h``struct rchan_buf *buf``h]j.)}(hj$h]hstruct rchan_buf *buf}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMihj$ubjD)}(hhh](j)}(hrelay channel bufferh]hrelay channel buffer}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMfhj$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]hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhhj$ubeh}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMihj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhjhhhNhNubh)}(hhh](h)}(hUsize_t relay_file_read_end_pos (struct rchan_buf *buf, size_t read_pos, size_t count)h]h)}(hTsize_t relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjI%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjF%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjK%modnameN classnameNjwjz)}j}]j)}jsrelay_file_read_end_possbc.relay_file_read_end_posasbuh1hhjB%hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMubh)}(h h]h }(hjk%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB%hhhjj%hMubj)}(hrelay_file_read_end_posh]j)}(hjg%h]hrelay_file_read_end_pos}(hj}%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy%ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjB%hhhjj%hMubj/)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j5)}(hstruct rchan_buf *bufh](j;)}(hj>h]hstruct}(hj%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]je%c.relay_file_read_end_posasbuh1hhj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hbufh]hbuf}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hsize_t read_posh](h)}(hhh]j)}(hsize_th]hsize_t}(hj &hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj &modnameN classnameNjwjz)}j}]je%c.relay_file_read_end_posasbuh1hhj&ubh)}(h h]h }(hj)&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hread_posh]hread_pos}(hj7&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjS&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjU&modnameN classnameNjwjz)}j}]je%c.relay_file_read_end_posasbuh1hhjL&ubh)}(h h]h }(hjq&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL&ubj)}(hcounth]hcount}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjL&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjB%hhhjj%hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj>%hhhjj%hMubah}(h]j9%ah ](jjeh"]h$]h&]jj)jhuh1hhjj%hMhj;%hhubj)}(hhh]j)}(hreturn the new read positionh]hreturn the new read position}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj;%hhhjj%hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj&jj&jjjuh1hhhhjhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj&h]h Parameters}(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:225: ./kernel/relay.chMhj&ubj)}(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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj&ubjD)}(hhh]j)}(hrelay channel bufferh]hrelay channel buffer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhj&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&]uh1j-hj!'ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhj'ubjD)}(hhh]j)}(hfile read positionh]hfile read position}(hj<'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8'hMhj9'ubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hj8'hMhj&ubj")}(h+``size_t count`` number of bytes to be readh](j()}(h``size_t count``h]j.)}(hj\'h]h size_t count}(hj^'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZ'ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjV'ubjD)}(hhh]j)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hju'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:225: ./kernel/relay.chMhjr'ubah}(h]h ]h"]h$]h&]uh1jChjV'ubeh}(h]h ]h"]h$]h&]uh1j!hjq'hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjhhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__request_module (C function)c.__request_modulehNtauh1hhj'hhhNhNubh)}(hhh](h)}(h6int __request_module (bool wait, const char *fmt, ...)h]h)}(h5int __request_module(bool wait, const char *fmt, ...)h](h)}(hinth]hint}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKtubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hKtubj)}(h__request_moduleh]j)}(h__request_moduleh]h__request_module}(hj (hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj'hKtubj/)}(h!(bool wait, const char *fmt, ...)h](j5)}(h bool waith](h)}(hjoh]hbool}(hj%(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!(ubh)}(h h]h }(hj2(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!(ubj)}(hwaith]hwait}(hj@(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjY(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjU(ubh)}(h h]h }(hjf(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU(ubh)}(hcharh]hchar}(hjt(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU(ubj)}(hfmth]hfmt}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubj5)}(h...h]j)}(hjh]h...}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'hhhj'hKtubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj'hKtubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hKthj'hhubj)}(hhh]j)}(htry to load a kernel moduleh]htry to load a kernel module}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKthj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hKtubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhj'hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj)h]h Parameters}(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:234: ./kernel/module/kmod.chKxhj(ubj)}(hhh](j")}(h:``bool wait`` wait (or not) for the operation to complete h](j()}(h ``bool wait``h]j.)}(hj )h]h bool wait}(hj")hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKuhj)ubjD)}(hhh]j)}(h+wait (or not) for the operation to completeh]h+wait (or not) for the operation to complete}(hj9)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5)hKuhj6)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj5)hKuhj)ubj")}(hJ``const char *fmt`` printf style format string for the name of the module h](j()}(h``const char *fmt``h]j.)}(hjY)h]hconst char *fmt}(hj[)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjW)ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKvhjS)ubjD)}(hhh]j)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn)hKvhjo)ubah}(h]h ]h"]h$]h&]uh1jChjS)ubeh}(h]h ]h"]h$]h&]uh1j!hjn)hKvhj)ubj")}(h4``...`` arguments as specified in the format string h](j()}(h``...``h]j.)}(hj)h]h...}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKwhj)ubjD)}(hhh]j)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hKwhj)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj)hKwhj)ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hj)h]h Description}(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:234: ./kernel/module/kmod.chKyhj(ubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKyhj(ubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:234: ./kernel/module/kmod.chKhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj'hhhNhNubeh}(h]kernel-module-auto-loadingah ]h"]kernel module auto-loadingah$]h&]uh1hhj'hhhhhKubh)}(hhh](h)}(hModule debuggingh]hModule debugging}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhKubj)}(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.}(hj!*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chKhj*hhubj)}(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:}(hj0*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chKhj*hhubj<8)}(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]j)}(hhh](j)}(h0memory allocated with kernel_read_file_from_fd()h]j)}(hjH*h]h0memory allocated with kernel_read_file_from_fd()}(hjJ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK#hjF*ubah}(h]h ]h"]h$]h&]uh1jhjC*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]j)}(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.}(hjb*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK$hj^*ubah}(h]h ]h"]h$]h&]uh1jhjC*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]j)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.h]hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.}(hj{*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK)hjw*ubah}(h]h ]h"]h$]h&]uh1jhjC*ubeh}(h]h ]h"]h$]h&]j loweralphajhjjuh1jhj?*ubah}(h]h ]h"]h$]h&]uh1j;8hjW*hK#hj*hhubj)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK-hj*hhubj)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK3hj*hhubj)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:240: ./kernel/module/stats.chK9hj*hhubh)}(hhh](h)}(h4dup_failed_modules - tracks duplicate failed modulesh]h4dup_failed_modules - tracks duplicate failed modules}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhKubj)}(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:}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chK@hj*hhubj<8)}(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]j)}(hhh](j)}(h.kernel_read_file_from_fd() call uses vmalloc()h]j)}(hj*h]h.kernel_read_file_from_fd() call uses vmalloc()}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKFhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(h)optional module decompression uses vmap()h]j)}(hj +h]h)optional module decompression uses vmap()}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKGhj +ubah}(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]j)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKHhj!+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhj*ubah}(h]h ]h"]h$]h&]uh1j;8hj+hKFhj*hhubj)}(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.}(hjF+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKKhj*hhubj)}(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:}(hjU+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKPhj*hhubj<8)}(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]j)}(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]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]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}(hjo+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKVhjk+ubah}(h]h ]h"]h$]h&]uh1jhjh+ubj)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]j)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation callsh]hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chKZhj+ubah}(h]h ]h"]h$]h&]uh1jhjh+ubeh}(h]h ]h"]h$]h&]jj*jhjjuh1jhjd+ubah}(h]h ]h"]h$]h&]uh1j;8hj}+hKVhj*hhubj)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:246: ./kernel/module/stats.chK^hj*hhubeh}(h]2dup-failed-modules-tracks-duplicate-failed-modulesah ]h"]4dup_failed_modules - tracks duplicate failed modulesah$]h&]uh1hhj*hhhhhKubh)}(hhh](h)}(h"module statistics debugfs countersh]h"module statistics debugfs counters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hhhhhKubj)}(hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:h]hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKghj+hhubj<8)}(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]j)}(hk**invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes**h](j)}(h**invalid_kread_bytes**h]hinvalid_kread_bytes}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh + }(hj+hhhNhNubj)}(h**invalid_decompress_bytes**h]hinvalid_decompress_bytes}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh + }hj+sbj)}(h**invalid_becoming_bytes**h]hinvalid_becoming_bytes}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh + }hj+sbj)}(h**invalid_mod_bytes**h]hinvalid_mod_bytes}(hj%,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKjhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhj9,hKjhj+ubah}(h]h ]h"]h$]h&]uh1j;8hj9,hKjhj+hhubj)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hjL,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKohj+hhubj<8)}(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<8)}(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]j)}(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}(hjj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKrhjf,ubah}(h]h ]h"]h$]h&]uh1jhjc,ubj)}(hjtotal_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this systemh]j)}(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}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKthj,ubah}(h]h ]h"]h$]h&]uh1jhjc,ubj)}(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]j)}(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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKvhj,ubah}(h]h ]h"]h$]h&]uh1jhjc,ubj)}(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]j)}(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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKzhj,ubah}(h]h ]h"]h$]h&]uh1jhjc,ubj)}(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]j)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:h](hinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our }(hj,hhhNhNubj)}(h **modules**h]hmodules}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubhX linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our }(hj,hhhNhNubh)}(h:c:type:`modules`h]j.)}(hj,h]hmodules}(hj,hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8modulesuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chK~hj,ubhX list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:?}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj-hK~hj,ubah}(h]h ]h"]h$]h&]uh1jhjc,ubeh}(h]h ]h"]h$]h&]jjuh1jhjx,hKrhj_,ubj<8)}(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]j)}(hj'-h]h,module_sig_check() - module signature checks}(hj)-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj%-ubah}(h]h ]h"]h$]h&]uh1jhj"-ubj)}(h5elf_validity_cache_copy() - some ELF validation issueh]j)}(hj?-h]h5elf_validity_cache_copy() - some ELF validation issue}(hjA-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj=-ubah}(h]h ]h"]h$]h&]uh1jhj"-ubj)}(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](j)}(hearly_mod_check():h]hearly_mod_check():}(hjY-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhjU-ubj)}(hhh](j)}(h blacklistingh]j)}(hjm-h]h blacklisting}(hjo-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhjk-ubah}(h]h ]h"]h$]h&]uh1jhjh-ubj)}(h!failed to rewrite section headersh]j)}(hj-h]h!failed to rewrite section headers}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhjh-ubj)}(h version magich]j)}(hj-h]h version magic}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhjh-ubj)}(h(live patch requirements didn't check outh]j)}(hj-h]h*live patch requirements didn’t check out}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhjh-ubj)}(h1the module was detected as being already present h]j)}(h0the module was detected as being already presenth]h0the module was detected as being already present}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhjh-ubeh}(h]h ]h"]h$]h&]jjuh1jhj|-hKhjU-ubeh}(h]h ]h"]h$]h&]uh1jhj"-ubeh}(h]h ]h"]h$]h&]jjuh1jhj6-hKhj-ubah}(h]h ]h"]h$]h&]uh1j;8hj6-hKhj_,ubj)}(hhh]j)}(hXinvalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. h]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]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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhj.hKhj_,ubeh}(h]h ]h"]h$]h&]uh1j;8hjx,hKrhj[,ubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]j)}(hj).h]hAmodcount: how many modules we’ve loaded in our kernel life time}(hj+.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./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]j)}(hjA.h]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./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]j)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]hfailed_decompress: how many failed module decompression attempts we’ve had. These really should not happen unless your compression / decompression might be broken.}(hj[.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhjW.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]j)}(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.}(hjt.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhjp.ubah}(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]j)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.h]hXfailed_load_modules: how many modules failed once we’ve allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:252: ./kernel/module/stats.chKhj.ubah}(h]h ]h"]h$]h&]uh1jhj$.ubeh}(h]h ]h"]h$]h&]jjuh1jhj8.hKhj[,ubeh}(h]h ]h"]h$]h&]uh1j;8hjx,hKrhj+hhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhj*hhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhj'hhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hhhhhMubj)}(h:Refer to the files in kernel/module/ for more information.h]h:Refer to the files in kernel/module/ for more information.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj.hhubeh}(h]inter-module-supportah ]h"]inter module supportah$]h&]uh1hhj'hhhhhMubeh}(h]module-supportah ]h"]module supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHardware Interfacesh]hHardware Interfaces}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrequest_dma (C function) c.request_dmahNtauh1hhj.hhhNhNubh)}(hhh](h)}(hh]hstruct}(hjK2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjG2hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chM ubh)}(h h]h }(hjY2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG2hhhjX2hM ubh)}(hhh]j)}(hresourceh]hresource}(hjj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjg2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjl2modnameN classnameNjwjz)}j}]j)}jsrequest_resource_conflictsbc.request_resource_conflictasbuh1hhjG2hhhjX2hM ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG2hhhjX2hM ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG2hhhjX2hM ubj)}(hrequest_resource_conflicth]j)}(hj2h]hrequest_resource_conflict}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjG2hhhjX2hM ubj/)}(h-(struct resource *root, struct resource *new)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hresourceh]hresource}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j2c.request_resource_conflictasbuh1hhj2ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hrooth]hroot}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hj53hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj13ubh)}(h h]h }(hjB3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj13ubh)}(hhh]j)}(hresourceh]hresource}(hjS3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjU3modnameN classnameNjwjz)}j}]j2c.request_resource_conflictasbuh1hhj13ubh)}(h h]h }(hjq3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj13ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj13ubj)}(hnewh]hnew}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj13ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjG2hhhjX2hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjC2hhhjX2hM ubah}(h]j>2ah ](jjeh"]h$]h&]jj)jhuh1hhjX2hM hj@2hhubj)}(hhh]j)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chM hj3hhubah}(h]h ]h"]h$]h&]uh1jhj@2hhhjX2hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj3jj3jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj3ubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hj3h]hstruct resource *root}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj3ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 4hMhj 4ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj 4hMhj3ubj")}(h?``struct resource *new`` resource descriptor desired by caller h](j()}(h``struct resource *new``h]j.)}(hj04h]hstruct resource *new}(hj24hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.4ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj*4ubjD)}(hhh]j)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjI4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE4hMhjF4ubah}(h]h ]h"]h$]h&]uh1jChj*4ubeh}(h]h ]h"]h$]h&]uh1j!hjE4hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubj)}(h**Description**h]j)}(hjk4h]h Description}(hjm4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji4ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj3ubj)}(h2Returns 0 for success, conflict resource on error.h]h2Returns 0 for success, conflict resource on error.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_next_iomem_res (C function)c.find_next_iomem_reshNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hint find_next_iomem_res (resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h]h)}(hint find_next_iomem_res(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](h)}(hinth]hint}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMDubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj4hMDubj)}(hfind_next_iomem_resh]j)}(hfind_next_iomem_resh]hfind_next_iomem_res}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhhj4hMDubj/)}(hk(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](j5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsj4sbc.find_next_iomem_resasbuh1hhj4ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hstarth]hstart}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(hresource_size_t endh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj:5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj75ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<5modnameN classnameNjwjz)}j}]j 5c.find_next_iomem_resasbuh1hhj35ubh)}(h h]h }(hjX5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj35ubj)}(hendh]hend}(hjf5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj35ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{5ubh)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{5ubj)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(hunsigned long desch](h)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hdesch]hdesc}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubj5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hj!6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hj.6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hresourceh]hresource}(hj?6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjA6modnameN classnameNjwjz)}j}]j 5c.find_next_iomem_resasbuh1hhj6ubh)}(h h]h }(hj]6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjk6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hresh]hres}(hjx6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj4ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhj4hMDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhj4hMDubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMDhj4hhubj)}(hhh]j)}(hIFinds the lowest iomem resource that covers part of [**start**..**end**].h](h5Finds the lowest iomem resource that covers part of [}(hj6hhhNhNubj)}(h **start**h]hstart}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh ..**end**].}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMDhj6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMDubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6jj6jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMHhj6ubj)}(hhh](j")}(hE``resource_size_t start`` start address of the resource searched for h](j()}(h``resource_size_t start``h]j.)}(hj6h]hresource_size_t start}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMKhj6ubjD)}(hhh]j)}(h*start address of the resource searched forh]h*start address of the resource searched for}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 7hMKhj 7ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj 7hMKhj6ubj")}(h5``resource_size_t end`` end address of same resource h](j()}(h``resource_size_t end``h]j.)}(hj.7h]hresource_size_t end}(hj07hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,7ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMLhj(7ubjD)}(hhh]j)}(hend address of same resourceh]hend address of same resource}(hjG7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC7hMLhjD7ubah}(h]h ]h"]h$]h&]uh1jChj(7ubeh}(h]h ]h"]h$]h&]uh1j!hjC7hMLhj6ubj")}(h;``unsigned long flags`` flags which the resource must have h](j()}(h``unsigned long flags``h]j.)}(hjg7h]hunsigned long flags}(hji7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hje7ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMMhja7ubjD)}(hhh]j)}(h"flags which the resource must haveh]h"flags which the resource must have}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|7hMMhj}7ubah}(h]h ]h"]h$]h&]uh1jChja7ubeh}(h]h ]h"]h$]h&]uh1j!hj|7hMMhj6ubj")}(h9``unsigned long desc`` descriptor the resource must have h](j()}(h``unsigned long desc``h]j.)}(hj7h]hunsigned long desc}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMNhj7ubjD)}(hhh]j)}(h!descriptor the resource must haveh]h!descriptor the resource must have}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMNhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMNhj6ubj")}(h7``struct resource *res`` return ptr, if resource found h](j()}(h``struct resource *res``h]j.)}(hj7h]hstruct resource *res}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMOhj7ubjD)}(hhh]j)}(hreturn ptr, if resource foundh]hreturn ptr, if resource found}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMOhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hMOhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMQhj6ubj)}(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 }(hj*8hhhNhNubj)}(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}(hj28hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*8ubhW..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.}(hj*8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMEhj6ubj)}(hcThe caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](hThe caller must specify }(hjK8hhhNhNubj)}(h **start**h]hstart}(hjS8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK8ubh, }(hjK8hhhNhNubj)}(h**end**h]hend}(hje8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK8ubh, }hjK8sbj)}(h **flags**h]hflags}(hjw8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK8ubh, and }(hjK8hhhNhNubj)}(h**desc**h]hdesc}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK8ubh (which may be IORES_DESC_NONE).}(hjK8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMIhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ reallocate_resource (C function)c.reallocate_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hint reallocate_resource (struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h]h)}(hint reallocate_resource(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](h)}(hinth]hint}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj8hMubj)}(hreallocate_resourceh]j)}(hreallocate_resourceh]hreallocate_resource}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj8hhhj8hMubj/)}(hn(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8ubh)}(h h]h }(hj 9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hresourceh]hresource}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j)}jsj8sbc.reallocate_resourceasbuh1hhj8ubh)}(h h]h }(hj=9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjK9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hrooth]hroot}(hjX9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8ubj5)}(hstruct resource *oldh](j;)}(hj>h]hstruct}(hjq9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjm9ubh)}(h h]h }(hj~9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm9ubh)}(hhh]j)}(hresourceh]hresource}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j99c.reallocate_resourceasbuh1hhjm9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm9ubj)}(holdh]hold}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8ubj5)}(hresource_size_t newsizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j99c.reallocate_resourceasbuh1hhj9ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hnewsizeh]hnewsize}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8ubj5)}(h&struct resource_constraint *constrainth](j;)}(hj>h]hstruct}(hj):hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%:ubh)}(h h]h }(hj6:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%:ubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjG:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD:ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjI:modnameN classnameNjwjz)}j}]j99c.reallocate_resourceasbuh1hhj%:ubh)}(h h]h }(hje:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%:ubj)}(hjh]h*}(hjs:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%:ubj)}(h constrainth]h constraint}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj8ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj8hhhj8hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhj8hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhj8hhubj)}(hhh]j)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(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:272: ./kernel/resource.chMhj:ubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hj:h]hstruct resource *root}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj:ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhj:ubj")}(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&]uh1j-hj";ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj;ubjD)}(hhh]j)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj=;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9;hMhj:;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj9;hMhj:ubj")}(h@``resource_size_t newsize`` new size of the resource descriptor h](j()}(h``resource_size_t newsize``h]j.)}(hj];h]hresource_size_t newsize}(hj_;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[;ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjW;ubjD)}(hhh]j)}(h#new size of the resource descriptorh]h#new size of the resource descriptor}(hjv;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr;hMhjs;ubah}(h]h ]h"]h$]h&]uh1jChjW;ubeh}(h]h ]h"]h$]h&]uh1j!hjr;hMhj:ubj")}(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&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj;ubjD)}(hhh]j)}(h5the memory range and alignment constraints to be met.h]h5the memory range and alignment constraints to be met.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlookup_resource (C function)c.lookup_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hPstruct resource * lookup_resource (struct resource *root, resource_size_t start)h]h)}(hNstruct resource *lookup_resource(struct resource *root, resource_size_t start)h](j;)}(hj>h]hstruct}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMKubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;hhhj;hMKubh)}(hhh]j)}(hresourceh]hresource}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj <ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]j)}jslookup_resourcesbc.lookup_resourceasbuh1hhj;hhhj;hMKubh)}(h h]h }(hj0<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;hhhj;hMKubj)}(hjh]h*}(hj><hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj;hMKubj)}(hlookup_resourceh]j)}(hj-<h]hlookup_resource}(hjO<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjK<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj;hhhj;hMKubj/)}(h.(struct resource *root, resource_size_t start)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hjj<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjf<ubh)}(h h]h }(hjw<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf<ubh)}(hhh]j)}(hresourceh]hresource}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]j+<c.lookup_resourceasbuh1hhjf<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf<ubj)}(hrooth]hroot}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjb<ubj5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]j+<c.lookup_resourceasbuh1hhj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hstarth]hstart}(hj =hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjb<ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj;hhhj;hMKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;hhhj;hMKubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMKhj;hhubj)}(hhh]j)}(h5find an existing resource by a resource start addressh]h5find an existing resource by a resource start address}(hj3=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMKhj0=hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjK=jjK=jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjU=h]h Parameters}(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:272: ./kernel/resource.chMOhjO=ubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjt=h]hstruct resource *root}(hjv=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjr=ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMLhjn=ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMLhj=ubah}(h]h ]h"]h$]h&]uh1jChjn=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMLhjk=ubj")}(h1``resource_size_t start`` resource start address h](j()}(h``resource_size_t start``h]j.)}(hj=h]hresource_size_t start}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMMhj=ubjD)}(hhh]j)}(hresource start addressh]hresource start address}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMMhj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMMhjk=ubeh}(h]h ]h"]h$]h&]uh1jhjO=ubj)}(h**Description**h]j)}(hj=h]h Description}(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:272: ./kernel/resource.chMOhjO=ubj)}(h:Returns a pointer to the resource if found, NULL otherwiseh]h:Returns a pointer to the resource if found, NULL otherwise}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMOhjO=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%insert_resource_conflict (C function)c.insert_resource_conflicthNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hZstruct resource * insert_resource_conflict (struct resource *parent, struct resource *new)h]h)}(hXstruct resource *insert_resource_conflict(struct resource *parent, struct resource *new)h](j;)}(hj>h]hstruct}(hj->hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)>hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hj;>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)>hhhj:>hMubh)}(hhh]j)}(hresourceh]hresource}(hjL>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjN>modnameN classnameNjwjz)}j}]j)}jsinsert_resource_conflictsbc.insert_resource_conflictasbuh1hhj)>hhhj:>hMubh)}(h h]h }(hjm>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)>hhhj:>hMubj)}(hjh]h*}(hj{>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)>hhhj:>hMubj)}(hinsert_resource_conflicth]j)}(hjj>h]hinsert_resource_conflict}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)>hhhj:>hMubj/)}(h/(struct resource *parent, struct resource *new)h](j5)}(hstruct resource *parenth](j;)}(hj>h]hstruct}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hresourceh]hresource}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]jh>c.insert_resource_conflictasbuh1hhj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hparenth]hparent}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hj$?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hresourceh]hresource}(hj5?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7?modnameN classnameNjwjz)}j}]jh>c.insert_resource_conflictasbuh1hhj?ubh)}(h h]h }(hjS?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hja?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hnewh]hnew}(hjn?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)>hhhj:>hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%>hhhj:>hMubah}(h]j >ah ](jjeh"]h$]h&]jj)jhuh1hhj:>hMhj">hhubj)}(hhh]j)}(h%Inserts resource in the resource treeh]h%Inserts resource in the resource tree}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhj">hhhj:>hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj?h]h Parameters}(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:272: ./kernel/resource.chMhj?ubj)}(hhh](j")}(h7``struct resource *parent`` parent of the new resource h](j()}(h``struct resource *parent``h]j.)}(hj?h]hstruct resource *parent}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?ubjD)}(hhh]j)}(hparent of the new resourceh]hparent of the new resource}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj?ubj")}(h0``struct resource *new`` new resource to insert h](j()}(h``struct resource *new``h]j.)}(hj@h]hstruct resource *new}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj @ubjD)}(hhh]j)}(hnew resource to inserth]hnew resource to insert}(hj+@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'@hMhj(@ubah}(h]h ]h"]h$]h&]uh1jChj @ubeh}(h]h ]h"]h$]h&]uh1j!hj'@hMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubj)}(h**Description**h]j)}(hjM@h]h Description}(hjO@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?ubj)}(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.}(hjc@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?ubj)}(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.}(hjr@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?ubj)}(hYThis function is intended for producers of resources, such as FW modules and bus drivers.h]hYThis function is intended for producers of resources, such as FW modules and bus drivers.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌresource_alignment (C function)c.resource_alignmenthNtauh1hhj!2hhhNhNubh)}(hhh](h)}(h9resource_size_t resource_alignment (struct resource *res)h]h)}(h8resource_size_t resource_alignment(struct resource *res)h](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsresource_alignmentsbc.resource_alignmentasbuh1hhj@hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj@hMubj)}(hresource_alignmenth]j)}(hj@h]hresource_alignment}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhj@hMubj/)}(h(struct resource *res)h]j5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(hresourceh]hresource}(hj AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"AmodnameN classnameNjwjz)}j}]j@c.resource_alignmentasbuh1hhj@ubh)}(h h]h }(hj>AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjLAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hresh]hres}(hjYAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj@hhhj@hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhj@hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj@hhubj)}(hhh]j)}(hcalculate resource's alignmenth]h calculate resource’s alignment}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhj!2hNhNubj)}(h**Parameters** ``struct resource *res`` resource pointer **Description** Returns alignment on success, 0 (invalid alignment) on failure.h](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjAubj)}(hhh]j")}(h*``struct resource *res`` resource pointer h](j()}(h``struct resource *res``h]j.)}(hjAh]hstruct resource *res}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjAubjD)}(hhh]j)}(hresource pointerh]hresource pointer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjAh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjAubj)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*release_mem_region_adjustable (C function)c.release_mem_region_adjustablehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hPvoid release_mem_region_adjustable (resource_size_t start, resource_size_t size)h]h)}(hOvoid release_mem_region_adjustable(resource_size_t start, resource_size_t size)h](h)}(hvoidh]hvoid}(hjDBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@BhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMoubh)}(h h]h }(hjSBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@BhhhjRBhMoubj)}(hrelease_mem_region_adjustableh]j)}(hrelease_mem_region_adjustableh]hrelease_mem_region_adjustable}(hjeBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@BhhhjRBhMoubj/)}(h-(resource_size_t start, resource_size_t size)h](j5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsjgBsbc.release_mem_region_adjustableasbuh1hhj}Bubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Bubj)}(hstarth]hstart}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Bubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyBubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]jBc.release_mem_region_adjustableasbuh1hhjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hsizeh]hsize}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyBubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@BhhhjRBhMoubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjh]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hresourceh]hresource}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsjDsbc.merge_system_ram_resourceasbuh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hresh]hres}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubah}(h]h ]h"]h$]h&]j,j-uh1j.hjmDhhhjDhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjiDhhhjDhMubah}(h]jdDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjfDhhubj)}(hhh]j)}(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}(hj1EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhj.Ehhubah}(h]h ]h"]h$]h&]uh1jhjfDhhhjDhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIEjjIEjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSEh]h Parameters}(hjUEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQEubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjMEubj)}(hhh]j")}(h-``struct resource *res`` resource descriptor h](j()}(h``struct resource *res``h]j.)}(hjrEh]hstruct resource *res}(hjtEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpEubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjlEubjD)}(hhh]j)}(hresource descriptorh]hresource descriptor}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjlEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjiEubah}(h]h ]h"]h$]h&]uh1jhjMEubj)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjMEubj)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjMEubj)}(h**Note**h]j)}(hjEh]hNote}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjMEubj)}(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]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]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!}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]j)}(hjFh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:272: ./kernel/resource.chMhjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjEhMhjMEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrequest_resource (C function)c.request_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hBint request_resource (struct resource *root, struct resource *new)h]h)}(hAint request_resource(struct resource *root, struct resource *new)h](h)}(hinth]hint}(hjDFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@FhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjSFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@FhhhjRFhMubj)}(hrequest_resourceh]j)}(hrequest_resourceh]hrequest_resource}(hjeFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@FhhhjRFhMubj/)}(h-(struct resource *root, struct resource *new)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}Fubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Fubh)}(hhh]j)}(hresourceh]hresource}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjgFsbc.request_resourceasbuh1hhj}Fubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Fubj)}(hrooth]hroot}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Fubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyFubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(hresourceh]hresource}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGmodnameN classnameNjwjz)}j}]jFc.request_resourceasbuh1hhjFubh)}(h h]h }(hj/GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hj=GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hnewh]hnew}(hjJGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyFubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@FhhhjRFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjh]hstruct}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(hresourceh]hresource}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjHsbc.release_resourceasbuh1hhjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(holdh]hold}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHubah}(h]h ]h"]h$]h&]j,j-uh1j.hjjHhhhj|HhM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfHhhhj|HhM/ubah}(h]jaHah ](jjeh"]h$]h&]jj)jhuh1hhj|HhM/hjcHhhubj)}(hhh]j)}(h&release a previously reserved resourceh]h&release a previously reserved resource}(hj.IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM/hj+Ihhubah}(h]h ]h"]h$]h&]uh1jhjcHhhhj|HhM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjFIjjFIjjjuh1hhhhj!2hNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](j)}(h**Parameters**h]j)}(hjPIh]h Parameters}(hjRIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNIubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM3hjJIubj)}(hhh]j")}(h)``struct resource *old`` resource pointerh](j()}(h``struct resource *old``h]j.)}(hjoIh]hstruct resource *old}(hjqIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmIubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM5hjiIubjD)}(hhh]j)}(hresource pointerh]hresource pointer}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM0hjIubah}(h]h ]h"]h$]h&]uh1jChjiIubeh}(h]h ]h"]h$]h&]uh1j!hjIhM5hjfIubah}(h]h ]h"]h$]h&]uh1jhjJIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ walk_iomem_res_desc (C function)c.walk_iomem_res_deschNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hint walk_iomem_res_desc (unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource *, void *))h]h)}(hint walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](h)}(hinth]hint}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhjIhMubj)}(hwalk_iomem_res_desch]j)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhjIhMubj/)}(hn(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j5)}(hunsigned long desch](h)}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hlongh]hlong}(hj"JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hj0JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hdesch]hdesc}(hj>JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjWJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSJubh)}(h h]h }(hjeJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSJubh)}(hlongh]hlong}(hjsJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSJubj)}(hflagsh]hflags}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjIsbc.walk_iomem_res_descasbuh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hstarth]hstart}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]jJc.walk_iomem_res_descasbuh1hhjJubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hendh]hend}(hj!KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(h void *argh](h)}(hvoidh]hvoid}(hj:KhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6Kubh)}(h h]h }(hjHKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6Kubj)}(hjh]h*}(hjVKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Kubj)}(hargh]harg}(hjcKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6Kubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubj5)}(h$int (*func)(struct resource*, void*)h](h)}(hinth]hint}(hj|KhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxKubj)}(hjƏh]h(}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj)}(hfunch]hfunc}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxKubj)}(hjh]h)}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj)}(hjƏh]h(}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj;)}(hj>h]hstruct}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxKubh)}(hhh]j)}(hresourceh]hresource}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jJc.walk_iomem_res_descasbuh1hhjxKubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj)}(hjUh]h,}(hj#LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubh)}(h h]h }(hj0LhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxKubh)}(hvoidh]hvoid}(hj>LhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxKubj)}(hjh]h*}(hjLLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubj)}(hjh]h)}(hjYLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhjIhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhjIhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhjIhhubj)}(hhh]j)}(hOWalks through iomem resources and calls func() with matching resource ranges. *h]hOWalks through iomem resources and calls func() with matching resource ranges. *}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjLjjLjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubj)}(hhh](j")}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j()}(h``unsigned long desc``h]j.)}(hjLh]hunsigned long desc}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubjD)}(hhh]j)}(hDI/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check.h](h5I/O resource descriptor. Use IORES_DESC_NONE to skip }(hjLhhhNhNubj)}(h**desc**h]hdesc}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh check.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjLhMhjLubj")}(h+``unsigned long flags`` I/O resource flags h](j()}(h``unsigned long flags``h]j.)}(hjMh]hunsigned long flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Mubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjMubjD)}(hhh]j)}(hI/O resource flagsh]hI/O resource flags}(hj'MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#MhMhj$Mubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hj#MhMhjLubj")}(h``u64 start`` start addr h](j()}(h ``u64 start``h]j.)}(hjGMh]h u64 start}(hjIMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEMubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjAMubjD)}(hhh]j)}(h start addrh]h start addr}(hj`MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\MhMhj]Mubah}(h]h ]h"]h$]h&]uh1jChjAMubeh}(h]h ]h"]h$]h&]uh1j!hj\MhMhjLubj")}(h``u64 end`` end addr h](j()}(h ``u64 end``h]j.)}(hjMh]hu64 end}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~Mubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjzMubjD)}(hhh]j)}(hend addrh]hend addr}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jChjzMubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjLubj")}(h:``void *arg`` function argument for the callback **func** h](j()}(h ``void *arg``h]j.)}(hjMh]h void *arg}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjMubjD)}(hhh]j)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjMhhhNhNubj)}(h**func**h]hfunc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhMhjLubj")}(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.)}(hjNh]h&int (*func)(struct resource *, void *)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjMubjD)}(hhh]j)}(hBcallback function that is called for each qualifying resource areah]hBcallback function that is called for each qualifying resource area}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjNhMhjLubeh}(h]h ]h"]h$]h&]uh1jhjLubj)}(h**Description**h]j)}(hj;Nh]h Description}(hj=NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Nubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubj)}(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.}(hjQNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubj)}(h**NOTE**h]j)}(hjbNh]hNOTE}(hjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Nubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubj)}(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.}(hjxNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌregion_intersects (C function)c.region_intersectshNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hcint region_intersects (resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h]h)}(hbint region_intersects(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](h)}(hinth]hint}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMkubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhjNhMkubj)}(hregion_intersectsh]j)}(hregion_intersectsh]hregion_intersects}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhjNhMkubj/)}(hM(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](j5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjNsbc.region_intersectsasbuh1hhjNubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hstarth]hstart}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.Oubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3OmodnameN classnameNjwjz)}j}]jOc.region_intersectsasbuh1hhj*Oubh)}(h h]h }(hjOOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*Oubj)}(hsizeh]hsize}(hj]OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Oubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjvOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrOubh)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrOubj)}(hflagsh]hflags}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hunsigned long desch](h)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hdesch]hdesc}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjNhhhjNhMkubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjNhMkubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMkhjNhhubj)}(hhh]j)}(h5determine intersection of region with known resourcesh]h5determine intersection of region with known resources}(hj)PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMkhj&Phhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMkubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAPjjAPjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjKPh]h Parameters}(hjMPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIPubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMohjEPubj)}(hhh](j")}(h/``resource_size_t start`` region start address h](j()}(h``resource_size_t start``h]j.)}(hjjPh]hresource_size_t start}(hjlPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhPubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMlhjdPubjD)}(hhh]j)}(hregion start addressh]hregion start address}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMlhjPubah}(h]h ]h"]h$]h&]uh1jChjdPubeh}(h]h ]h"]h$]h&]uh1j!hjPhMlhjaPubj")}(h``size_t size`` size of region h](j()}(h``size_t size``h]j.)}(hjPh]h size_t size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMmhjPubjD)}(hhh]j)}(hsize of regionh]hsize of region}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMmhjPubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjPhMmhjaPubj")}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j()}(h``unsigned long flags``h]j.)}(hjPh]hunsigned long flags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMnhjPubjD)}(hhh]j)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMnhjPubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjPhMnhjaPubj")}(hU``unsigned long desc`` descriptor of resource (in iomem_resource) or IORES_DESC_NONE h](j()}(h``unsigned long desc``h]j.)}(hjQh]hunsigned long desc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMohjQubjD)}(hhh]j)}(h=descriptor of resource (in iomem_resource) or IORES_DESC_NONEh]h=descriptor of resource (in iomem_resource) or IORES_DESC_NONE}(hj.QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*QhMohj+Qubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hj*QhMohjaPubeh}(h]h ]h"]h$]h&]uh1jhjEPubj)}(h**Description**h]j)}(hjPQh]h Description}(hjRQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNQubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMqhjEPubj)}(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 }(hjfQhhhNhNubj)}(h **flags**h]hflags}(hjnQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh and }(hjfQhhhNhNubj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjfQhhhNhNubj)}(h **flags**h]hflags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh/}(hjfQhhhNhNubj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh-, return REGION_MIXED if the region overlaps }(hjfQhhhNhNubj)}(h **flags**h]hflags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh/}hjfQsbj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjfQhhhNhNubj)}(h **flags**h]hflags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh/}hjfQsbj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubh 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.}(hjfQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMqhjEPubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMzhjEPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_resource_space (C function)c.find_resource_spacehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hint find_resource_space (struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h]h)}(hint find_resource_space(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](h)}(hinth]hint}(hj4RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0RhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjCRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0RhhhjBRhMubj)}(hfind_resource_spaceh]j)}(hfind_resource_spaceh]hfind_resource_space}(hjURhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0RhhhjBRhMubj/)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hjqRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmRubh)}(h h]h }(hj~RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmRubh)}(hhh]j)}(hresourceh]hresource}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j)}jsjWRsbc.find_resource_spaceasbuh1hhjmRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmRubj)}(hrooth]hroot}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiRubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(hresourceh]hresource}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]jRc.find_resource_spaceasbuh1hhjRubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hj-ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hnewh]hnew}(hj:ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiRubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjVShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXSmodnameN classnameNjwjz)}j}]jRc.find_resource_spaceasbuh1hhjOSubh)}(h h]h }(hjtShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOSubj)}(hsizeh]hsize}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiRubj5)}(h&struct resource_constraint *constrainth](j;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjSubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]jRc.find_resource_spaceasbuh1hhjSubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h constrainth]h constraint}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiRubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0RhhhjBRhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,RhhhjBRhMubah}(h]j'Rah ](jjeh"]h$]h&]jj)jhuh1hhjBRhMhj)Rhhubj)}(hhh]j)}(h%Find empty space in the resource treeh]h%Find empty space in the resource tree}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhj)RhhhjBRhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4Tjj4Tjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj>Th]h Parameters}(hj@ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]hstruct}(hjhVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdVubh)}(h h]h }(hjuVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdVubh)}(hhh]j)}(hresourceh]hresource}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j)}jsjNVsbc.allocate_resourceasbuh1hhjdVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdVubj)}(hrooth]hroot}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hhh]j)}(hresourceh]hresource}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjVubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hj$WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hnewh]hnew}(hj1WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjMWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjOWmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjFWubh)}(h h]h }(hjkWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFWubj)}(hsizeh]hsize}(hjyWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hresource_size_t minh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hminh]hmin}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hresource_size_t maxh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hmaxh]hmax}(hj XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hresource_size_t alignh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj%XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"Xubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'XmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjXubh)}(h h]h }(hjCXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(halignh]halign}(hjQXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hresource_alignf alignfh](h)}(hhh]j)}(hresource_alignfh]hresource_alignf}(hjmXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjoXmodnameN classnameNjwjz)}j}]jVc.allocate_resourceasbuh1hhjfXubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfXubj)}(halignfh]halignf}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubj5)}(hvoid *alignf_datah](h)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h alignf_datah]h alignf_data}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`Vubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'Vhhhj9VhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#Vhhhj9VhM ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhj9VhM hj Vhhubj)}(hhh]j)}(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}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM hjYhhubah}(h]h ]h"]h$]h&]uh1jhj Vhhhj9VhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj'Yh]h Parameters}(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:275: ./kernel/resource.chM$hj!Yubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hjFYh]hstruct resource *root}(hjHYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDYubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM"hj@YubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj_YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[YhM"hj\Yubah}(h]h ]h"]h$]h&]uh1jChj@Yubeh}(h]h ]h"]h$]h&]uh1j!hj[YhM"hj=Yubj")}(h?``struct resource *new`` resource descriptor desired by caller h](j()}(h``struct resource *new``h]j.)}(hjYh]hstruct resource *new}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}Yubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#hjyYubjD)}(hhh]j)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM#hjYubah}(h]h ]h"]h$]h&]uh1jChjyYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM#hj=Yubj")}(h8``resource_size_t size`` requested resource region size h](j()}(h``resource_size_t size``h]j.)}(hjYh]hresource_size_t size}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM$hjYubjD)}(hhh]j)}(hrequested resource region sizeh]hrequested resource region size}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM$hjYubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjYhM$hj=Yubj")}(h5``resource_size_t min`` minimum boundary to allocate h](j()}(h``resource_size_t min``h]j.)}(hjYh]hresource_size_t min}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM%hjYubjD)}(hhh]j)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhM%hjZubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjZhM%hj=Yubj")}(h5``resource_size_t max`` maximum boundary to allocate h](j()}(h``resource_size_t max``h]j.)}(hj*Zh]hresource_size_t max}(hj,ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(Zubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM&hj$ZubjD)}(hhh]j)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(hjCZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ZhM&hj@Zubah}(h]h ]h"]h$]h&]uh1jChj$Zubeh}(h]h ]h"]h$]h&]uh1j!hj?ZhM&hj=Yubj")}(h8``resource_size_t align`` alignment requested, in bytes h](j()}(h``resource_size_t align``h]j.)}(hjcZh]hresource_size_t align}(hjeZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaZubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM'hj]ZubjD)}(hhh]j)}(halignment requested, in bytesh]halignment requested, in bytes}(hj|ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxZhM'hjyZubah}(h]h ]h"]h$]h&]uh1jChj]Zubeh}(h]h ]h"]h$]h&]uh1j!hjxZhM'hj=Yubj")}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j()}(h``resource_alignf alignf``h]j.)}(hjZh]hresource_alignf alignf}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM(hjZubjD)}(hhh]j)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhM(hjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhM(hj=Yubj")}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j()}(h``void *alignf_data``h]j.)}(hjZh]hvoid *alignf_data}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM*hjZubjD)}(hhh]j)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hjZhhhNhNubj)}(h **alignf**h]halignf}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh function}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM)hjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhM*hj=Yubeh}(h]h ]h"]h$]h&]uh1jhj!Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinsert_resource (C function)c.insert_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hCint insert_resource (struct resource *parent, struct resource *new)h]h)}(hBint insert_resource(struct resource *parent, struct resource *new)h](h)}(hinth]hint}(hjA[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=[hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjP[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=[hhhjO[hMubj)}(hinsert_resourceh]j)}(hinsert_resourceh]hinsert_resource}(hjb[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=[hhhjO[hMubj/)}(h/(struct resource *parent, struct resource *new)h](j5)}(hstruct resource *parenth](j;)}(hj>h]hstruct}(hj~[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjz[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjz[ubh)}(hhh]j)}(hresourceh]hresource}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j)}jsjd[sbc.insert_resourceasbuh1hhjz[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjz[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz[ubj)}(hparenth]hparent}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjv[ubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(hresourceh]hresource}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj \ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j[c.insert_resourceasbuh1hhj[ubh)}(h h]h }(hj,\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hj:\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnewh]hnew}(hjG\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjv[ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj=[hhhjO[hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9[hhhjO[hMubah}(h]j4[ah ](jjeh"]h$]h&]jj)jhuh1hhjO[hMhj6[hhubj)}(hhh]j)}(h'Inserts a resource in the resource treeh]h'Inserts a resource in the resource tree}(hjq\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjn\hhubah}(h]h ]h"]h$]h&]uh1jhj6[hhhjO[hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj\h]h Parameters}(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:275: ./kernel/resource.chMhj\ubj)}(hhh](j")}(h7``struct resource *parent`` parent of the new resource h](j()}(h``struct resource *parent``h]j.)}(hj\h]hstruct resource *parent}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj\ubjD)}(hhh]j)}(hparent of the new resourceh]hparent of the new resource}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hMhj\ubj")}(h0``struct resource *new`` new resource to insert h](j()}(h``struct resource *new``h]j.)}(hj\h]hstruct resource *new}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj\ubjD)}(hhh]j)}(hnew resource to inserth]hnew resource to insert}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubj)}(h**Description**h]j)}(hj&]h]h Description}(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:275: ./kernel/resource.chMhj\ubj)}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj\ubj)}(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.}(hjK]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*insert_resource_expand_to_fit (C function)c.insert_resource_expand_to_fithNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hPvoid insert_resource_expand_to_fit (struct resource *root, struct resource *new)h]h)}(hOvoid insert_resource_expand_to_fit(struct resource *root, struct resource *new)h](h)}(hvoidh]hvoid}(hjz]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv]hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv]hhhj]hMubj)}(hinsert_resource_expand_to_fith]j)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjv]hhhj]hMubj/)}(h-(struct resource *root, struct resource *new)h](j5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hj]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(hresourceh]hresource}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj]sbc.insert_resource_expand_to_fitasbuh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hrooth]hroot}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hj)^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%^ubh)}(h h]h }(hj6^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%^ubh)}(hhh]j)}(hresourceh]hresource}(hjG^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjI^modnameN classnameNjwjz)}j}]j]c.insert_resource_expand_to_fitasbuh1hhj%^ubh)}(h h]h }(hje^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%^ubj)}(hjh]h*}(hjs^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%^ubj)}(hnewh]hnew}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjv]hhhj]hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjr]hhhj]hMubah}(h]jm]ah ](jjeh"]h$]h&]jj)jhuh1hhj]hMhjo]hhubj)}(hhh]j)}(h(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjo]hhhj]hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(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:275: ./kernel/resource.chMhj^ubj)}(hhh](j")}(h3``struct resource *root`` root resource descriptor h](j()}(h``struct resource *root``h]j.)}(hj^h]hstruct resource *root}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj^ubjD)}(hhh]j)}(hroot resource descriptorh]hroot resource descriptor}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhj^ubj")}(h0``struct resource *new`` new resource to insert h](j()}(h``struct resource *new``h]j.)}(hj$_h]hstruct resource *new}(hj&_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"_ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj_ubjD)}(hhh]j)}(hnew resource to inserth]hnew resource to insert}(hj=_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9_hMhj:_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj9_hMhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubj)}(h**Description**h]j)}(hj__h]h Description}(hja_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]_ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj^ubj)}(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.}(hju_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremove_resource (C function)c.remove_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(h*int remove_resource (struct resource *old)h]h)}(h)int remove_resource(struct resource *old)h](h)}(hinth]hint}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hMubj)}(hremove_resourceh]j)}(hremove_resourceh]hremove_resource}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhhj_hMubj/)}(h(struct resource *old)h]j5)}(hstruct resource *oldh](j;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh)}(hhh]j)}(hresourceh]hresource}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj`modnameN classnameNjwjz)}j}]j)}jsj_sbc.remove_resourceasbuh1hhj_ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hj-`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(holdh]hold}(hj:`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj_hhhj_hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhj_hMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhj_hhubj)}(hhh]j)}(h&Remove a resource in the resource treeh]h&Remove a resource in the resource tree}(hjd`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhja`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|`jj|`jjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hj`h]h Parameters}(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:275: ./kernel/resource.chMhj`ubj)}(hhh]j")}(h,``struct resource *old`` resource to remove h](j()}(h``struct resource *old``h]j.)}(hj`h]hstruct resource *old}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj`ubjD)}(hhh]j)}(hresource to removeh]hresource to remove}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h**Description**h]j)}(hj`h]h Description}(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:275: ./kernel/resource.chMhj`ubj)}(h;Returns 0 on success, -EINVAL if the resource is not valid.h]h;Returns 0 on success, -EINVAL if the resource is not valid.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj`ubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj`ubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌadjust_resource (C function)c.adjust_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hWint adjust_resource (struct resource *res, resource_size_t start, resource_size_t size)h]h)}(hVint adjust_resource(struct resource *res, resource_size_t start, resource_size_t size)h](h)}(hinth]hint}(hjCahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ahhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM*ubh)}(h h]h }(hjRahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ahhhjQahM*ubj)}(hadjust_resourceh]j)}(hadjust_resourceh]hadjust_resource}(hjdahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`aubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?ahhhjQahM*ubj/)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j5)}(hstruct resource *resh](j;)}(hj>h]hstruct}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|aubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|aubh)}(hhh]j)}(hresourceh]hresource}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsjfasbc.adjust_resourceasbuh1hhj|aubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|aubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|aubj)}(hresh]hres}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|aubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxaubj5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]jac.adjust_resourceasbuh1hhjaubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hstarth]hstart}(hj!bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxaubj5)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj=bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:bubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?bmodnameN classnameNjwjz)}j}]jac.adjust_resourceasbuh1hhj6bubh)}(h h]h }(hj[bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6bubj)}(hsizeh]hsize}(hjibhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6bubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxaubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj?ahhhjQahM*ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;ahhhjQahM*ubah}(h]j6aah ](jjeh"]h$]h&]jj)jhuh1hhjQahM*hj8ahhubj)}(hhh]j)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM*hjbhhubah}(h]h ]h"]h$]h&]uh1jhj8ahhhjQahM*ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM.hjbubj)}(hhh](j")}(h,``struct resource *res`` resource to modify h](j()}(h``struct resource *res``h]j.)}(hjbh]hstruct resource *res}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM+hjbubjD)}(hhh]j)}(hresource to modifyh]hresource to modify}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhM+hjbubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjbhM+hjbubj")}(h*``resource_size_t start`` new start value h](j()}(h``resource_size_t start``h]j.)}(hj ch]hresource_size_t start}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj cubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM,hjcubjD)}(hhh]j)}(hnew start valueh]hnew start value}(hj&chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"chM,hj#cubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj"chM,hjbubj")}(h"``resource_size_t size`` new size h](j()}(h``resource_size_t size``h]j.)}(hjFch]hresource_size_t size}(hjHchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDcubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM-hj@cubjD)}(hhh]j)}(hnew sizeh]hnew size}(hj_chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[chM-hj\cubah}(h]h ]h"]h$]h&]uh1jChj@cubeh}(h]h ]h"]h$]h&]uh1j!hj[chM-hjbubeh}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM/hjbubj)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM/hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__request_region (C function)c.__request_regionhNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hstruct resource * __request_region (struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h]h)}(hstruct resource *__request_region(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j;)}(hj>h]hstruct}(hjchhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjchhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjchMubh)}(hhh]j)}(hresourceh]hresource}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j)}js__request_regionsbc.__request_regionasbuh1hhjchhhjchMubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjchMubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjchMubj)}(h__request_regionh]j)}(hjdh]h__request_region}(hj%dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!dubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjchMubj/)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j5)}(hstruct resource *parenth](j;)}(hj>h]hstruct}(hj@dhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjh]hstruct}(hjghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(hresourceh]hresource}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]j)}jsjgsbc.__release_regionasbuh1hhjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hparenth]hparent}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubj5)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]jgc.__release_regionasbuh1hhj hubh)}(h h]h }(hj1hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hubj)}(hstarth]hstart}(hj?hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj hubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubj5)}(hresource_size_t nh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj[hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]hmodnameN classnameNjwjz)}j}]jgc.__release_regionasbuh1hhjThubh)}(h h]h }(hjyhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThubj)}(hj h]hn}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjThubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj]ghhhjoghM?ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYghhhjoghM?ubah}(h]jTgah ](jjeh"]h$]h&]jj)jhuh1hhjoghM?hjVghhubj)}(hhh]j)}(h-release a previously reserved resource regionh]h-release a previously reserved resource region}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM?hjhhhubah}(h]h ]h"]h$]h&]uh1jhjVghhhjoghM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMChjhubj)}(hhh](j")}(h7``struct resource *parent`` parent resource descriptor h](j()}(h``struct resource *parent``h]j.)}(hjhh]hstruct resource *parent}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM@hjhubjD)}(hhh]j)}(hparent resource descriptorh]hparent resource descriptor}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihM@hjiubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjihM@hjhubj")}(h1``resource_size_t start`` resource start address h](j()}(h``resource_size_t start``h]j.)}(hj*ih]hresource_size_t start}(hj,ihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(iubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMAhj$iubjD)}(hhh]j)}(hresource start addressh]hresource start address}(hjCihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ihMAhj@iubah}(h]h ]h"]h$]h&]uh1jChj$iubeh}(h]h ]h"]h$]h&]uh1j!hj?ihMAhjhubj")}(h+``resource_size_t n`` resource region size h](j()}(h``resource_size_t n``h]j.)}(hjcih]hresource_size_t n}(hjeihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaiubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMBhj]iubjD)}(hhh]j)}(hresource region sizeh]hresource region size}(hj|ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxihMBhjyiubah}(h]h ]h"]h$]h&]uh1jChj]iubeh}(h]h ]h"]h$]h&]uh1j!hjxihMBhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMDhjhubj)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMDhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_request_resource (C function)c.devm_request_resourcehNtauh1hhj!2hhhNhNubh)}(hhh](h)}(h[int devm_request_resource (struct device *dev, struct resource *root, struct resource *new)h]h)}(hZint devm_request_resource(struct device *dev, struct resource *root, struct resource *new)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihM#ubj)}(hdevm_request_resourceh]j)}(hdevm_request_resourceh]hdevm_request_resource}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihM#ubj/)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hj jhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjjubh)}(h h]h }(hj-jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hdeviceh]hdevice}(hj>jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;jubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@jmodnameN classnameNjwjz)}j}]j)}jsjjsbc.devm_request_resourceasbuh1hhjjubh)}(h h]h }(hj^jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjljhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hdevh]hdev}(hjyjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct resource *rooth](j;)}(hj>h]hstruct}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hresourceh]hresource}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]jZjc.devm_request_resourceasbuh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hrooth]hroot}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjjubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hresourceh]hresource}(hj khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"kmodnameN classnameNjwjz)}j}]jZjc.devm_request_resourceasbuh1hhjjubh)}(h h]h }(hj>khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjLkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hnewh]hnew}(hjYkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihM#ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihM#hjihhubj)}(hhh]j)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM#hjkhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM'hjkubj)}(hhh](j")}(h@``struct device *dev`` device for which to request the resource h](j()}(h``struct device *dev``h]j.)}(hjkh]hstruct device *dev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM$hjkubjD)}(hhh]j)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhM$hjkubah}(h]h ]h"]h$]h&]uh1jChjkubeh}(h]h ]h"]h$]h&]uh1j!hjkhM$hjkubj")}(hW``struct resource *root`` root of the resource tree from which to request the resource h](j()}(h``struct resource *root``h]j.)}(hjkh]hstruct resource *root}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chM%hjkubjD)}(hhh]j)}(hh]hstruct}(hjmhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj mubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj mubh)}(hhh]j)}(hdeviceh]hdevice}(hj/mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1mmodnameN classnameNjwjz)}j}]j)}jsjlsbc.devm_release_resourceasbuh1hhj mubh)}(h h]h }(hjOmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj mubj)}(hjh]h*}(hj]mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubj)}(hdevh]hdev}(hjjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj mubj5)}(hstruct resource *newh](j;)}(hj>h]hstruct}(hjmhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j)}(hresourceh]hresource}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jKmc.devm_release_resourceasbuh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hnewh]hnew}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj mubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhjlhMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhjlhMTubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhMThjlhhubj)}(hhh]j)}(h'release a previously requested resourceh]h'release a previously requested resource}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMThjnhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhj!2hNhNubj)}(h**Parameters** ``struct device *dev`` device for which to release the resource ``struct resource *new`` descriptor of the resource to release **Description** Releases a resource previously requested using devm_request_resource().h](j)}(h**Parameters**h]j)}(hj&nh]h Parameters}(hj(nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$nubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMXhj nubj)}(hhh](j")}(h@``struct device *dev`` device for which to release the resource h](j()}(h``struct device *dev``h]j.)}(hjEnh]hstruct device *dev}(hjGnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCnubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMUhj?nubjD)}(hhh]j)}(h(device for which to release the resourceh]h(device for which to release the resource}(hj^nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZnhMUhj[nubah}(h]h ]h"]h$]h&]uh1jChj?nubeh}(h]h ]h"]h$]h&]uh1j!hjZnhMUhjh]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hj ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhj ohMubh)}(hhh]j)}(hresourceh]hresource}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}jsdevm_request_free_mem_regionsbc.devm_request_free_mem_regionasbuh1hhjnhhhj ohMubh)}(h h]h }(hj>ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhj ohMubj)}(hjh]h*}(hjLohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhj ohMubj)}(hdevm_request_free_mem_regionh]j)}(hj;oh]hdevm_request_free_mem_region}(hj]ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjnhhhj ohMubj/)}(h?(struct device *dev, struct resource *base, unsigned long size)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjxohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtoubh)}(hhh]j)}(hdeviceh]hdevice}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j9oc.devm_request_free_mem_regionasbuh1hhjtoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubj)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpoubj5)}(hstruct resource *baseh](j;)}(hj>h]hstruct}(hjohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hhh]j)}(hresourceh]hresource}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjpmodnameN classnameNjwjz)}j}]j9oc.devm_request_free_mem_regionasbuh1hhjoubh)}(h h]h }(hj$phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hj2phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hbaseh]hbase}(hj?phhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpoubj5)}(hunsigned long sizeh](h)}(hunsignedh]hunsigned}(hjXphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTpubh)}(h h]h }(hjfphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTpubh)}(hlongh]hlong}(hjtphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTpubj)}(hsizeh]hsize}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpoubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjnhhhj ohMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjnhhhj ohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhj ohMhjnhhubj)}(hhh]j)}(h*find free region for device private memoryh]h*find free region for device private memory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhj ohMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjpubj)}(hhh](j")}(h=``struct device *dev`` device struct to bind the resource to h](j()}(h``struct device *dev``h]j.)}(hjph]hstruct device *dev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjpubjD)}(hhh]j)}(h%device struct to bind the resource toh]h%device struct to bind the resource to}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjqhMhjpubj")}(h3``struct resource *base`` resource tree to look in h](j()}(h``struct resource *base``h]j.)}(hj4qh]hstruct resource *base}(hj6qhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2qubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj.qubjD)}(hhh]j)}(hresource tree to look inh]hresource tree to look in}(hjMqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIqhMhjJqubah}(h]h ]h"]h$]h&]uh1jChj.qubeh}(h]h ]h"]h$]h&]uh1j!hjIqhMhjpubj")}(hA``unsigned long size`` size in bytes of the device memory to add h](j()}(h``unsigned long size``h]j.)}(hjmqh]hunsigned long size}(hjoqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkqubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjgqubjD)}(hhh]j)}(h)size in bytes of the device memory to addh]h)size in bytes of the device memory to add}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jChjgqubeh}(h]h ]h"]h$]h&]uh1j!hjqhMhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubj)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjpubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"alloc_free_mem_region (C function)c.alloc_free_mem_regionhNtauh1hhj!2hhhNhNubh)}(hhh](h)}(hzstruct resource * alloc_free_mem_region (struct resource *base, unsigned long size, unsigned long align, const char *name)h]h)}(hxstruct resource *alloc_free_mem_region(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjqhMubh)}(hhh]j)}(hresourceh]hresource}(hj rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsalloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhjqhhhjqhMubh)}(h h]h }(hj-rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjqhMubj)}(hjh]h*}(hj;rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubj)}(halloc_free_mem_regionh]j)}(hj*rh]halloc_free_mem_region}(hjLrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHrubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjqhhhjqhMubj/)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j5)}(hstruct resource *baseh](j;)}(hj>h]hstruct}(hjgrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjcrubh)}(h h]h }(hjtrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcrubh)}(hhh]j)}(hresourceh]hresource}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j(rc.alloc_free_mem_regionasbuh1hhjcrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcrubj)}(hbaseh]hbase}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_rubj5)}(hunsigned long sizeh](h)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hsizeh]hsize}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_rubj5)}(hunsigned long alignh](h)}(hunsignedh]hunsigned}(hj(shhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$subh)}(h h]h }(hj6shhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$subh)}(hlongh]hlong}(hjDshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$subh)}(h h]h }(hjRshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$subj)}(halignh]halign}(hj`shhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$subeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_rubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjyshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjusubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjusubh)}(hcharh]hchar}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjusubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjusubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjusubj)}(hnameh]hname}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjusubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_rubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjqhhhjqhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjqhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjqhhubj)}(hhh]j)}(h'find a free region relative to **base**h](hfind a free region relative to }(hjshhhNhNubj)}(h**base**h]hbase}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj tjj tjjjuh1hhhhj!2hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjtubj)}(hhh](j")}(hE``struct resource *base`` resource that will parent the new resource h](j()}(h``struct resource *base``h]j.)}(hj6th]hstruct resource *base}(hj8thhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4tubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhj0tubjD)}(hhh]j)}(h*resource that will parent the new resourceh]h*resource that will parent the new resource}(hjOthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKthMhjLtubah}(h]h ]h"]h$]h&]uh1jChj0tubeh}(h]h ]h"]h$]h&]uh1j!hjKthMhj-tubj")}(hI``unsigned long size`` size in bytes of memory to allocate from **base** h](j()}(h``unsigned long size``h]j.)}(hjoth]hunsigned long size}(hjqthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmtubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjitubjD)}(hhh]j)}(h1size in bytes of memory to allocate from **base**h](h)size in bytes of memory to allocate from }(hjthhhNhNubj)}(h**base**h]hbase}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubah}(h]h ]h"]h$]h&]uh1jChjitubeh}(h]h ]h"]h$]h&]uh1j!hjthMhj-tubj")}(hB``unsigned long align`` alignment requirements for the allocation h](j()}(h``unsigned long align``h]j.)}(hjth]hunsigned long align}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjtubjD)}(hhh]j)}(h)alignment requirements for the allocationh]h)alignment requirements for the allocation}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjtubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjthMhj-tubj")}(h#``const char *name`` resource name h](j()}(h``const char *name``h]j.)}(hjth]hconst char *name}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjtubjD)}(hhh]j)}(h resource nameh]h resource name}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhj-tubeh}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hj*uh]h Description}(hj,uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(uubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjtubj)}(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@uhhhNhNubj)}(h**base**h]hbase}(hjHuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@uubh, range in the span of }(hj@uhhhNhNubj)}(h**base**h]hbase}(hjZuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@uubh.}(hj@uhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:275: ./kernel/resource.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!2hhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhj.hhhhhMubh)}(hhh](h)}(h MTRR Handlingh]h MTRR Handling}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌarch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhjuhhhNhNubh)}(hhh](h)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]h)}(hh]hstruct}(hj:yhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6yubh)}(h h]h }(hjGyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6yubh)}(hhh]j)}(hsecurity_hook_listh]hsecurity_hook_list}(hjXyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZymodnameN classnameNjwjz)}j}]j)}jsj ysbc.security_add_hooksasbuh1hhj6yubh)}(h h]h }(hjxyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6yubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6yubj)}(hhooksh]hhooks}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6yubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2yubj5)}(h int counth](h)}(hinth]hint}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hcounth]hcount}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2yubj5)}(hconst struct lsm_id *lsmidh](j;)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj;)}(hj>h]hstruct}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hj zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hlsm_idh]hlsm_id}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjzmodnameN classnameNjwjz)}j}]jtyc.security_add_hooksasbuh1hhjyubh)}(h h]h }(hj8zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjFzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hlsmidh]hlsmid}(hjSzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2yubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhj yhM_ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhj yhM_ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhj yhM_hjxhhubj)}(hhh]j)}(h&Add a modules hooks to the hook lists.h]h&Add a modules hooks to the hook lists.}(hj}zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_hjzzhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhj yhM_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMchjzubj)}(hhh](j")}(h6``struct security_hook_list *hooks`` the hooks to add h](j()}(h$``struct security_hook_list *hooks``h]j.)}(hjzh]h struct security_hook_list *hooks}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hjzubjD)}(hhh]j)}(hthe hooks to addh]hthe hooks to add}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM`hjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhM`hjzubj")}(h)``int count`` the number of hooks to add h](j()}(h ``int count``h]j.)}(hjzh]h int count}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjzubjD)}(hhh]j)}(hthe number of hooks to addh]hthe number of hooks to add}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {hMahj {ubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hj {hMahjzubj")}(hV``const struct lsm_id *lsmid`` the identification information for the security module h](j()}(h``const struct lsm_id *lsmid``h]j.)}(hj0{h]hconst struct lsm_id *lsmid}(hj2{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.{ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMbhj*{ubjD)}(hhh]j)}(h6the identification information for the security moduleh]h6the identification information for the security module}(hjI{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE{hMbhjF{ubah}(h]h ]h"]h$]h&]uh1jChj*{ubeh}(h]h ]h"]h$]h&]uh1j!hjE{hMbhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubj)}(h**Description**h]j)}(hjk{h]h Description}(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:287: ./security/security.chMdhjzubj)}(h;Each LSM has to register its hooks with the infrastructure.h]h;Each LSM has to register its hooks with the infrastructure.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int lsm_blob_alloc (void **dest, size_t size, gfp_t gfp)h]h)}(h7int lsm_blob_alloc(void **dest, size_t size, gfp_t gfp)h](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hMubj)}(hlsm_blob_alloch]j)}(hlsm_blob_alloch]hlsm_blob_alloc}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhj{hMubj/)}(h%(void **dest, size_t size, gfp_t gfp)h](j5)}(h void **desth](h)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hj |hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hdesth]hdest}(hj#|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj?|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjA|modnameN classnameNjwjz)}j}]j)}jsj{sbc.lsm_blob_allocasbuh1hhj8|ubh)}(h h]h }(hj_|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8|ubj)}(hsizeh]hsize}(hjm|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j[|c.lsm_blob_allocasbuh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hgfph]hgfp}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj{hhhj{hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj{hMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhj{hhubj)}(hhh]j)}(hallocate a composite blobh]hallocate a composite blob}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|jj|jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|ubj)}(hhh](j")}(h-``void **dest`` the destination for the blob h](j()}(h``void **dest``h]j.)}(hj }h]h void **dest}(hj"}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj}ubjD)}(hhh]j)}(hthe destination for the blobh]hthe destination for the blob}(hj9}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5}hMhj6}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj5}hMhj}ubj")}(h%``size_t size`` the size of the blob h](j()}(h``size_t size``h]j.)}(hjY}h]h size_t size}(hj[}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjW}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjS}ubjD)}(hhh]j)}(hthe size of the blobh]hthe size of the blob}(hjr}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn}hMhjo}ubah}(h]h ]h"]h$]h&]uh1jChjS}ubeh}(h]h ]h"]h$]h&]uh1j!hjn}hMhj}ubj")}(h``gfp_t gfp`` allocation type h](j()}(h ``gfp_t gfp``h]j.)}(hj}h]h gfp_t gfp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj}ubjD)}(hhh]j)}(hallocation typeh]hallocation type}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj|ubj)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|ubj)}(h#Allocate a blob for all the modulesh]h#Allocate a blob for all the modules}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h1int lsm_cred_alloc (struct cred *cred, gfp_t gfp)h]h)}(h0int lsm_cred_alloc(struct cred *cred, gfp_t gfp)h](h)}(hinth]hint}(hj!~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj0~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj/~hMubj)}(hlsm_cred_alloch]j)}(hlsm_cred_alloch]hlsm_cred_alloc}(hjB~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhj/~hMubj/)}(h(struct cred *cred, gfp_t gfp)h](j5)}(hstruct cred *credh](j;)}(hj>h]hstruct}(hj^~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZ~ubh)}(h h]h }(hjk~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ~ubh)}(hhh]j)}(hcredh]hcred}(hj|~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~~modnameN classnameNjwjz)}j}]j)}jsjD~sbc.lsm_cred_allocasbuh1hhjZ~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ~ubj)}(hcredh]hcred}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZ~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjV~ubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j~c.lsm_cred_allocasbuh1hhj~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hgfph]hgfp}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjV~ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj~hhhj/~hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhj/~hMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj/~hMhj~hhubj)}(hhh]j)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj/~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(hhh](j")}(h1``struct cred *cred`` the cred that needs a blob h](j()}(h``struct cred *cred``h]j.)}(hjjh]hstruct cred *cred}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubjD)}(hhh]j)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hallocation typeh]hallocation type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_early_cred (C function)c.lsm_early_credhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h'void lsm_early_cred (struct cred *cred)h]h)}(h&void lsm_early_cred(struct cred *cred)h](h)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj@hMubj)}(hlsm_early_credh]j)}(hlsm_early_credh]hlsm_early_cred}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj@hMubj/)}(h(struct cred *cred)h]j5)}(hstruct cred *credh](j;)}(hj>h]hstruct}(hjohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjkubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjUsbc.lsm_early_credasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hcredh]hcred}(hjȀhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubah}(h]h ]h"]h$]h&]j,j-uh1j.hj.hhhj@hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhj@hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj'hhubj)}(hhh]j)}(h4during initialization allocate a composite cred blobh]h4during initialization allocate a composite cred blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct cred *cred`` the cred that needs a blob **Description** Allocate the cred blob for all the modulesh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h1``struct cred *cred`` the cred that needs a blob h](j()}(h``struct cred *cred``h]j.)}(hj3h]hstruct cred *cred}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj-ubjD)}(hhh]j)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_file_alloc (C function)c.lsm_file_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h&int lsm_file_alloc (struct file *file)h]h)}(h%int lsm_file_alloc(struct file *file)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hlsm_file_alloch]j)}(hlsm_file_alloch]hlsm_file_alloc}(hjԁhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjЁubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjցsbc.lsm_file_allocasbuh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hallocate a composite file blobh]hallocate a composite file blob}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hthe file that needs a blobh]hthe file that needs a blob}(hj͂hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɂhMhjʂubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjɂhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h*Allocate the file blob for all the modulesh]h*Allocate the file blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int lsm_inode_alloc (struct inode *inode, gfp_t gfp)h]h)}(h3int lsm_inode_alloc(struct inode *inode, gfp_t gfp)h](h)}(hinth]hint}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhjQhMubj)}(hlsm_inode_alloch]j)}(hlsm_inode_alloch]hlsm_inode_alloc}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?hhhjQhMubj/)}(h (struct inode *inode, gfp_t gfp)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjfsbc.lsm_inode_allocasbuh1hhj|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hjh]h*}(hj̃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hinodeh]hinode}(hjكhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.lsm_inode_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hgfph]hgfp}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj?hhhjQhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(hhh]j)}(hallocate a composite inode blobh]hallocate a composite inode blob}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(hhh](j")}(h4``struct inode *inode`` the inode that needs a blob h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``gfp_t gfp`` allocation flags h](j()}(h ``gfp_t gfp``h]j.)}(hjńh]h gfp_t gfp}(hjDŽhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjÄubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hallocation flagsh]hallocation flags}(hjބhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڄhMhjۄubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjڄhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-int lsm_task_alloc (struct task_struct *task)h]h)}(h,int lsm_task_alloc(struct task_struct *task)h](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhMubj)}(hlsm_task_alloch]j)}(hlsm_task_alloch]hlsm_task_alloc}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjbhMubj/)}(h(struct task_struct *task)h]j5)}(hstruct task_struct *taskh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjwsbc.lsm_task_allocasbuh1hhjubh)}(h h]h }(hjυhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj݅hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htaskh]htask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjPhhhjbhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjIhhubj)}(hhh]j)}(hallocate a composite task blobh]hallocate a composite task blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj0ubj)}(hhh]j")}(h8``struct task_struct *task`` the task that needs a blob h](j()}(h``struct task_struct *task``h]j.)}(hjUh]hstruct task_struct *task}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjOubjD)}(hhh]j)}(hthe task that needs a blobh]hthe task that needs a blob}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj0ubj)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj0ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-int lsm_ipc_alloc (struct kern_ipc_perm *kip)h]h)}(h,int lsm_ipc_alloc(struct kern_ipc_perm *kip)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h lsm_ipc_alloch]j)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct kern_ipc_perm *kip)h]j5)}(hstruct kern_ipc_perm *kiph](j;)}(hj>h]hstruct}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_ipc_allocasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkiph]hkip}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj܆hhhjhMubah}(h]j׆ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjنhhubj)}(hhh]j)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjنhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjƇh]h Parameters}(hjȇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjćubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj߇ubjD)}(hhh]j)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj߇ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj܇ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h#int lsm_key_alloc (struct key *key)h]h)}(h"int lsm_key_alloc(struct key *key)h](h)}(hinth]hint}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhjhMubj)}(h lsm_key_alloch]j)}(h lsm_key_alloch]h lsm_key_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjphhhjhMubj/)}(h(struct key *key)h]j5)}(hstruct key *keyh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hkeyh]hkey}(hjψhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj̈ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjшmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_key_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkeyh]hkey}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjphhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjihhubj)}(hhh]j)}(hallocate a composite key blobh]hallocate a composite key blob}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjLjjLjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjPubj)}(hhh]j")}(h.``struct key *key`` the key that needs a blob h](j()}(h``struct key *key``h]j.)}(hjuh]hstruct key *key}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjoubjD)}(hhh]j)}(hthe key that needs a blobh]hthe key that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjPubj)}(h)Allocate the key blob for all the modulesh]h)Allocate the key blob for all the modules}(hjƉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjPubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h*int lsm_msg_msg_alloc (struct msg_msg *mp)h]h)}(h)int lsm_msg_msg_alloc(struct msg_msg *mp)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM#ubj)}(hlsm_msg_msg_alloch]j)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM#ubj/)}(h(struct msg_msg *mp)h]j5)}(hstruct msg_msg *mph](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsj'sbc.lsm_msg_msg_allocasbuh1hhj=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hmph]hmp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjhhubj)}(hhh]j)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg blob}(hjĊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj܊jj܊jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM$hjubjD)}(hhh]j)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM$hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hjubj)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hjubj)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.int lsm_bdev_alloc (struct block_device *bdev)h]h)}(h-int lsm_bdev_alloc(struct block_device *bdev)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM1ubj)}(hlsm_bdev_alloch]j)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM1ubj/)}(h(struct block_device *bdev)h]j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjыhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj͋ubh)}(h h]h }(hjދhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͋ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_bdev_allocasbuh1hhj͋ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͋ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͋ubj)}(hbdevh]hbdev}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͋ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɋubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM1ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM1hjhhubj)}(hhh]j)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM1ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjpubj)}(hhh]j")}(hA``struct block_device *bdev`` the block_device that needs a blob h](j()}(h``struct block_device *bdev``h]j.)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjubjD)}(hhh]j)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM2hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(h**Description**h]j)}(hjЌh]h Description}(hjҌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΌubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hjpubj)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hjpubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_early_task (C function)c.lsm_early_taskhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.void lsm_early_task (struct task_struct *task)h]h)}(h-void lsm_early_task(struct task_struct *task)h](h)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj2hMGubj)}(hlsm_early_taskh]j)}(hlsm_early_taskh]hlsm_early_task}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj2hMGubj/)}(h(struct task_struct *task)h]j5)}(hstruct task_struct *taskh](j;)}(hj>h]hstruct}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjGsbc.lsm_early_taskasbuh1hhj]ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(htaskh]htask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj2hMGubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj2hMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hMGhjhhubj)}(hhh]j)}(h4during initialization allocate a composite task blobh]h4during initialization allocate a composite task blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMGubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct task_struct *task`` the task that needs a blob **Description** Allocate the task blob for all the modulesh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKhjubj)}(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&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMHhjubjD)}(hhh]j)}(hthe task that needs a blobh]hthe task that needs a blob}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hMHhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjubj)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h1int lsm_superblock_alloc (struct super_block *sb)h]h)}(h0int lsm_superblock_alloc(struct super_block *sb)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMUubj)}(hlsm_superblock_alloch]j)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hjƎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjŽubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMUubj/)}(h(struct super_block *sb)h]j5)}(hstruct super_block *sbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjގubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjގubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjȎsbc.lsm_superblock_allocasbuh1hhjގubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjގubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގubj)}(hsbh]hsb}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjގubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjڎubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMUubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMUhjhhubj)}(hhh]j)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj}jj}jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubj)}(hhh]j")}(h<``struct super_block *sb`` the superblock that needs a blob h](j()}(h``struct super_block *sb``h]j.)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubjD)}(hhh]j)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMVhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߏubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjubj)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hpint lsm_fill_user_ctx (struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h]h)}(hoint lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](h)}(hinth]hint}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMcubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhjChMcubj)}(hlsm_fill_user_ctxh]j)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChMcubj/)}(hZ(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j5)}(hstruct lsm_ctx __user *uctxh](j;)}(hj>h]hstruct}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjXsbc.lsm_fill_user_ctxasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh__user}(hjnhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjАhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(huctxh]huctx}(hjݐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(h u32 *uctx_lenh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.lsm_fill_user_ctxasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huctx_lenh]huctx_len}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(h void *valh](h)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hvalh]hval}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hsize_t val_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.lsm_fill_user_ctxasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hval_lenh]hval_len}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hu64 idh](h)}(hhh]j)}(hu64h]hu64}(hjؑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjՑubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjڑmodnameN classnameNjwjz)}j}]jc.lsm_fill_user_ctxasbuh1hhjёubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjёubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjёubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]jc.lsm_fill_user_ctxasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhjChMcubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhjChMcubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChMchj*hhubj)}(hhh]j)}(h#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMchjshhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMcubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghjubj)}(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.)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjubjD)}(hhh]j)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hjВhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̒hMdhj͒ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̒hMdhjubj")}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j()}(h``u32 *uctx_len``h]j.)}(hjh]h u32 *uctx_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMehjubjD)}(hhh]j)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMehjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMehjubj")}(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&]uh1j-hj'ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhj#ubjD)}(hhh]j)}(hthe new LSM context valueh]hthe new LSM context value}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMfhj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMfhjubj")}(h9``size_t val_len`` the size of the new LSM context value h](j()}(h``size_t val_len``h]j.)}(hjbh]hsize_t val_len}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghj\ubjD)}(hhh]j)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMghjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMghjubj")}(h``u64 id`` LSM id h](j()}(h ``u64 id``h]j.)}(hjh]hu64 id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhjubjD)}(hhh]j)}(hLSM idh]hLSM id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhhjubj")}(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&]uh1j-hjғubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjΓubjD)}(hhh]j)}(hLSM defined flagsh]hLSM defined flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjΓubeh}(h]h ]h"]h$]h&]uh1j!hjhMihjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhjubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjߔhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb!c.security_binder_set_context_mgrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmgrh]hmgr}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj|hhubj)}(hhh]j)}(h&Check if becoming binder ctx mgr is okh]h&Check if becoming binder ctx mgr is ok}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``const struct cred *mgr`` task credentials of current binder process **Description** Check whether **mgr** is allowed to be the binder context manager. **Return** Return 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubj)}(hhh]j")}(hF``const struct cred *mgr`` task credentials of current binder process h](j()}(h``const struct cred *mgr``h]j.)}(hjh]hconst struct cred *mgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h*task credentials of current binder processh]h*task credentials of current binder process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjޕh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܕubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubj)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjhhhNhNubj)}(h**mgr**h]hmgr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- is allowed to be the binder context manager.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubj)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_binder_transaction (const struct cred *from, const struct cred *to)h]h)}(hOint security_binder_transaction(const struct cred *from, const struct cred *to)h](h)}(hinth]hint}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhMubj)}(hsecurity_binder_transactionh]j)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjjhMubj/)}(h0(const struct cred *from, const struct cred *to)h](j5)}(hconst struct cred *fromh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjҖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϖubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjԖmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_binder_transactionasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *toh](j;)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j)}(hcredh]hcred}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]jc.security_binder_transactionasbuh1hhj"ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(htoh]hto}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj)}(hhh]j)}(h(Check if a binder transaction is allowedh]h(Check if a binder transaction is allowed}(hj—hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjڗjjڗjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޗubj)}(hhh](j")}(h,``const struct cred *from`` sending process h](j()}(h``const struct cred *from``h]j.)}(hjh]hconst struct cred *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsending processh]hsending process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj6ubjD)}(hhh]j)}(hreceiving processh]hreceiving process}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjޗubj)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޗubj)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 is allowed to invoke a binder transaction call to }(hjhhhNhNubj)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޗubj)}(h **Return**h]j)}(hj˜h]hReturn}(hjĘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޗubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjؘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޗubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hTint security_binder_transfer_binder (const struct cred *from, const struct cred *to)h]h)}(hSint security_binder_transfer_binder(const struct cred *from, const struct cred *to)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_binder_transfer_binderh]j)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h0(const struct cred *from, const struct cred *to)h](j5)}(hconst struct cred *fromh](j;)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(hcredh]hcred}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj*sb!c.security_binder_transfer_binderasbuh1hhj@ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubj5)}(hconst struct cred *toh](j;)}(hjh]hconst}(hjљhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj͙ubh)}(h h]h }(hjޙhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͙ubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj͙ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͙ubh)}(hhh]j)}(hcredh]hcred}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j!c.security_binder_transfer_binderasbuh1hhj͙ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͙ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͙ubj)}(htoh]hto}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͙ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer is allowed}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h,``const struct cred *from`` sending process h](j()}(h``const struct cred *from``h]j.)}(hjh]hconst struct cred *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsending processh]hsending process}(hjǚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÚhMhjĚubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjÚhMhjubj")}(h,``const struct cred *to`` receiving process h](j()}(h``const struct cred *to``h]j.)}(hjh]hconst struct cred *to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hreceiving processh]hreceiving process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hj8hhhNhNubj)}(h**from**h]hfrom}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh. is allowed to transfer a binder reference to }(hj8hhhNhNubj)}(h**to**h]hto}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjmh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hkint security_binder_transfer_file (const struct cred *from, const struct cred *to, const struct file *file)h]h)}(hjint security_binder_transfer_file(const struct cred *from, const struct cred *to, const struct file *file)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_binder_transfer_fileh]j)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hjӛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϛubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j5)}(hconst struct cred *fromh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]j)}jsj՛sbc.security_binder_transfer_fileasbuh1hhjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *toh](j;)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jDc.security_binder_transfer_fileasbuh1hhjxubh)}(h h]h }(hjӜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(htoh]hto}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct file *fileh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj"hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hfileh]hfile}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]jDc.security_binder_transfer_fileasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h&Check if a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjŝh]h Parameters}(hjǝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÝubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hhh](j")}(h,``const struct cred *from`` sending process h](j()}(h``const struct cred *from``h]j.)}(hjh]hconst struct cred *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjޝubjD)}(hhh]j)}(hsending processh]hsending process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjޝubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj۝ubj")}(h,``const struct cred *to`` receiving process h](j()}(h``const struct cred *to``h]j.)}(hjh]hconst struct cred *to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hreceiving processh]hreceiving process}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM hj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hM hj۝ubj")}(h3``const struct file *file`` file being transferred h](j()}(h``const struct file *file``h]j.)}(hjVh]hconst struct file *file}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjPubjD)}(hhh]j)}(hfile being transferredh]hfile being transferred}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhM hjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhM hj۝ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is allowed to transfer }(hjhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**to**h]hto}(hjӞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hOint security_ptrace_access_check (struct task_struct *child, unsigned int mode)h]h)}(hNint security_ptrace_access_check(struct task_struct *child, unsigned int mode)h](h)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj)}(hsecurity_ptrace_access_checkh]j)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhMubj/)}(h.(struct task_struct *child, unsigned int mode)h](j5)}(hstruct task_struct *childh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_ptrace_access_checkasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hchildh]hchild}(hjɟhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hunsigned int modeh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjޟubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޟubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjޟubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޟubj)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjޟubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(hhh](j")}(h-``struct task_struct *child`` target process h](j()}(h``struct task_struct *child``h]j.)}(hjh]hstruct task_struct *child}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(htarget processh]htarget process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj|ubj")}(h(``unsigned int mode`` PTRACE_MODE flags h](j()}(h``unsigned int mode``h]j.)}(hjh]hunsigned int mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hjנhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӠhMhjԠubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjӠhMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(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 }(hjhhhNhNubj)}(h **child**h]hchild}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX5 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(h **Return**h]j)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"hj`ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_ptrace_traceme (struct task_struct *parent)h]h)}(h7int security_ptrace_traceme(struct task_struct *parent)h](h)}(hinth]hint}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjhM*ubj)}(hsecurity_ptrace_tracemeh]j)}(hsecurity_ptrace_tracemeh]hsecurity_ptrace_traceme}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjshhhjhM*ubj/)}(h(struct task_struct *parent)h]j5)}(hstruct task_struct *parenth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjҡhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϡubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjԡmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_ptrace_tracemeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjhM*ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjhM*ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjlhhubj)}(hhh]j)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hj4hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhM*ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM.hjSubj)}(hhh]j")}(h/``struct task_struct *parent`` tracing process h](j()}(h``struct task_struct *parent``h]j.)}(hjxh]hstruct task_struct *parent}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjrubjD)}(hhh]j)}(htracing processh]htracing process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhM+hjoubah}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjSubj)}(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 }(hjɢhhhNhNubj)}(h **parent**h]hparent}(hjѢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɢubh} process has sufficient permission to trace the current process before allowing the current process to present itself to the }(hjɢhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɢubh process for tracing.}(hjɢhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjSubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjSubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_capget (C function)c.security_capgethNtauh1hhjwhhhNhNubh)}(hhh](h)}(hint security_capget (const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h]h)}(hint security_capget(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](h)}(hinth]hint}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhjQhM9ubj)}(hsecurity_capgeth]j)}(hsecurity_capgeth]hsecurity_capget}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?hhhjQhM9ubj/)}(ho(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j5)}(h const struct task_struct *targeth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjfsbc.security_capgetasbuh1hhj|ubh)}(h h]h }(hj٣hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(htargeth]htarget}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hkernel_cap_t *effectiveh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jգc.security_capgetasbuh1hhj ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h effectiveh]h effective}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hkernel_cap_t *inheritableh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]jգc.security_capgetasbuh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h inheritableh]h inheritable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubj5)}(hkernel_cap_t *permittedh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jգc.security_capgetasbuh1hhjubh)}(h h]h }(hjؤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h permittedh]h permitted}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj?hhhjQhM9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;hhhjQhM9ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhM9hj8hhubj)}(hhh]j)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhM9ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hj9ubj)}(hhh](j")}(h4``const struct task_struct *target`` target process h](j()}(h$``const struct task_struct *target``h]j.)}(hj^h]h const struct task_struct *target}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM:hjXubjD)}(hhh]j)}(htarget processh]htarget process}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshM:hjtubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjshM:hjUubj")}(h5``kernel_cap_t *effective`` effective capability set h](j()}(h``kernel_cap_t *effective``h]j.)}(hjh]hkernel_cap_t *effective}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;hjubjD)}(hhh]j)}(heffective capability seth]heffective capability set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM;hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM;hjUubj")}(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&]uh1j-hjΥubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjʥubjD)}(hhh]j)}(hinheritable capability seth]hinheritable capability set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubah}(h]h ]h"]h$]h&]uh1jChjʥubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hjUubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hjubjD)}(hhh]j)}(hpermitted capability seth]hpermitted capability set}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM=hjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubj)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hj9ubj)}(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 }(hjZhhhNhNubj)}(h **effective**h]h effective}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh, }(hjZhhhNhNubj)}(h**inheritable**h]h inheritable}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh, and }(hjZhhhNhNubj)}(h **permitted**h]h permitted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh capability sets for the }(hjZhhhNhNubj)}(h **target**h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjZhhhNhNubj)}(h **target**h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh process.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hj9ubj)}(h **Return**h]j)}(hjŦh]hReturn}(hjǦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjæubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhj9ubj)}(hh]hstruct}(hjGhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hcredh]hcred}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjgmodnameN classnameNjwjz)}j}]j)}jsj-sbc.security_capsetasbuh1hhjCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjƧhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjԧhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst kernel_cap_t *effectiveh](j;)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhj@ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h effectiveh]h effective}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst kernel_cap_t *inheritableh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjҨhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϨubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjԨmodnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h inheritableh]h inheritable}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubj5)}(hconst kernel_cap_t *permittedh](j;)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]jc.security_capsetasbuh1hhj ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h permittedh]h permitted}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjhhubj)}(hhh]j)}(h%Set the capability sets for a processh]h%Set the capability sets for a process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjǩh]h Parameters}(hjɩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjũubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjubj)}(hhh](j")}(h<``struct cred *new`` new credentials for the target process h](j()}(h``struct cred *new``h]j.)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhjubjD)}(hhh]j)}(h&new credentials for the target processh]h&new credentials for the target process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMPhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMPhjݩubj")}(hE``const struct cred *old`` current credentials of the target process h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhjubjD)}(hhh]j)}(h)current credentials of the target processh]h)current credentials of the target process}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMQhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMQhjݩubj")}(h;``const kernel_cap_t *effective`` effective capability set h](j()}(h!``const kernel_cap_t *effective``h]j.)}(hjXh]hconst kernel_cap_t *effective}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRhjRubjD)}(hhh]j)}(heffective capability seth]heffective capability set}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMRhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMRhjݩubj")}(h?``const kernel_cap_t *inheritable`` inheritable capability set h](j()}(h#``const kernel_cap_t *inheritable``h]j.)}(hjh]hconst kernel_cap_t *inheritable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjubjD)}(hhh]j)}(hinheritable capability seth]hinheritable capability set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMShjݩ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&]uh1j-hjȪubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThjĪubjD)}(hhh]j)}(hpermitted capability seth]hpermitted capability set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߪhMThjubah}(h]h ]h"]h$]h&]uh1jChjĪubeh}(h]h ]h"]h$]h&]uh1j!hjߪhMThjݩubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubj)}(hbSet the **effective**, **inheritable**, and **permitted** capability sets for the current process.h](hSet the }(hjhhhNhNubj)}(h **effective**h]h effective}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**inheritable**h]h inheritable}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h **permitted**h]h permitted}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) capability sets for the current process.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubj)}(h **Return**h]j)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubj)}(h6Returns 0 and update **new** if permission is granted.h](hReturns 0 and update }(hjxhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh if permission is granted.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_capable (C function)c.security_capablehNtauh1hhjwhhhNhNubh)}(hhh](h)}(heint security_capable (const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h]h)}(hdint security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMeubh)}(h h]h }(hjȫhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjǫhMeubj)}(hsecurity_capableh]j)}(hsecurity_capableh]hsecurity_capable}(hjګhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj֫ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjǫhMeubj/)}(hP(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsjܫsbc.security_capableasbuh1hhjubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct user_namespace *nsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(huser_namespaceh]huser_namespace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jKc.security_capableasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjͬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnsh]hns}(hjڬhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint caph](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcaph]hcap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int optsh](h)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hinth]hint}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hoptsh]hopts}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjǫhMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjǫhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjǫhMehjhhubj)}(hhh]j)}(h/Check if a process has the necessary capabilityh]h/Check if a process has the necessary capability}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMehjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjǫhMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjubj)}(hhh](j")}(h3``const struct cred *cred`` credentials to examine h](j()}(h``const struct cred *cred``h]j.)}(hj˭h]hconst struct cred *cred}(hjͭhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjɭubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhjŭubjD)}(hhh]j)}(hcredentials to examineh]hcredentials to examine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMfhjubah}(h]h ]h"]h$]h&]uh1jChjŭubeh}(h]h ]h"]h$]h&]uh1j!hjhMfhj­ubj")}(h-``struct user_namespace *ns`` user namespace h](j()}(h``struct user_namespace *ns``h]j.)}(hjh]hstruct user_namespace *ns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghjubjD)}(hhh]j)}(huser namespaceh]huser namespace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMghjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMghj­ubj")}(h!``int cap`` capability requested h](j()}(h ``int cap``h]j.)}(hj=h]hint cap}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj7ubjD)}(hhh]j)}(hcapability requestedh]hcapability requested}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhhj­ubj")}(h/``unsigned int opts`` capability check options h](j()}(h``unsigned int opts``h]j.)}(hjvh]hunsigned int opts}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjpubjD)}(hhh]j)}(hcapability check optionsh]hcapability check options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjhMihj­ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhjubj)}(hCheck whether the **tsk** process has the **cap** capability in the indicated credentials. **cap** contains the capability . **opts** contains options for the capable check .h](hCheck whether the }(hjǮhhhNhNubj)}(h**tsk**h]htsk}(hjϮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǮubh process has the }(hjǮhhhNhNubj)}(h**cap**h]hcap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǮubh+ capability in the indicated credentials. }(hjǮhhhNhNubj)}(h**cap**h]hcap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǮubh7 contains the capability . }(hjǮhhhNhNubj)}(h**opts**h]hopts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǮubhC contains options for the capable check .}(hjǮhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhjubj)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMohjubj)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_quotactl (C function)c.security_quotactlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_quotactl (int cmds, int type, int id, const struct super_block *sb)h]h)}(hOint security_quotactl(int cmds, int type, int id, const struct super_block *sb)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshMzubj)}(hsecurity_quotactlh]j)}(hsecurity_quotactlh]hsecurity_quotactl}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshMzubj/)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j5)}(hint cmdsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmdsh]hcmds}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint typeh](h)}(hinth]hint}(hjׯhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӯubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӯubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӯubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint idh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hidh]hid}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct super_block *sbh](j;)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj;)}(hj>h]hstruct}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(h super_blockh]h super_block}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j)}jsjsbc.security_quotactlasbuh1hhj=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjshMzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhjshMzubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshMzhjZhhubj)}(hhh]j)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hj߰hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhjܰhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~hjubj)}(hhh](j")}(h``int cmds`` commands h](j()}(h ``int cmds``h]j.)}(hj h]hint cmds}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{hjubjD)}(hhh]j)}(hcommandsh]hcommands}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM{hj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hM{hjubj")}(h``int type`` type h](j()}(h ``int type``h]j.)}(hjYh]hint type}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM|hjSubjD)}(hhh]j)}(htypeh]htype}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhM|hjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhM|hjubj")}(h``int id`` id h](j()}(h ``int id``h]j.)}(hjh]hint id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hjubjD)}(hhh]j)}(hidh]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM}hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM}hjubj")}(h,``const struct super_block *sb`` filesystem h](j()}(h ``const struct super_block *sb``h]j.)}(hj˱h]hconst struct super_block *sb}(hjͱhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjɱubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~hjűubjD)}(hhh]j)}(h filesystemh]h filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM~hjubah}(h]h ]h"]h$]h&]uh1jChjűubeh}(h]h ]h"]h$]h&]uh1j!hjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hjhhhNhNubj)}(h**sb**h]hsb}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj?h]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_quota_on (C function)c.security_quota_onhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-int security_quota_on (struct dentry *dentry)h]h)}(h,int security_quota_on(struct dentry *dentry)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_quota_onh]j)}(hsecurity_quota_onh]hsecurity_quota_on}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjβhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hj߲hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjܲubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_quota_onasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjyhhubj)}(hhh]j)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct dentry *dentry`` dentry **Description** Check whether QUOTAON is allowed for **dentry**. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(hhh]j")}(h!``struct dentry *dentry`` dentry h](j()}(h``struct dentry *dentry``h]j.)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h**Description**h]j)}(hjh]h Description}(hj³hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjֳhhhNhNubj)}(h **dentry**h]hdentry}(hj޳hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubh.}(hjֳhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_syslog (C function)c.security_sysloghNtauh1hhjwhhhNhNubh)}(hhh](h)}(hint security_syslog (int type)h]h)}(hint security_syslog(int type)h](h)}(hinth]hint}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhhjLhMubj)}(hsecurity_syslogh]j)}(hsecurity_syslogh]hsecurity_syslog}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhjLhMubj/)}(h (int type)h]j5)}(hint typeh](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubah}(h]h ]h"]h$]h&]j,j-uh1j.hj:hhhjLhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj)}(hhh]j)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjٴjjٴjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjݴubj)}(hhh]j")}(h"``int type`` SYSLOG_ACTION_* type h](j()}(h ``int type``h]j.)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjݴubj)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjݴubj)}(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 }(hjShhhNhNubj)}(h**type**h]htype}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh values.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjݴubj)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjݴubj)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjݴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_settime64 (C function)c.security_settime64hNtauh1hhjwhhhNhNubh)}(hhh](h)}(hOint security_settime64 (const struct timespec64 *ts, const struct timezone *tz)h]h)}(hNint security_settime64(const struct timespec64 *ts, const struct timezone *tz)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjʵhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjɵhMubj)}(hsecurity_settime64h]j)}(hsecurity_settime64h]hsecurity_settime64}(hjܵhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjصubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjɵhMubj/)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j5)}(hconst struct timespec64 *tsh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h timespec64h]h timespec64}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsj޵sbc.security_settime64asbuh1hhjubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htsh]hts}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct timezone *tzh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(htimezoneh]htimezone}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jMc.security_settime64asbuh1hhjubh)}(h h]h }(hjܶhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htzh]htz}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjɵhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjɵhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjɵhMhjhhubj)}(hhh]j)}(h,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɵhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj=ubj)}(hhh](j")}(h)``const struct timespec64 *ts`` new time h](j()}(h``const struct timespec64 *ts``h]j.)}(hjbh]hconst struct timespec64 *ts}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj\ubjD)}(hhh]j)}(hnew timeh]hnew time}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMhjYubj")}(h'``const struct timezone *tz`` timezone h](j()}(h``const struct timezone *tz``h]j.)}(hjh]hconst struct timezone *tz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(htimezoneh]htimezone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubj)}(h**Description**h]j)}(hjַh]h Description}(hjطhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԷubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj=ubj)}(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 .}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj=ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj=ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hCint security_vm_enough_memory_mm (struct mm_struct *mm, long pages)h]h)}(hBint security_vm_enough_memory_mm(struct mm_struct *mm, long pages)h](h)}(hinth]hint}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhjPhMubj)}(hsecurity_vm_enough_memory_mmh]j)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>hhhjPhMubj/)}(h"(struct mm_struct *mm, long pages)h](j5)}(hstruct mm_struct *mmh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjesbc.security_vm_enough_memory_mmasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hj˸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hmmh]hmm}(hjظhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubj5)}(h long pagesh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hpagesh]hpages}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj>hhhjPhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhjPhMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhj7hhubj)}(hhh]j)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjSubj)}(hhh](j")}(h#``struct mm_struct *mm`` mm struct h](j()}(h``struct mm_struct *mm``h]j.)}(hjxh]hstruct mm_struct *mm}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjrubjD)}(hhh]j)}(h mm structh]h mm struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjoubj")}(h``long pages`` number of pages h](j()}(h``long pages``h]j.)}(hjh]h long pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnumber of pagesh]hnumber of pages}(hjʹhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƹhMhjǹubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjƹhMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjSubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjSubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjSubj)}(hhh]j")}(hKReturns 0 if permission is granted by the LSM infrastructure to the caller.h](j()}(hCReturns 0 if permission is granted by the LSM infrastructure to theh]hCReturns 0 if permission is granted by the LSM infrastructure to the}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj,ubjD)}(hhh]j)}(hcaller.h]hcaller.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhj)ubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhjwhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjͺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj޺hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۺubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_bprm_creds_for_execasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj)}(hhh]j)}(h"Prepare the credentials for exec()h]h"Prepare the credentials for exec()}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(hhh]j")}(h9``struct linux_binprm *bprm`` binary program information h](j()}(h``struct linux_binprm *bprm``h]j.)}(hjh]hstruct linux_binprm *bprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~ubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(hXIf the setup in prepare_exec_creds did not setup **bprm->cred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure.h](h1If the setup in prepare_exec_creds did not setup }(hjջhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjݻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubh properly for executing }(hjջhhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubh , update the LSM’s portion of }(hjջhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubh to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set }(hjջhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hjջhhhNhNubj)}(h**bprm**h]hbprm}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubh% contains the linux_binprm structure.}(hjջhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped.h](hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and }(hj>hhhNhNubj)}(h**bprm**h]hbprm}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh will always be dropped.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hj_hhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hVint security_bprm_creds_from_file (struct linux_binprm *bprm, const struct file *file)h]h)}(hUint security_bprm_creds_from_file(struct linux_binprm *bprm, const struct file *file)h](h)}(hinth]hint}(hjǼhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjühhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjּhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjühhhjռhMubj)}(hsecurity_bprm_creds_from_fileh]j)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjühhhjռhMubj/)}(h4(struct linux_binprm *bprm, const struct file *file)h](j5)}(hstruct linux_binprm *bprmh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$modnameN classnameNjwjz)}j}]j)}jsjsbc.security_bprm_creds_from_fileasbuh1hhjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct file *fileh](j;)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j>c.security_bprm_creds_from_fileasbuh1hhjrubh)}(h h]h }(hjͽhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hj۽hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjühhhjռhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjռhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjռhMhjhhubj)}(hhh]j)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjռhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj.ubj)}(hhh](j")}(h9``struct linux_binprm *bprm`` binary program information h](j()}(h``struct linux_binprm *bprm``h]j.)}(hjSh]hstruct linux_binprm *bprm}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjMubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhMhjJubj")}(h,``const struct file *file`` associated file h](j()}(h``const struct file *file``h]j.)}(hjh]hconst struct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hassociated fileh]hassociated file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubj)}(h**Description**h]j)}(hjǾh]h Description}(hjɾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjžubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj.ubj)}(hXIf **file** is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update **bprm->cred** to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to **bprm->per_clear** any personality flags that should be cleared from current->personality. **bprm** contains the linux_binprm structure.h](hIf }(hjݾhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݾubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hjݾhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݾubhX to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set }(hjݾhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݾubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hjݾhhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݾubhJ any personality flags that should be cleared from current->personality. }(hjݾhhhNhNubj)}(h**bprm**h]hbprm}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݾubh% contains the linux_binprm structure.}(hjݾhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj.ubj)}(h **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj.ubj)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_bprm_check (C function)c.security_bprm_checkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h3int security_bprm_check (struct linux_binprm *bprm)h]h)}(h2int security_bprm_check(struct linux_binprm *bprm)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hsecurity_bprm_checkh]j)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h(struct linux_binprm *bprm)h]j5)}(hstruct linux_binprm *bprmh](j;)}(hj>h]hstruct}(hjʿhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjƿubh)}(h h]h }(hj׿hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjƿubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_bprm_checkasbuh1hhjƿubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjƿubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƿubj)}(hbprmh]hbprm}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjƿubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj¿ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(hMediate binary handler searchh]hMediate binary handler search}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjiubj)}(hhh]j")}(h9``struct linux_binprm *bprm`` binary program information h](j()}(h``struct linux_binprm *bprm``h]j.)}(hjh]hstruct linux_binprm *bprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjiubj)}(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 }(hjhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hjhhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC. This hook may be called multiple times during a single execve. }(hjhhhNhNubj)}(h**bprm**h]hbprm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% contains the linux_binprm structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjiubj)}(h **Return**h]j)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjiubj)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hEvoid security_bprm_committing_creds (const struct linux_binprm *bprm)h]h)}(hDvoid security_bprm_committing_creds(const struct linux_binprm *bprm)h](h)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhhjyhMubj)}(hsecurity_bprm_committing_credsh]j)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhhjyhMubj/)}(h!(const struct linux_binprm *bprm)h]j5)}(hconst struct linux_binprm *bprmh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.security_bprm_committing_credsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbprmh]hbprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjghhhjyhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhj`hhubj)}(hhh]j)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjbubj)}(hhh]j")}(h?``const struct linux_binprm *bprm`` binary program information h](j()}(h#``const struct linux_binprm *bprm``h]j.)}(hjh]hconst struct linux_binprm *bprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjbubj)}(hXPrepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by **current->cred** and the information set in **bprm->cred** by the bprm_creds_for_exec hook. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().h](hPrepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by }(hjhhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and the information set in }(hjhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# by the bprm_creds_for_exec hook. }(hjhhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX  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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hDvoid security_bprm_committed_creds (const struct linux_binprm *bprm)h]h)}(hCvoid security_bprm_committed_creds(const struct linux_binprm *bprm)h](h)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhM+ubj)}(hsecurity_bprm_committed_credsh]j)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhjKhM+ubj/)}(h!(const struct linux_binprm *bprm)h]j5)}(hconst struct linux_binprm *bprmh](j;)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj`sbc.security_bprm_committed_credsasbuh1hhjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hbprmh]hbprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubah}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhjKhM+ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhjKhM+ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhM+hj2hhubj)}(hhh]j)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhM+ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hj4ubj)}(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}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM,hjSubjD)}(hhh]j)}(hbinary program informationh]hbinary program information}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhM,hjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhM,hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM.hj4ubj)}(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 }(hjhhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**bprm**h]hbprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM.hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hWint security_fs_context_submount (struct fs_context *fc, struct super_block *reference)h]h)}(hVint security_fs_context_submount(struct fs_context *fc, struct super_block *reference)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM;ubj)}(hsecurity_fs_context_submounth]j)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hM;ubj/)}(h6(struct fs_context *fc, struct super_block *reference)h](j5)}(hstruct fs_context *fch](j;)}(hj>h]hstruct}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]j)}jsj sbc.security_fs_context_submountasbuh1hhj6ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hfch]hfc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubj5)}(hstruct super_block *referenceh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jtc.security_fs_context_submountasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h referenceh]h reference}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hM;ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM;hjhhubj)}(hhh]j)}(hInitialise fc->securityh]hInitialise fc->security}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM;ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjIubj)}(hhh](j")}(h1``struct fs_context *fc`` new filesystem context h](j()}(h``struct fs_context *fc``h]j.)}(hjnh]hstruct fs_context *fc}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjhubjD)}(hhh]j)}(hnew filesystem contexth]hnew filesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hjeubj")}(hH``struct super_block *reference`` dentry reference for submount/remount h](j()}(h!``struct super_block *reference``h]j.)}(hjh]hstruct super_block *reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hjubjD)}(hhh]j)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM=hjeubeh}(h]h ]h"]h$]h&]uh1jhjIubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjIubj)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjIubj)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjIubj)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhjwhhhNhNubh)}(hhh](h)}(hNint security_fs_context_dup (struct fs_context *fc, struct fs_context *src_fc)h]h)}(hMint security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)h](h)}(hinth]hint}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhhhj\hMIubj)}(hsecurity_fs_context_duph]j)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJhhhj\hMIubj/)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j5)}(hstruct fs_context *fch](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjqsbc.security_fs_context_dupasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfch]hfc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct fs_context *src_fch](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_fs_context_dupasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrc_fch]hsrc_fc}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjJhhhj\hMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjFhhhj\hMIubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj\hMIhjChhubj)}(hhh]j)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhj{hhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMMhjubj)}(hhh](j")}(h9``struct fs_context *fc`` destination filesystem context h](j()}(h``struct fs_context *fc``h]j.)}(hjh]hstruct fs_context *fc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjubjD)}(hhh]j)}(hdestination filesystem contexth]hdestination filesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMJhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMJhjubj")}(h8``struct fs_context *src_fc`` source filesystem context h](j()}(h``struct fs_context *src_fc``h]j.)}(hjh]hstruct fs_context *src_fc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKhjubjD)}(hhh]j)}(hsource filesystem contexth]hsource filesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMMhjubj)}(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. }(hjIhhhNhNubj)}(h**fc**h]hfc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh' indicates the new filesystem context. }(hjIhhhNhNubj)}(h **src_fc**h]hsrc_fc}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh+ indicates the original filesystem context.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMMhjubj)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhjubj)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hWint security_fs_context_parse_param (struct fs_context *fc, struct fs_parameter *param)h]h)}(hVint security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMYubj)}(hsecurity_fs_context_parse_paramh]j)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMYubj/)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j5)}(hstruct fs_context *fch](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsb!c.security_fs_context_parse_paramasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfch]hfc}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct fs_parameter *paramh](j;)}(hj>h]hstruct}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h fs_parameterh]h fs_parameter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j:!c.security_fs_context_parse_paramasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hparamh]hparam}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMYubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMYhjhhubj)}(hhh]j)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMYubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hjubj)}(hhh](j")}(h-``struct fs_context *fc`` filesystem context h](j()}(h``struct fs_context *fc``h]j.)}(hj4h]hstruct fs_context *fc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhj.ubjD)}(hhh]j)}(hfilesystem contexth]hfilesystem context}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMZhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMZhj+ubj")}(h4``struct fs_parameter *param`` filesystem parameter h](j()}(h``struct fs_parameter *param``h]j.)}(hjmh]hstruct fs_parameter *param}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjgubjD)}(hhh]j)}(hfilesystem parameterh]hfilesystem parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM[hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM[hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hjubj)}(hhh]j")}(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](j()}(h@If the parameter is used by the LSM it should return 0, if it ish]h@If the parameter is used by the LSM it should return 0, if it is}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjubjD)}(hhh]j)}(hZreturned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h]hZreturned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMahjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.int security_sb_alloc (struct super_block *sb)h]h)}(h-int security_sb_alloc(struct super_block *sb)h](h)}(hinth]hint}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhhjLhMvubj)}(hsecurity_sb_alloch]j)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:hhhjLhMvubj/)}(h(struct super_block *sb)h]j5)}(hstruct super_block *sbh](j;)}(hj>h]hstruct}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjasbc.security_sb_allocasbuh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubah}(h]h ]h"]h$]h&]j,j-uh1j.hj:hhhjLhMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhjLhMvubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMvhj3hhubj)}(hhh]j)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMvubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhjubj)}(hhh]j")}(h1``struct super_block *sb`` filesystem superblock h](j()}(h``struct super_block *sb``h]j.)}(hj?h]hstruct super_block *sb}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj9ubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMwhjUubah}(h]h ]h"]h$]h&]uh1jChj9ubeh}(h]h ]h"]h$]h&]uh1j!hjThMwhj6ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjubj)}(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. }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 contains the super_block structure to be modified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hjubj)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h0void security_sb_delete (struct super_block *sb)h]h)}(h/void security_sb_delete(struct super_block *sb)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sb_deleteh]j)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct super_block *sb)h]j5)}(hstruct super_block *sbh](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j)}(h super_blockh]h super_block}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_deleteasbuh1hhj1ubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h1``struct super_block *sb`` filesystem superblock h](j()}(h``struct super_block *sb``h]j.)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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). }(hjJhhhNhNubj)}(h**sb**h]hsb}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh3 contains the super_block structure being released.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_free (C function)c.security_sb_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.void security_sb_free (struct super_block *sb)h]h)}(h-void security_sb_free(struct super_block *sb)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sb_freeh]j)}(hsecurity_sb_freeh]hsecurity_sb_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct super_block *sb)h]j5)}(hstruct super_block *sbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(hhh]j")}(h1``struct super_block *sb`` filesystem superblock h](j()}(h``struct super_block *sb``h]j.)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(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. }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 contains the super_block structure to be modified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhjwhhhNhNubh)}(hhh](h)}(h9int security_sb_kern_mount (const struct super_block *sb)h]h)}(h8int security_sb_kern_mount(const struct super_block *sb)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMubj)}(hsecurity_sb_kern_mounth]j)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj,hMubj/)}(h(const struct super_block *sb)h]j5)}(hconst struct super_block *sbh](j;)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjAsbc.security_sb_kern_mountasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj,hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMhjhhubj)}(hhh]j)}(h"Check if a kernel mount is allowedh]h"Check if a kernel mount is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h7``const struct super_block *sb`` filesystem superblock h](j()}(h ``const struct super_block *sb``h]j.)}(hj:h]hconst struct super_block *sb}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h,Mount this **sb** if allowed by permissions.h](h Mount this }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed by permissions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hIint security_sb_show_options (struct seq_file *m, struct super_block *sb)h]h)}(hHint security_sb_show_options(struct seq_file *m, struct super_block *sb)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sb_show_optionsh]j)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h,(struct seq_file *m, struct super_block *sb)h](j5)}(hstruct seq_file *mh](j;)}(hj>h]hstruct}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_show_optionsasbuh1hhj,ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hjʈh]hm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubj5)}(hstruct super_block *sbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jjc.security_sb_show_optionsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h)Output the mount options for a superblockh]h)Output the mount options for a superblock}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(hhh](j")}(h#``struct seq_file *m`` output file h](j()}(h``struct seq_file *m``h]j.)}(hjch]hstruct seq_file *m}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubjD)}(hhh]j)}(h output fileh]h output file}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjZubj")}(h1``struct super_block *sb`` filesystem superblock h](j()}(h``struct super_block *sb``h]j.)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hjhhhNhNubj)}(h**m**h]hm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) mount options for this }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(h **Return**h]j)}(hj"h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_statfs (C function)c.security_sb_statfshNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.int security_sb_statfs (struct dentry *dentry)h]h)}(h-int security_sb_statfs(struct dentry *dentry)h](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjuhMubj)}(hsecurity_sb_statfsh]j)}(hsecurity_sb_statfsh]hsecurity_sb_statfs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjuhMubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_statfsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjuhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]j)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats is allowed}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubj)}(hhh]j")}(h,``struct dentry *dentry`` superblock handle h](j()}(h``struct dentry *dentry``h]j.)}(hjhh]hstruct dentry *dentry}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjbubjD)}(hhh]j)}(hsuperblock handleh]hsuperblock handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hj}hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubj)}(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 }(hjhhhNhNubj)}(h**mnt**h]hmnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh mountpoint. }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 is a handle on the superblock for the filesystem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_mount (C function)c.security_sb_mounthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hxint security_sb_mount (const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h]h)}(hwint security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](h)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj)}(hsecurity_sb_mounth]j)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhMubj/)}(hb(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j5)}(hconst char *dev_nameh](j;)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hdev_nameh]hdev_name}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_sb_mountasbuh1hhjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hconst char *typeh](j;)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(h void *datah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdatah]hdata}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(h*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjsjjsjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubj)}(hhh](j")}(h3``const char *dev_name`` filesystem backing device h](j()}(h``const char *dev_name``h]j.)}(hjh]hconst char *dev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem backing deviceh]hfilesystem backing device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h(``const struct path *path`` mount point h](j()}(h``const struct path *path``h]j.)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h mount pointh]h mount point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h%``const char *type`` filesystem type h](j()}(h``const char *type``h]j.)}(hjh]hconst char *type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfilesystem typeh]hfilesystem type}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhjubj")}(h$``unsigned long flags`` mount flags h](j()}(h``unsigned long flags``h]j.)}(hjGh]hunsigned long flags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjAubjD)}(hhh]j)}(h mount flagsh]h mount flags}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj\hMhjubj")}(h(``void *data`` filesystem specific data h](j()}(h``void *data``h]j.)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjzubjD)}(hhh]j)}(hfilesystem specific datah]hfilesystem specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubj)}(hXCheck permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted.h](h/Check permission before an object specified by }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( is mounted on the mount point named by }(hjhhhNhNubj)}(h**nd**h]hnd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. For an ordinary mount, }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP identifies a device if the file system type requires a device. For a remount (}(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_REMOUNT), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, is irrelevant. For a loopback/bind mount (}(hjhh hNhNubj)}(h **flags**h]hflags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_BIND), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 identifies the pathname of the object being mounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubj)}(h **Return**h]j)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sb_umount (C function)c.security_sb_umounthNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_sb_umount (struct vfsmount *mnt, int flags)h]h)}(h7int security_sb_umount(struct vfsmount *mnt, int flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM&ubj)}(hsecurity_sb_umounth]j)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM&ubj/)}(h!(struct vfsmount *mnt, int flags)h](j5)}(hstruct vfsmount *mnth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_umountasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmnth]hmnt}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int flagsh](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hflagsh]hflags}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM&hjhhubj)}(hhh]j)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjubj)}(hhh](j")}(h,``struct vfsmount *mnt`` mounted filesystem h](j()}(h``struct vfsmount *mnt``h]j.)}(hjh]hstruct vfsmount *mnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hjubjD)}(hhh]j)}(hmounted filesystemh]hmounted filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM'hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM'hjubj")}(h``int flags`` unmount flags h](j()}(h ``int flags``h]j.)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjubjD)}(hhh]j)}(h unmount flagsh]h unmount flags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hM(hj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hM(hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjubj)}(h=Check permission before the **mnt** file system is unmounted.h](hCheck permission before the }(hjehhhNhNubj)}(h**mnt**h]hmnt}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh file system is unmounted.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM,hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhjwhhhNhNubh)}(hhh](h)}(hTint security_sb_pivotroot (const struct path *old_path, const struct path *new_path)h]h)}(hSint security_sb_pivotroot(const struct path *old_path, const struct path *new_path)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM4ubj)}(hsecurity_sb_pivotrooth]j)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM4ubj/)}(h:(const struct path *old_path, const struct path *new_path)h](j5)}(hconst struct path *old_pathh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sb_pivotrootasbuh1hhjubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_pathh]hold_path}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct path *new_pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j_c.security_sb_pivotrootasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_pathh]hnew_path}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM4hjhhubj)}(hhh]j)}(h)Check permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjKjjKjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8hjOubj)}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjnubjD)}(hhh]j)}(hnew location for current rootfsh]hnew location for current rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhM5hjkubj")}(h;``const struct path *new_path`` location of the new rootfs h](j()}(h``const struct path *new_path``h]j.)}(hjh]hconst struct path *new_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6hjubjD)}(hhh]j)}(hlocation of the new rootfsh]hlocation of the new rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM6hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM6hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8hjOubj)}(h5Check permission before pivoting the root filesystem.h]h5Check permission before pivoting the root filesystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8hjOubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM:hjOubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM:hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_move_mount (C function)c.security_move_mounthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hRint security_move_mount (const struct path *from_path, const struct path *to_path)h]h)}(hQint security_move_mount(const struct path *from_path, const struct path *to_path)h](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhMuubj)}(hsecurity_move_mounth]j)}(hsecurity_move_mounth]hsecurity_move_mount}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjbhMuubj/)}(h:(const struct path *from_path, const struct path *to_path)h](j5)}(hconst struct path *from_pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjwsbc.security_move_mountasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h from_pathh]h from_path}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct path *to_pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]jc.security_move_mountasbuh1hhjubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hto_pathh]hto_path}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjPhhhjbhMuubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjbhMuubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMuhjIhhubj)}(hhh]j)}(h$Check permissions for moving a mounth]h$Check permissions for moving a mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMuubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``const struct path *from_path`` source mount point ``const struct path *to_path`` destination mount point **Description** Check permission before a mount is moved. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjubj)}(hhh](j")}(h4``const struct path *from_path`` source mount point h](j()}(h ``const struct path *from_path``h]j.)}(hjh]hconst struct path *from_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjubjD)}(hhh]j)}(hsource mount pointh]hsource mount point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMvhjubj")}(h7``const struct path *to_path`` destination mount point h](j()}(h``const struct path *to_path``h]j.)}(hj4h]hconst struct path *to_path}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj.ubjD)}(hhh]j)}(hdestination mount pointh]hdestination mount point}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMwhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMwhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjubj)}(h)Check permission before a mount is moved.h]h)Check permission before a mount is moved.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_path_notify (C function)c.security_path_notifyhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hSint security_path_notify (const struct path *path, u64 mask, unsigned int obj_type)h]h)}(hRint security_path_notify(const struct path *path, u64 mask, unsigned int obj_type)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_path_notifyh]j)}(hsecurity_path_notifyh]hsecurity_path_notify}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h:(const struct path *path, u64 mask, unsigned int obj_type)h](j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_notifyasbuh1hhjubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jmc.security_path_notifyasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int obj_typeh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hobj_typeh]hobj_type}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h#Check if setting a watch is allowedh]h#Check if setting a watch is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhjwhNhNubj)}(hXM**Parameters** ``const struct path *path`` file path ``u64 mask`` event mask ``unsigned int obj_type`` file path type **Description** Check permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(hhh](j")}(h&``const struct path *path`` file path h](j()}(h``const struct path *path``h]j.)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h file pathh]h file path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``u64 mask`` event mask h](j()}(h ``u64 mask``h]j.)}(hjh]hu64 mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h event maskh]h event mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``unsigned int obj_type`` file path type h](j()}(h``unsigned int obj_type``h]j.)}(hjh]hunsigned int obj_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfile path typeh]hfile path type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubj)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(hCheck permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**.h](hACheck permissions before setting a watch on events as defined by }(hjShhhNhNubj)}(h**mask**h]hmask}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, on an object at }(hjShhhNhNubj)}(h**path**h]hpath}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, whose type is defined by }(hjShhhNhNubj)}(h **obj_type**h]hobj_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_alloc (C function)c.security_inode_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h9int security_inode_alloc (struct inode *inode, gfp_t gfp)h]h)}(h8int security_inode_alloc(struct inode *inode, gfp_t gfp)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_inode_alloch]j)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h (struct inode *inode, gfp_t gfp)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_allocasbuh1hhjubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jVc.security_inode_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hAllocate an inode LSM blobh]hAllocate an inode LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hX1**Parameters** ``struct inode *inode`` the inode ``gfp_t gfp`` allocation flags **Description** Allocate and attach a security structure to **inode->i_security**. The i_security field is initialized to NULL when the inode structure is allocated. **Return** Return 0 if operation was successful.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hj(h]hstruct inode *inode}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj"ubjD)}(hhh]j)}(h the inodeh]h the inode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMhjubj")}(h``gfp_t gfp`` allocation flags h](j()}(h ``gfp_t gfp``h]j.)}(hjah]h gfp_t gfp}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj[ubjD)}(hhh]j)}(hallocation flagsh]hallocation flags}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hjhhhNhNubj)}(h**inode->i_security**h]hinode->i_security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. The i_security field is initialized to NULL when the inode structure is allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_inode_free (C function)c.security_inode_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.void security_inode_free (struct inode *inode)h]h)}(h-void security_inode_free(struct inode *inode)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj(hMubj)}(hsecurity_inode_freeh]j)}(hsecurity_inode_freeh]hsecurity_inode_free}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj(hMubj/)}(h(struct inode *inode)h]j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjSubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hhh]j)}(hinodeh]hinode}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j)}jsj=sbc.security_inode_freeasbuh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj(hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhjhhubj)}(hhh]j)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h the inodeh]h the inode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hjlhhhNhNubj)}(h **inode**h]hinode}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh, 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.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hXIt is important for LSMs to note that despite being present in a call to security_inode_free(), **inode** may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.h](h`It is important for LSMs to note that despite being present in a call to security_inode_free(), }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hwint security_inode_init_security_anon (struct inode *inode, const struct qstr *name, const struct inode *context_inode)h]h)}(hvint security_inode_init_security_anon(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMFubj)}(h!security_inode_init_security_anonh]j)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMFubj/)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j)}jsjsb#c.security_inode_init_security_anonasbuh1hhjubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct qstr *nameh](j;)}(hjh]hconst}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jE#c.security_inode_init_security_anonasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h!const struct inode *context_inodeh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jE#c.security_inode_init_security_anonasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h context_inodeh]h context_inode}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]j)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjubj)}(hhh](j")}(h"``struct inode *inode`` the inode h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhjubjD)}(hhh]j)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhjubj")}(h6``const struct qstr *name`` the anonymous inode class h](j()}(h``const struct qstr *name``h]j.)}(hjh]hconst struct qstr *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMHhjubjD)}(hhh]j)}(hthe anonymous inode classh]hthe anonymous inode class}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMHhj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hMHhjubj")}(h@``const struct inode *context_inode`` an optional related inode h](j()}(h%``const struct inode *context_inode``h]j.)}(hjWh]h!const struct inode *context_inode}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhjQubjD)}(hhh]j)}(han optional related inodeh]han optional related inode}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMIhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjubj)}(h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h]h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hNvoid security_path_post_mknod (struct mnt_idmap *idmap, struct dentry *dentry)h]h)}(hMvoid security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMpubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMpubj)}(hsecurity_path_post_mknodh]j)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMpubj/)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[modnameN classnameNjwjz)}j}]j)}jsj!sbc.security_path_post_mknodasbuh1hhj7ubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]juc.security_path_post_mknodasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMphjhhubj)}(hhh]j)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMphj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjFjjFjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjJubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hjoh]hstruct mnt_idmap *idmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMqhjiubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhMqhjfubj")}(h#``struct dentry *dentry`` new file h](j()}(h``struct dentry *dentry``h]j.)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMrhjubjD)}(hhh]j)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjJubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hGint security_path_rmdir (const struct path *dir, struct dentry *dentry)h]h)}(hFint security_path_rmdir(const struct path *dir, struct dentry *dentry)h](h)}(hinth]hint}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj6hMubj)}(hsecurity_path_rmdirh]j)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj6hMubj/)}(h/(const struct path *dir, struct dentry *dentry)h](j5)}(hconst struct path *dirh](j;)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjKsbc.security_path_rmdirasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_path_rmdirasbuh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj$hhhj6hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhjhhubj)}(hhh]j)}(h(Check if removing a directory is allowedh]h(Check if removing a directory is allowed}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h.``struct dentry *dentry`` directory to remove h](j()}(h``struct dentry *dentry``h]j.)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hdirectory to removeh]hdirectory to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h_int security_path_symlink (const struct path *dir, struct dentry *dentry, const char *old_name)h]h)}(h^int security_path_symlink(const struct path *dir, struct dentry *dentry, const char *old_name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_path_symlinkh]j)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hE(const struct path *dir, struct dentry *dentry, const char *old_name)h](j5)}(hconst struct path *dirh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_symlinkasbuh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hdentryh]hdentry}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j&c.security_path_symlinkasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *old_nameh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_nameh]hold_name}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjTjjTjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXubj)}(hhh](j")}(h,``const struct path *dir`` parent directory h](j()}(h``const struct path *dir``h]j.)}(hj}h]hconst struct path *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjtubj")}(h(``struct dentry *dentry`` symbolic link h](j()}(h``struct dentry *dentry``h]j.)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h symbolic linkh]h symbolic link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjtubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h file pathnameh]h file pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubj)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXubj)}(h **Return**h]j)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_path_link (C function)c.security_path_linkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hiint security_path_link (struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h]h)}(hhint security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_path_linkh]j)}(hsecurity_path_linkh]hsecurity_path_link}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j5)}(hstruct dentry *old_dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h old_dentryh]h old_dentry}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct path *new_dirh](j;)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj;)}(hj>h]hstruct}(hj`hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j)}(hpathh]hpath}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.security_path_linkasbuh1hhjAubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *new_dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.security_path_linkasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjijjijjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubj)}(hhh](j")}(h,``struct dentry *old_dentry`` existing file h](j()}(h``struct dentry *old_dentry``h]j.)}(hjh]hstruct dentry *old_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h existing fileh]h existing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h4``const struct path *new_dir`` new parent directory h](j()}(h``const struct path *new_dir``h]j.)}(hjh]hconst struct path *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnew parent directoryh]hnew parent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnew linkh]hnew link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubj)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubj)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubj)}(h **Return**h]j)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_path_truncate (C function)c.security_path_truncatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_path_truncate (const struct path *path)h]h)}(h3int security_path_truncate(const struct path *path)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_path_truncateh]j)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(const struct path *path)h]j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_truncateasbuh1hhjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_chmod (C function)c.security_path_chmodhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h?int security_path_chmod (const struct path *path, umode_t mode)h]h)}(h>int security_path_chmod(const struct path *path, umode_t mode)h](h)}(hinth]hint}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj|hMubj)}(hsecurity_path_chmodh]j)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj|hMubj/)}(h'(const struct path *path, umode_t mode)h](j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_chmodasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]jc.security_path_chmodasbuh1hhj4ubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hmodeh]hmode}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhj|hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhjchhubj)}(hhh]j)}(h,Check if changing the file's mode is allowedh]h.Check if changing the file’s mode is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``umode_t mode`` new mode h](j()}(h``umode_t mode``h]j.)}(hj h]h umode_t mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnew modeh]hnew mode}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hj\hhhNhNubj)}(h**path**h]hpath}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh. The new mode is specified in }(hj\hhhNhNubj)}(h**mode**h]hmode}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubhB which is a bitmask of constants from .}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_path_chown (C function)c.security_path_chownhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hIint security_path_chown (const struct path *path, kuid_t uid, kgid_t gid)h]h)}(hHint security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_path_chownh]j)}(hsecurity_path_chownh]hsecurity_path_chown}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_chownasbuh1hhjubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h kuid_t uidh](h)}(hhh]j)}(hkuid_th]hkuid_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jhc.security_path_chownasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(huidh]huid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(h kgid_t gidh](h)}(hhh]j)}(hkgid_th]hkgid_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jhc.security_path_chownasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubj)}(hhh](j")}(h!``const struct path *path`` file h](j()}(h``const struct path *path``h]j.)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj|ubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjyubj")}(h``kuid_t uid`` file owner h](j()}(h``kuid_t uid``h]j.)}(hjh]h kuid_t uid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h file ownerh]h file owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjyubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h file grouph]h file group}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubj)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubj)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubj)}(h **Return**h]j)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_path_chroot (C function)c.security_path_chroothNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2int security_path_chroot (const struct path *path)h]h)}(h1int security_path_chroot(const struct path *path)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM$ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM$ubj)}(hsecurity_path_chrooth]j)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM$ubj/)}(h(const struct path *path)h]j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_path_chrootasbuh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM$ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]j)}(h/Check if changing the root directory is allowedh]h/Check if changing the root directory is allowed}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM$hjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``const struct path *path`` directory **Description** Check for permission to change root directory. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjubj)}(hhh]j")}(h&``const struct path *path`` directory h](j()}(h``const struct path *path``h]j.)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM%hjubjD)}(hhh]j)}(h directoryh]h directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM%hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hjubj)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hVvoid security_inode_post_create_tmpfile (struct mnt_idmap *idmap, struct inode *inode)h]h)}(hUvoid security_inode_post_create_tmpfile(struct mnt_idmap *idmap, struct inode *inode)h](h)}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjlhMEubj)}(h"security_inode_post_create_tmpfileh]j)}(h"security_inode_post_create_tmpfileh]h"security_inode_post_create_tmpfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjlhMEubj/)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb$c.security_inode_post_create_tmpfileasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hinodeh]hinode}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-modnameN classnameNjwjz)}j}]j$c.security_inode_post_create_tmpfileasbuh1hhj ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hinodeh]hinode}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjlhMEubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjlhMEubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMEhjShhubj)}(hhh]j)}(h$Update inode security of new tmpfileh]h$Update inode security of new tmpfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMEubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMFhjubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMFhjubj")}(h1``struct inode *inode`` inode of the new tmpfile h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhjubjD)}(hhh]j)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhjubj)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *dirh](j;)}(hj>h]hstruct}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]jc.security_inode_linkasbuh1hhj3ubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *new_dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_inode_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMTubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMTubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMThj}hhubj)}(hhh]j)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThj%hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMTubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``struct inode *dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjDubj)}(hhh](j")}(h,``struct dentry *old_dentry`` existing file h](j()}(h``struct dentry *old_dentry``h]j.)}(hjih]hstruct dentry *old_dentry}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUhjcubjD)}(hhh]j)}(h existing fileh]h existing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hMUhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hMUhj`ubj")}(h+``struct inode *dir`` new parent directory h](j()}(h``struct inode *dir``h]j.)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubjD)}(hhh]j)}(hnew parent directoryh]hnew parent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMVhj`ubj")}(h'``struct dentry *new_dentry`` new link h](j()}(h``struct dentry *new_dentry``h]j.)}(hjh]hstruct dentry *new_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjubjD)}(hhh]j)}(hnew linkh]hnew link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjDubj)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjDubj)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjDubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_inode_unlink (C function)c.security_inode_unlinkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hDint security_inode_unlink (struct inode *dir, struct dentry *dentry)h]h)}(hCint security_inode_unlink(struct inode *dir, struct dentry *dentry)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhjhMfubj)}(hsecurity_inode_unlinkh]j)}(hsecurity_inode_unlinkh]hsecurity_inode_unlink}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhjhMfubj/)}(h*(struct inode *dir, struct dentry *dentry)h](j5)}(hstruct inode *dirh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_unlinkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hdentryh]hdentry}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQmodnameN classnameNjwjz)}j}]jc.security_inode_unlinkasbuh1hhj-ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj~hhhjhMfubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhjhMfubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMfhjwhhubj)}(hhh]j)}(h(Check if removing a hard link is allowedh]h(Check if removing a hard link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMfubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` file **Description** Check the permission to remove a hard link to a file. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghjubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMghj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMghjubj")}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj&ubjD)}(hhh]j)}(hfileh]hfile}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhhjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjubj)}(h5Check the permission to remove a hard link to a file.h]h5Check the permission to remove a hard link to a file.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_symlink (C function)c.security_inode_symlinkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h[int security_inode_symlink (struct inode *dir, struct dentry *dentry, const char *old_name)h]h)}(hZint security_inode_symlink(struct inode *dir, struct dentry *dentry, const char *old_name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMvubj)}(hsecurity_inode_symlinkh]j)}(hsecurity_inode_symlinkh]hsecurity_inode_symlink}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMvubj/)}(h@(struct inode *dir, struct dentry *dentry, const char *old_name)h](j5)}(hstruct inode *dirh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hinodeh]hinode}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_symlinkasbuh1hhj ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdirh]hdir}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jJc.security_inode_symlinkasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *old_nameh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h "]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_nameh]hold_name}(hj6 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMvhjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhj] hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjx jjx jjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` symbolic link ``const char *old_name`` existing filename **Description** Check the permission to create a symbolic link to a file. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhj| ubj)}(hhh](j")}(h'``struct inode *dir`` parent directory h](j()}(h``struct inode *dir``h]j.)}(hj h]hstruct inode *dir}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj ubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMwhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMwhj ubj")}(h(``struct dentry *dentry`` symbolic link h](j()}(h``struct dentry *dentry``h]j.)}(hj h]hstruct dentry *dentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMxhj ubjD)}(hhh]j)}(h symbolic linkh]h symbolic link}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMxhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMxhj ubj")}(h+``const char *old_name`` existing filename h](j()}(h``const char *old_name``h]j.)}(hj h]hconst char *old_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhj ubjD)}(hhh]j)}(hexisting filenameh]hexisting filename}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj( hMyhj) ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj( hMyhj ubeh}(h]h ]h"]h$]h&]uh1jhj| ubj)}(h**Description**h]j)}(hjN h]h Description}(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:287: ./security/security.chM{hj| ubj)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{hj| ubj)}(h **Return**h]j)}(hju h]hReturn}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hj| ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM}hj| ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hCint security_inode_rmdir (struct inode *dir, struct dentry *dentry)h]h)}(hBint security_inode_rmdir(struct inode *dir, struct dentry *dentry)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj)}(hsecurity_inode_rmdirh]j)}(hsecurity_inode_rmdirh]hsecurity_inode_rmdir}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hMubj/)}(h*(struct inode *dir, struct dentry *dentry)h](j5)}(hstruct inode *dirh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.security_inode_rmdirasbuh1hhj ubh)}(h h]h }(hj5 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjC hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdirh]hdir}(hjP hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hji hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hje ubh)}(h h]h }(hjv hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhje ubh)}(hhh]j)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j1 c.security_inode_rmdirasbuh1hhje ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhje ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje ubj)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]j)}(h(Check if removing a directory is allowedh]h(Check if removing a directory is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(hhh](j")}(h'``struct inode *dir`` parent directory h](j()}(h``struct inode *dir``h]j.)}(hj+ h]hstruct inode *dir}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj) ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj% ubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ hMhjA ubah}(h]h ]h"]h$]h&]uh1jChj% ubeh}(h]h ]h"]h$]h&]uh1j!hj@ hMhj" ubj")}(h2``struct dentry *dentry`` directory to be removed h](j()}(h``struct dentry *dentry``h]j.)}(hjd h]hstruct dentry *dentry}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjb ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ ubjD)}(hhh]j)}(hdirectory to be removedh]hdirectory to be removed}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy hMhjz ubah}(h]h ]h"]h$]h&]uh1jChj^ ubeh}(h]h ]h"]h$]h&]uh1j!hjy hMhj" ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h\int security_inode_mknod (struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h]h)}(h[int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj)}(hsecurity_inode_mknodh]j)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hj, hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj( ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hMubj/)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j5)}(hstruct inode *dirh](j;)}(hj>h]hstruct}(hjH hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjD ubh)}(h h]h }(hjU hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD ubh)}(hhh]j)}(hinodeh]hinode}(hjf hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjh modnameN classnameNjwjz)}j}]j)}jsj. sbc.security_inode_mknodasbuh1hhjD ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD ubj)}(hdirh]hdir}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.security_inode_mknodasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ ubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj/modnameN classnameNjwjz)}j}]j c.security_inode_mknodasbuh1hhj&ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hmodeh]hmode}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ ubj5)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j c.security_inode_mknodasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]j)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h'``struct inode *dir`` parent directory h](j()}(h``struct inode *dir``h]j.)}(hj h]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hparent directoryh]hparent directory}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhjubj")}(h#``struct dentry *dentry`` new file h](j()}(h``struct dentry *dentry``h]j.)}(hjEh]hstruct dentry *dentry}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?ubjD)}(hhh]j)}(hnew fileh]hnew file}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhjubj")}(h``umode_t mode`` new file mode h](j()}(h``umode_t mode``h]j.)}(hj~h]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubjD)}(hhh]j)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``dev_t dev`` device number h](j()}(h ``dev_t dev``h]j.)}(hjh]h dev_t dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h device numberh]h device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_inode_rename (C function)c.security_inode_renamehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hint security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h]h)}(hint security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](h)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjlhMubj)}(hsecurity_inode_renameh]j)}(hsecurity_inode_renameh]hsecurity_inode_rename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjlhMubj/)}(hx(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j5)}(hstruct inode *old_dirh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_renameasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_dirh]hold_dir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *old_dentryh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-modnameN classnameNjwjz)}j}]jc.security_inode_renameasbuh1hhj ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h old_dentryh]h old_dentry}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *new_dirh](j;)}(hj>h]hstruct}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_inode_renameasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *new_dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jc.security_inode_renameasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hinth]hint}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjlhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjShhubj)}(hhh]j)}(h#Check if renaming a file is allowedh]h#Check if renaming a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h;``struct inode *old_dir`` parent directory of the old file h](j()}(h``struct inode *old_dir``h]j.)}(hjh]hstruct inode *old_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h parent directory of the old fileh]h parent directory of the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h+``struct dentry *old_dentry`` the old file h](j()}(h``struct dentry *old_dentry``h]j.)}(hj9h]hstruct dentry *old_dentry}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubjD)}(hhh]j)}(h the old fileh]h the old file}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhMhjubj")}(h;``struct inode *new_dir`` parent directory of the new file h](j()}(h``struct inode *new_dir``h]j.)}(hjrh]hstruct inode *new_dir}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjlubjD)}(hhh]j)}(h parent directory of the new fileh]h parent directory of the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h+``struct dentry *new_dentry`` the new file h](j()}(h``struct dentry *new_dentry``h]j.)}(hjh]hstruct dentry *new_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h the new fileh]h the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``unsigned int flags`` flags h](j()}(h``unsigned int flags``h]j.)}(hjh]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h3Check for permission to rename a file or directory.h]h3Check for permission to rename a file or directory.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h3int security_inode_readlink (struct dentry *dentry)h]h)}(h2int security_inode_readlink(struct dentry *dentry)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_inode_readlinkh]j)}(hsecurity_inode_readlinkh]hsecurity_inode_readlink}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_readlinkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h+Check if reading a symbolic link is allowedh]h+Check if reading a symbolic link is allowed}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct dentry *dentry`` link **Description** Check the permission to read the symbolic link. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hlinkh]hlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h/Check the permission to read the symbolic link.h]h/Check the permission to read the symbolic link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hUint security_inode_follow_link (struct dentry *dentry, struct inode *inode, bool rcu)h]h)}(hTint security_inode_follow_link(struct dentry *dentry, struct inode *inode, bool rcu)h](h)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj)}(hsecurity_inode_follow_linkh]j)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhMubj/)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.security_inode_follow_linkasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_inode_follow_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hbool rcuh](h)}(hjoh]hbool}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hrcuh]hrcu}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(h-Check if following a symbolic link is allowedh]h-Check if following a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h&``struct dentry *dentry`` link dentry h](j()}(h``struct dentry *dentry``h]j.)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h link dentryh]h link dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h#``struct inode *inode`` link inode h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubjD)}(hhh]j)}(h link inodeh]h link inode}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhjubj")}(h&``bool rcu`` true if in RCU-walk mode h](j()}(h ``bool rcu``h]j.)}(hjJh]hbool rcu}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjDubjD)}(hhh]j)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(htCheck permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable.h](hKCheck permission to follow a symbolic link when looking up a pathname. If }(hjhhhNhNubj)}(h**rcu**h]hrcu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is true, }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not stable.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h=int security_inode_permission (struct inode *inode, int mask)h]h)}(hh]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubh)}(hhh]j)}(hinodeh]hinode}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsj8sbc.security_inode_permissionasbuh1hhjNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hint maskh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj#hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj#hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hM hj hhubj)}(hhh]j)}(h&Check if accessing an inode is allowedh]h&Check if accessing an inode is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhjwhNhNubj)}(hX'**Parameters** ``struct inode *inode`` inode ``int mask`` access mask **Description** Check permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubj)}(hhh](j")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hjKh]hstruct inode *inode}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjEubjD)}(hhh]j)}(hinodeh]hinode}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hM hjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hM hjBubj")}(h``int mask`` access mask h](j()}(h ``int mask``h]j.)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubjD)}(hhh]j)}(h access maskh]h access mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubj)}(hXCheck permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed.h]hXCheck permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h_void security_inode_post_setattr (struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h]h)}(h^void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM. ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj9hM. ubj)}(hsecurity_inode_post_setattrh]j)}(hsecurity_inode_post_setattrh]hsecurity_inode_post_setattr}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj9hM. ubj/)}(h>(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjNsbc.security_inode_post_setattrasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_inode_post_setattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubj5)}(h int ia_validh](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hia_validh]hia_valid}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'hhhj9hM. ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj9hM. ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hM. hj hhubj)}(hhh]j)}(h*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM. hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hM. ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2 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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/ hjubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM/ hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM/ hjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0 hjubjD)}(hhh]j)}(hfileh]hfile}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0 hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM0 hjubj")}(h%``int ia_valid`` file attributes set h](j()}(h``int ia_valid``h]j.)}(hjCh]h int ia_valid}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1 hj=ubjD)}(hhh]j)}(hfile attributes seth]hfile attributes set}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhM1 hjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhM1 hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM3 hjubj)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM3 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_inode_getattr (const struct path *path)h]h)}(h3int security_inode_getattr(const struct path *path)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM> ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM> ubj)}(hsecurity_inode_getattrh]j)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM> ubj/)}(h(const struct path *path)h]j5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpathh]hpath}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_getattrasbuh1hhjubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM> ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM> ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM> hjhhubj)}(hhh]j)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM> hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM> ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``const struct path *path`` file **Description** Check permission before obtaining file attributes. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMB hjubj)}(hhh]j")}(h!``const struct path *path`` file h](j()}(h``const struct path *path``h]j.)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM? hjubjD)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM? hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMA hjubj)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMA hjubj)}(h **Return**h]j)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hint security_inode_setxattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]h)}(hint security_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMM ubj)}(hsecurity_inode_setxattrh]j)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMM ubj/)}(hm(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inode_setxattrasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj5 hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1 ubh)}(h h]h }(hjB hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1 ubh)}(hhh]j)}(hdentryh]hdentry}(hjS hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjU modnameN classnameNjwjz)}j}]jc.security_inode_setxattrasbuh1hhj1 ubh)}(h h]h }(hjq hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1 ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubj)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1 ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnameh]hname}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst void *valueh](j;)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj+!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj9!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hvalueh]hvalue}(hjF!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjb!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjd!modnameN classnameNjwjz)}j}]jc.security_inode_setxattrasbuh1hhj[!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[!ubj)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int flagsh](h)}(hinth]hint}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hflagsh]hflags}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhjhMM ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhMM hj{hhubj)}(hhh]j)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMM hj!hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj "ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQ hj "ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj."h]hstruct mnt_idmap *idmap}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMN hj("ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjG"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC"hMN hjD"ubah}(h]h ]h"]h$]h&]uh1jChj("ubeh}(h]h ]h"]h$]h&]uh1j!hjC"hMN hj%"ubj")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hjg"h]hstruct dentry *dentry}(hji"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hje"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMO hja"ubjD)}(hhh]j)}(hfileh]hfile}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|"hMO hj}"ubah}(h]h ]h"]h$]h&]uh1jChja"ubeh}(h]h ]h"]h$]h&]uh1j!hj|"hMO hj%"ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj"h]hconst char *name}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMP hj"ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMP hj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMP hj%"ubj")}(h"``const void *value`` xattr value h](j()}(h``const void *value``h]j.)}(hj"h]hconst void *value}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQ hj"ubjD)}(hhh]j)}(h xattr valueh]h xattr value}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMQ hj"ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hMQ hj%"ubj")}(h$``size_t size`` size of xattr value h](j()}(h``size_t size``h]j.)}(hj#h]h size_t size}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hj #ubjD)}(hhh]j)}(hsize of xattr valueh]hsize of xattr value}(hj+#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'#hMR hj(#ubah}(h]h ]h"]h$]h&]uh1jChj #ubeh}(h]h ]h"]h$]h&]uh1j!hj'#hMR hj%"ubj")}(h``int flags`` flags h](j()}(h ``int flags``h]j.)}(hjK#h]h int flags}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI#ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMS hjE#ubjD)}(hhh]j)}(hflagsh]hflags}(hjd#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`#hMS hja#ubah}(h]h ]h"]h$]h&]uh1jChjE#ubeh}(h]h ]h"]h$]h&]uh1j!hj`#hMS hj%"ubeh}(h]h ]h"]h$]h&]uh1jhj "ubj)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMU hj "ubj)}(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}(hj#hhhNhNubah}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMU hj "ubj)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZ hj "ubj)}(h **Return**h]j)}(hj#h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMd hj "ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMd hj "ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hyint security_inode_set_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]h)}(hxint security_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](h)}(hinth]hint}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{ ubh)}(h h]h }(hj"$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj!$hM{ ubj)}(hsecurity_inode_set_aclh]j)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hj4$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$hhhj!$hM{ ubj/)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjP$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjL$ubh)}(h h]h }(hj]$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL$ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjn$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjp$modnameN classnameNjwjz)}j}]j)}jsj6$sbc.security_inode_set_aclasbuh1hhjL$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL$ubj)}(hidmaph]hidmap}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjL$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH$ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hdentryh]hdentry}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$modnameN classnameNjwjz)}j}]j$c.security_inode_set_aclasbuh1hhj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hdentryh]hdentry}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH$ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj2%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.%ubh)}(h h]h }(hj?%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.%ubh)}(hcharh]hchar}(hjM%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.%ubh)}(h h]h }(hj[%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.%ubj)}(hjh]h*}(hji%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.%ubj)}(hacl_nameh]hacl_name}(hjv%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH$ubj5)}(hstruct posix_acl *kaclh](j;)}(hj>h]hstruct}(hj%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(h posix_aclh]h posix_acl}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j$c.security_inode_set_aclasbuh1hhj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hkaclh]hkacl}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH$ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj$hhhj!$hM{ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj $hhhj!$hM{ ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj!$hM{ hj$hhubj)}(hhh]j)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM{ hj &hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj!$hM{ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(&jj(&jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj2&h]h Parameters}(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:287: ./security/security.chM hj,&ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hjQ&h]hstruct mnt_idmap *idmap}(hjS&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjO&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM| hjK&ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf&hM| hjg&ubah}(h]h ]h"]h$]h&]uh1jChjK&ubeh}(h]h ]h"]h$]h&]uh1j!hjf&hM| hjH&ubj")}(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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM} hj&ubjD)}(hhh]j)}(hfileh]hfile}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hM} hj&ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hM} hjH&ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj&h]hconst char *acl_name}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~ hj&ubjD)}(hhh]j)}(hacl nameh]hacl name}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hM~ hj&ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hM~ hjH&ubj")}(h&``struct posix_acl *kacl`` acl struct h](j()}(h``struct posix_acl *kacl``h]j.)}(hj&h]hstruct posix_acl *kacl}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&ubjD)}(hhh]j)}(h acl structh]h acl struct}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hM hj'ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj'hM hjH&ubeh}(h]h ]h"]h$]h&]uh1jhj,&ubj)}(h**Description**h]j)}(hj7'h]h Description}(hj9'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,&ubj)}(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 }(hjM'hhhNhNubj)}(h**kacl**h]hkacl}(hjU'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM'ubh are identified by }(hjM'hhhNhNubj)}(h **acl_name**h]hacl_name}(hjg'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM'ubh.}(hjM'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,&ubj)}(h **Return**h]j)}(hj'h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,&ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hfvoid security_inode_post_set_acl (struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]h)}(hevoid security_inode_post_set_acl(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](h)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hM ubj)}(hsecurity_inode_post_set_aclh]j)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj'hM ubj/)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(hdentryh]hdentry}(hj"(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$(modnameN classnameNjwjz)}j}]j)}jsj'sbc.security_inode_post_set_aclasbuh1hhj(ubh)}(h h]h }(hjB(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(hjh]h*}(hjP(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hdentryh]hdentry}(hj](hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hjv(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjr(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr(ubh)}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjr(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr(ubj)}(hacl_nameh]hacl_name}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubj5)}(hstruct posix_acl *kaclh](j;)}(hj>h]hstruct}(hj(hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubh)}(hhh]j)}(h posix_aclh]h posix_acl}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]j>(c.security_inode_post_set_aclasbuh1hhj(ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hkaclh]hkacl}(hj*)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj'hhhj'hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'hhhj'hM ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hM hj'hhubj)}(hhh]j)}(h)Update inode security from posix acls seth]h)Update inode security from posix acls set}(hjT)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjQ)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjl)jjl)jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjv)h]h Parameters}(hjx)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjp)ubj)}(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&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj)ubjD)}(hhh]j)}(hfileh]hfile}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hM hj)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj)hM hj)ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj)h]hconst char *acl_name}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj)ubjD)}(hhh]j)}(hacl nameh]hacl name}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hM hj)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj)hM hj)ubj")}(h&``struct posix_acl *kacl`` acl struct h](j()}(h``struct posix_acl *kacl``h]j.)}(hj*h]hstruct posix_acl *kacl}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj*ubjD)}(hhh]j)}(h acl structh]h acl struct}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hM hj*ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hM hj)ubeh}(h]h ]h"]h$]h&]uh1jhjp)ubj)}(h**Description**h]j)}(hjB*h]h Description}(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:287: ./security/security.chM hjp)ubj)}(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 }(hjX*hhhNhNubj)}(h **dentry**h]hdentry}(hj`*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX*ubh. The posix acls in }(hjX*hhhNhNubj)}(h**kacl**h]hkacl}(hjr*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX*ubh are identified by }(hjX*hhhNhNubj)}(h **acl_name**h]hacl_name}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX*ubh.}(hjX*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjp)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhjwhhhNhNubh)}(hhh](h)}(haint security_inode_get_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]h)}(h`int security_inode_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](h)}(hinth]hint}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj*hM ubj)}(hsecurity_inode_get_aclh]j)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj*hhhj*hM ubj/)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j)}jsj*sbc.security_inode_get_aclasbuh1hhj*ubh)}(h h]h }(hj8+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjF+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hidmaph]hidmap}(hjS+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjl+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjh+ubh)}(h h]h }(hjy+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjh+ubh)}(hhh]j)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j4+c.security_inode_get_aclasbuh1hhjh+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjh+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh+ubj)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjh+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hacl_nameh]hacl_name}(hj ,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj*hhhj*hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhj*hM ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hM hj*hhubj)}(hhh]j)}(h&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjG,hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjb,jjb,jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjl,h]h Parameters}(hjn,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf,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}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hM hj,ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj,hM hj,ubj")}(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&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,ubjD)}(hhh]j)}(hfileh]hfile}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hM hj,ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj,hM hj,ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj,h]hconst char *acl_name}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj,ubjD)}(hhh]j)}(hacl nameh]hacl name}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hM hj-ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj-hM hj,ubeh}(h]h ]h"]h$]h&]uh1jhjf,ubj)}(h**Description**h]j)}(hj8-h]h Description}(hj:-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf,ubj)}(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 }(hjN-hhhNhNubj)}(h **acl_name**h]hacl_name}(hjV-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN-ubh.}(hjN-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf,ubj)}(h **Return**h]j)}(hjq-h]hReturn}(hjs-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf,ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hdint security_inode_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]h)}(hcint security_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](h)}(hinth]hint}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-hhhj-hM ubj)}(hsecurity_inode_remove_aclh]j)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj-hhhj-hM ubj/)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hj-hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj-ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]j)}jsj-sbc.security_inode_remove_aclasbuh1hhj-ubh)}(h h]h }(hj1.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hj?.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hidmaph]hidmap}(hjL.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hje.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hja.ubh)}(h h]h }(hjr.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja.ubh)}(hhh]j)}(hdentryh]hdentry}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]j-.c.security_inode_remove_aclasbuh1hhja.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja.ubj)}(hdentryh]hdentry}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hcharh]hchar}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hacl_nameh]hacl_name}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj-hhhj-hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhj-hM ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hM hj-hhubj)}(hhh]j)}(h(Check if removing a posix acl is allowedh]h(Check if removing a posix acl is allowed}(hjC/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj@/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[/jj[/jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hje/h]h Parameters}(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:287: ./security/security.chM hj_/ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj/h]hstruct mnt_idmap *idmap}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~/ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hM hj/ubah}(h]h ]h"]h$]h&]uh1jChj~/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hM hj{/ubj")}(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&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj/ubjD)}(hhh]j)}(hfileh]hfile}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hM hj/ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hM hj{/ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj/h]hconst char *acl_name}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj/ubjD)}(hhh]j)}(hacl nameh]hacl name}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 0hM hj 0ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj 0hM hj{/ubeh}(h]h ]h"]h$]h&]uh1jhj_/ubj)}(h**Description**h]j)}(hj10h]h Description}(hj30hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj_/ubj)}(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 }(hjG0hhhNhNubj)}(h **acl_name**h]hacl_name}(hjO0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG0ubh.}(hjG0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj_/ubj)}(h **Return**h]j)}(hjj0h]hReturn}(hjl0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj_/ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj_/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hjvoid security_inode_post_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]h)}(hivoid security_inode_post_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](h)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhj0hM ubj)}(hsecurity_inode_post_remove_aclh]j)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhj0hM ubj/)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj 1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj 1modnameN classnameNjwjz)}j}]j)}jsj0sb c.security_inode_post_remove_aclasbuh1hhj0ubh)}(h h]h }(hj*1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj81hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hidmaph]hidmap}(hjE1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj^1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjZ1ubh)}(h h]h }(hjk1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ1ubh)}(hhh]j)}(hdentryh]hdentry}(hj|1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~1modnameN classnameNjwjz)}j}]j&1 c.security_inode_post_remove_aclasbuh1hhjZ1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ1ubj)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZ1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hconst char *acl_nameh](j;)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hacl_nameh]hacl_name}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhj0hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhj0hM ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hM hj0hhubj)}(hhh]j)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(hj<2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj92hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjT2jjT2jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^2h]h Parameters}(hj`2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjX2ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj}2h]hstruct mnt_idmap *idmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjw2ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jChjw2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hM hjt2ubj")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hj2h]hstruct dentry *dentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj2ubjD)}(hhh]j)}(hfileh]hfile}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hM hjt2ubj")}(h"``const char *acl_name`` acl name h](j()}(h``const char *acl_name``h]j.)}(hj2h]hconst char *acl_name}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj2ubjD)}(hhh]j)}(hacl nameh]hacl name}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj3hM hjt2ubeh}(h]h ]h"]h$]h&]uh1jhjX2ubj)}(h**Description**h]j)}(hj*3h]h Description}(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:287: ./security/security.chM hjX2ubj)}(hUpdate inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](hEUpdate inode security data after successfully removing posix acls on }(hj@3hhhNhNubj)}(h **dentry**h]hdentry}(hjH3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@3ubh in }(hj@3hhhNhNubj)}(h **idmap**h]hidmap}(hjZ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@3ubh#. The posix acls are identified by }(hj@3hhhNhNubj)}(h **acl_name**h]hacl_name}(hjl3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@3ubh.}(hj@3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjX2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hvvoid security_inode_post_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]h)}(huvoid security_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhj3hM ubj)}(hsecurity_inode_post_setxattrh]j)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj3hhhj3hM ubj/)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hdentryh]hdentry}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsj3sbc.security_inode_post_setxattrasbuh1hhj3ubh)}(h h]h }(hj 4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hj.4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdentryh]hdentry}(hj;4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjT4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjP4ubh)}(h h]h }(hja4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP4ubh)}(hcharh]hchar}(hjo4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP4ubh)}(h h]h }(hj}4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP4ubj)}(hnameh]hname}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjP4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(hconst void *valueh](j;)}(hjh]hconst}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hvalueh]hvalue}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j4c.security_inode_post_setxattrasbuh1hhj 5ubh)}(h h]h }(hj/5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 5ubj)}(hsizeh]hsize}(hj=5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubj5)}(h int flagsh](h)}(hinth]hint}(hjV5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjR5ubh)}(h h]h }(hjd5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjR5ubj)}(hflagsh]hflags}(hjr5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjR5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhj3hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3hhhj3hM ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM hj3hhubj)}(hhh]j)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5jj5jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5ubj)}(hhh](j")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hj5h]hstruct dentry *dentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5ubjD)}(hhh]j)}(hfileh]hfile}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hj5hM hj5ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj6h]hconst char *name}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj6ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj/6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+6hM hj,6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj+6hM hj5ubj")}(h"``const void *value`` xattr value h](j()}(h``const void *value``h]j.)}(hjO6h]hconst void *value}(hjQ6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjM6ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjI6ubjD)}(hhh]j)}(h xattr valueh]h xattr value}(hjh6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd6hM hje6ubah}(h]h ]h"]h$]h&]uh1jChjI6ubeh}(h]h ]h"]h$]h&]uh1j!hjd6hM hj5ubj")}(h!``size_t size`` xattr value size h](j()}(h``size_t size``h]j.)}(hj6h]h size_t size}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj6ubjD)}(hhh]j)}(hxattr value sizeh]hxattr value size}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hM hj5ubj")}(h``int flags`` flags h](j()}(h ``int flags``h]j.)}(hj6h]h int flags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj6ubjD)}(hhh]j)}(hflagsh]hflags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hM hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5ubj)}(h@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhOhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hEint security_inode_getxattr (struct dentry *dentry, const char *name)h]h)}(hDint security_inode_getxattr(struct dentry *dentry, const char *name)h](h)}(hinth]hint}(hjA7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjP7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=7hhhjO7hM ubj)}(hsecurity_inode_getxattrh]j)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hjb7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=7hhhjO7hM ubj/)}(h)(struct dentry *dentry, const char *name)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj~7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjz7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjz7ubh)}(hhh]j)}(hdentryh]hdentry}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]j)}jsjd7sbc.security_inode_getxattrasbuh1hhjz7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjz7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz7ubj)}(hdentryh]hdentry}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjv7ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hcharh]hchar}(hj 8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hj'8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hnameh]hname}(hj48hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjv7ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj=7hhhjO7hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj97hhhjO7hM ubah}(h]j47ah ](jjeh"]h$]h&]jj)jhuh1hhjO7hM hj67hhubj)}(hhh]j)}(h Check if xattr access is allowedh]h Check if xattr access is allowed}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj[8hhubah}(h]h ]h"]h$]h&]uh1jhj67hhhjO7hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjv8jjv8jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjz8ubj)}(hhh](j")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hj8h]hstruct dentry *dentry}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj8ubjD)}(hhh]j)}(hfileh]hfile}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hM hj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hM hj8ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj8h]hconst char *name}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj8ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hM hj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hM hj8ubeh}(h]h ]h"]h$]h&]uh1jhjz8ubj)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjz8ubj)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hj)9hhhNhNubj)}(h**name**h]hname}(hj19hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)9ubh for }(hj)9hhhNhNubj)}(h **dentry**h]hdentry}(hjC9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)9ubh.}(hj)9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjz8ubj)}(h **Return**h]j)}(hj^9h]hReturn}(hj`9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjz8ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjt9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjz8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_inode_listxattr (struct dentry *dentry)h]h)}(h3int security_inode_listxattr(struct dentry *dentry)h](h)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhj9hM ubj)}(hsecurity_inode_listxattrh]j)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhj9hM ubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j)}(hdentryh]hdentry}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:modnameN classnameNjwjz)}j}]j)}jsj9sbc.security_inode_listxattrasbuh1hhj9ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hj,:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdentryh]hdentry}(hj9:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhj9hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhj9hM ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM hj9hhubj)}(hhh]j)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(hjc:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{:jj{:jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubj)}(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&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubjD)}(hhh]j)}(hfileh]hfile}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubj)}(hVCheck permission before obtaining the list of extended attribute names for **dentry**.h](hKCheck permission before obtaining the list of extended attribute names for }(hj:hhhNhNubj)}(h **dentry**h]hdentry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubj)}(h **Return**h]j)}(hj;h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj.;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(haint security_inode_removexattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h]h)}(h`int security_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](h)}(hinth]hint}(hj];hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY;hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjl;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY;hhhjk;hM ubj)}(hsecurity_inode_removexattrh]j)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hj~;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjY;hhhjk;hM ubj/)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j)}jsj;sbc.security_inode_removexattrasbuh1hhj;ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hidmaph]hidmap}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj <hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j)}(hdentryh]hdentry}(hj*<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,<modnameN classnameNjwjz)}j}]j;c.security_inode_removexattrasbuh1hhj<ubh)}(h h]h }(hjH<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjV<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hdentryh]hdentry}(hjc<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj|<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjx<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjx<ubh)}(hcharh]hchar}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjx<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx<ubj)}(hnameh]hname}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjx<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjY;hhhjk;hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjU;hhhjk;hM ubah}(h]jP;ah ](jjeh"]h$]h&]jj)jhuh1hhjk;hM hjR;hhubj)}(hhh]j)}(h%Check if removing an xattr is allowedh]h%Check if removing an xattr is allowed}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj<hhubah}(h]h ]h"]h$]h&]uh1jhjR;hhhjk;hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj =h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj =ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj+=h]hstruct mnt_idmap *idmap}(hj-=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)=ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%=ubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@=hM hjA=ubah}(h]h ]h"]h$]h&]uh1jChj%=ubeh}(h]h ]h"]h$]h&]uh1j!hj@=hM hj"=ubj")}(h``struct dentry *dentry`` file h](j()}(h``struct dentry *dentry``h]j.)}(hjd=h]hstruct dentry *dentry}(hjf=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjb=ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj^=ubjD)}(hhh]j)}(hfileh]hfile}(hj}=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy=hM hjz=ubah}(h]h ]h"]h$]h&]uh1jChj^=ubeh}(h]h ]h"]h$]h&]uh1j!hjy=hM hj"=ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj=h]hconst char *name}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hM hj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hM hj"=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubj)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubj)}(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}(hj=hhhNhNubah}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubj)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubj)}(h **Return**h]j)}(hj >h]hReturn}(hj">hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj6>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hNvoid security_inode_post_removexattr (struct dentry *dentry, const char *name)h]h)}(hMvoid security_inode_post_removexattr(struct dentry *dentry, const char *name)h](h)}(hvoidh]hvoid}(hje>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4 ubh)}(h h]h }(hjt>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja>hhhjs>hM4 ubj)}(hsecurity_inode_post_removexattrh]j)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hja>hhhjs>hM4 ubj/)}(h)(struct dentry *dentry, const char *name)h](j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hdentryh]hdentry}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]j)}jsj>sb!c.security_inode_post_removexattrasbuh1hhj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hdentryh]hdentry}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hj!?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hcharh]hchar}(hj/?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hj=?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjK?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hnameh]hname}(hjX?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hja>hhhjs>hM4 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]>hhhjs>hM4 ubah}(h]jX>ah ](jjeh"]h$]h&]jj)jhuh1hhjs>hM4 hjZ>hhubj)}(hhh]j)}(h'Update the inode after a removexattr oph]h'Update the inode after a removexattr op}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4 hj?hhubah}(h]h ]h"]h$]h&]uh1jhjZ>hhhjs>hM4 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj?jj?jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Update the inode after a successful removexattr operation.h](j)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hj?ubj)}(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&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5 hj?ubjD)}(hhh]j)}(hfileh]hfile}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hM5 hj?ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj?hM5 hj?ubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hj?h]hconst char *name}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6 hj?ubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hM6 hj@ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hj@hM6 hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubj)}(h**Description**h]j)}(hj7@h]h Description}(hj9@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hj?ubj)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjM@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_inode_need_killpriv (struct dentry *dentry)h]h)}(h7int security_inode_need_killpriv(struct dentry *dentry)h](h)}(hinth]hint}(hj|@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMB ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjx@hhhj@hMB ubj)}(hsecurity_inode_need_killprivh]j)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjx@hhhj@hMB ubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj@hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(hdentryh]hdentry}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsj@sbc.security_inode_need_killprivasbuh1hhj@ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hdentryh]hdentry}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjx@hhhj@hMB ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjt@hhhj@hMB ubah}(h]jo@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMB hjq@hhubj)}(hhh]j)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hj0 if security_inode_killpriv() does need to be called.h](j)}(h**Parameters**h]j)}(hj^Ah]h Parameters}(hj`AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Aubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMF hjXAubj)}(hhh]j")}(h,``struct dentry *dentry`` associated dentry h](j()}(h``struct dentry *dentry``h]j.)}(hj}Ah]hstruct dentry *dentry}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{Aubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjwAubjD)}(hhh]j)}(hassociated dentryh]hassociated dentry}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMC hjAubah}(h]h ]h"]h$]h&]uh1jChjwAubeh}(h]h ]h"]h$]h&]uh1j!hjAhMC hjtAubah}(h]h ]h"]h$]h&]uh1jhjXAubj)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chME hjXAubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chME hjXAubj)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMH hjXAubj)}(hhh]j")}(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](j()}(hCReturn <0 on error to abort the inode change operation, return 0 ifh]hCReturn <0 on error to abort the inode change operation, return 0 if}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMI hjAubjD)}(hhh]j)}(htsecurity_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h]htsecurity_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj BhMI hj Bubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj BhMI hjAubah}(h]h ]h"]h$]h&]uh1jhjXAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hLint security_inode_killpriv (struct mnt_idmap *idmap, struct dentry *dentry)h]h)}(hKint security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)h](h)}(hinth]hint}(hjNBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR ubh)}(h h]h }(hj]BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJBhhhj\BhMR ubj)}(hsecurity_inode_killprivh]j)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjoBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJBhhhj\BhMR ubj/)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]j)}jsjqBsbc.security_inode_killprivasbuh1hhjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hidmaph]hidmap}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubj5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjBubh)}(h h]h }(hj ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(hdentryh]hdentry}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jBc.security_inode_killprivasbuh1hhjBubh)}(h h]h }(hj9ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjGChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hdentryh]hdentry}(hjTChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjJBhhhj\BhMR ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjFBhhhj\BhMR ubah}(h]jABah ](jjeh"]h$]h&]jj)jhuh1hhj\BhMR hjCBhhubj)}(hhh]j)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(hj~ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hj{Chhubah}(h]h ]h"]h$]h&]uh1jhjCBhhhj\BhMR ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjwhNhNubj)}(hXy**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](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjCubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hjCh]hstruct mnt_idmap *idmap}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMS hjCubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMS hjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMS hjCubj")}(h,``struct dentry *dentry`` associated dentry h](j()}(h``struct dentry *dentry``h]j.)}(hjCh]hstruct dentry *dentry}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMT hjCubjD)}(hhh]j)}(hassociated dentryh]hassociated dentry}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj DhMT hjDubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj DhMT hjCubeh}(h]h ]h"]h$]h&]uh1jhjCubj)}(h**Description**h]j)}(hj3Dh]h Description}(hj5DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Dubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjCubj)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.h](hThe }(hjIDhhhNhNubj)}(h **dentry**h]hdentry}(hjQDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIDubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hjIDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjCubj)}(h **Return**h]j)}(hjlDh]hReturn}(hjnDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMY hjCubj)}(hhh]j")}(hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h](j()}(h>Return 0 on success. If error is returned, then the operationh]h>Return 0 on success. If error is returned, then the operation}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMY hjDubjD)}(hhh]j)}(h%causing setuid bit removal is failed.h]h%causing setuid bit removal is failed.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZ hjDubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hjDhMY hjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hzint security_inode_getsecurity (struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h]h)}(hyint security_inode_getsecurity(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](h)}(hinth]hint}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjDhMc ubj)}(hsecurity_inode_getsecurityh]j)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjDhMc ubj/)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j5)}(hstruct mnt_idmap *idmaph](j;)}(hj>h]hstruct}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjEubh)}(h h]h }(hj&EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj7EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Eubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9EmodnameN classnameNjwjz)}j}]j)}jsjDsbc.security_inode_getsecurityasbuh1hhjEubh)}(h h]h }(hjWEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hjeEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hidmaph]hidmap}(hjrEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjEubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubh)}(hhh]j)}(hinodeh]hinode}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]jSEc.security_inode_getsecurityasbuh1hhjEubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hinodeh]hinode}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjEubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubh)}(hcharh]hchar}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubh)}(h h]h }(hj$FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hj2FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hnameh]hname}(hj?FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(h void **bufferh](h)}(hvoidh]hvoid}(hjXFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTFubh)}(h h]h }(hjfFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTFubj)}(hjh]h*}(hjtFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTFubj)}(hbufferh]hbuffer}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubj5)}(h bool alloch](h)}(hjoh]hbool}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(halloch]halloc}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjEubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjDhMc ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjDhMc ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMc hjDhhubj)}(hhh]j)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc hjFhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMc ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Gubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMg hjGubj)}(hhh](j")}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j()}(h``struct mnt_idmap *idmap``h]j.)}(hj-Gh]hstruct mnt_idmap *idmap}(hj/GhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+Gubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMd hj'GubjD)}(hhh]j)}(hidmap of the mounth]hidmap of the mount}(hjFGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBGhMd hjCGubah}(h]h ]h"]h$]h&]uh1jChj'Gubeh}(h]h ]h"]h$]h&]uh1j!hjBGhMd hj$Gubj")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hjfGh]hstruct inode *inode}(hjhGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdGubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMe hj`GubjD)}(hhh]j)}(hinodeh]hinode}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{GhMe hj|Gubah}(h]h ]h"]h$]h&]uh1jChj`Gubeh}(h]h ]h"]h$]h&]uh1j!hj{GhMe hj$Gubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hjGh]hconst char *name}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMf hjGubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMf hjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMf hj$Gubj")}(h(``void **buffer`` security label buffer h](j()}(h``void **buffer``h]j.)}(hjGh]h void **buffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMg hjGubjD)}(hhh]j)}(hsecurity label bufferh]hsecurity label buffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMg hjGubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjGhMg hj$Gubj")}(h``bool alloc`` allocation flag h](j()}(h``bool alloc``h]j.)}(hjHh]h bool alloc}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMh hj HubjD)}(hhh]j)}(hallocation flagh]hallocation flag}(hj*HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&HhMh hj'Hubah}(h]h ]h"]h$]h&]uh1jChj Hubeh}(h]h ]h"]h$]h&]uh1j!hj&HhMh hj$Gubeh}(h]h ]h"]h$]h&]uh1jhjGubj)}(h**Description**h]j)}(hjLHh]h Description}(hjNHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMj hjGubj)}(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 }(hjbHhhhNhNubj)}(h**name**h]hname}(hjjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubh for }(hjbHhhhNhNubj)}(h **inode**h]hinode}(hj|HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubh via }(hjbHhhhNhNubj)}(h **buffer**h]hbuffer}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubh . Note that }(hjbHhhhNhNubj)}(h**name**h]hname}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubhT is the remainder of the attribute name after the security prefix has been removed. }(hjbHhhhNhNubj)}(h **alloc**h]halloc}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbHubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hjbHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMj hjGubj)}(h **Return**h]j)}(hjHh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMp hjGubj)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMp hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hqint security_inode_setsecurity (struct inode *inode, const char *name, const void *value, size_t size, int flags)h]h)}(hpint security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](h)}(hinth]hint}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~ ubh)}(h h]h }(hj!IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhj IhM~ ubj)}(hsecurity_inode_setsecurityh]j)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hj3IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/Iubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhj IhM~ ubj/)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjOIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKIubh)}(h h]h }(hj\IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKIubh)}(hhh]j)}(hinodeh]hinode}(hjmIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjoImodnameN classnameNjwjz)}j}]j)}jsj5Isbc.security_inode_setsecurityasbuh1hhjKIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKIubj)}(hinodeh]hinode}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGIubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hcharh]hchar}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hnameh]hname}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGIubj5)}(hconst void *valueh](j;)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJubh)}(h h]h }(hj+JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hvoidh]hvoid}(hj9JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjGJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjUJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hvalueh]hvalue}(hjbJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGIubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj~JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{Jubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]jIc.security_inode_setsecurityasbuh1hhjwJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwJubj)}(hsizeh]hsize}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGIubj5)}(h int flagsh](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hflagsh]hflags}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGIubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhj IhM~ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj Ihhhj IhM~ ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhj IhM~ hjIhhubj)}(hhh]j)}(h(Set the xattr security label of an inodeh]h(Set the xattr security label of an inode}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~ hjKhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhj IhM~ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!Kjj!Kjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj+Kh]h Parameters}(hj-KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Kubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%Kubj)}(hhh](j")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hjJKh]hstruct inode *inode}(hjLKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjDKubjD)}(hhh]j)}(hinodeh]hinode}(hjcKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_KhM hj`Kubah}(h]h ]h"]h$]h&]uh1jChjDKubeh}(h]h ]h"]h$]h&]uh1j!hj_KhM hjAKubj")}(h ``const char *name`` xattr name h](j()}(h``const char *name``h]j.)}(hjKh]hconst char *name}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj}KubjD)}(hhh]j)}(h xattr nameh]h xattr name}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhM hjKubah}(h]h ]h"]h$]h&]uh1jChj}Kubeh}(h]h ]h"]h$]h&]uh1j!hjKhM hjAKubj")}(h%``const void *value`` security label h](j()}(h``const void *value``h]j.)}(hjKh]hconst void *value}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjKubjD)}(hhh]j)}(hsecurity labelh]hsecurity label}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhM hjKubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjKhM hjAKubj")}(h)``size_t size`` length of security label h](j()}(h``size_t size``h]j.)}(hjKh]h size_t size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjKubjD)}(hhh]j)}(hlength of security labelh]hlength of security label}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj LhM hj Lubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hj LhM hjAKubj")}(h``int flags`` flags h](j()}(h ``int flags``h]j.)}(hj.Lh]h int flags}(hj0LhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,Lubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj(LubjD)}(hhh]j)}(hflagsh]hflags}(hjGLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCLhM hjDLubah}(h]h ]h"]h$]h&]uh1jChj(Lubeh}(h]h ]h"]h$]h&]uh1j!hjCLhM hjAKubeh}(h]h ]h"]h$]h&]uh1jhj%Kubj)}(h**Description**h]j)}(hjiLh]h Description}(hjkLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%Kubj)}(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 }(hjLhhhNhNubj)}(h**name**h]hname}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh for }(hjLhhhNhNubj)}(h **inode**h]hinode}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh# from the extended attribute value }(hjLhhhNhNubj)}(h **value**h]hvalue}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh. }(hjLhhhNhNubj)}(h**size**h]hsize}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh indicates the size of the }(hjLhhhNhNubj)}(h **value**h]hvalue}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh in bytes. }(hjLhhhNhNubj)}(h **flags**h]hflags}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjLhhhNhNubj)}(h**name**h]hname}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhT is the remainder of the attribute name after the security. prefix has been removed.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%Kubj)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%Kubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hj$MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj%Kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhjwhhhNhNubh)}(hhh](h)}(hKvoid security_inode_getlsmprop (struct inode *inode, struct lsm_prop *prop)h]h)}(hJvoid security_inode_getlsmprop(struct inode *inode, struct lsm_prop *prop)h](h)}(hvoidh]hvoid}(hjSMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjbMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOMhhhjaMhM ubj)}(hsecurity_inode_getlsmproph]j)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hjtMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOMhhhjaMhM ubj/)}(h,(struct inode *inode, struct lsm_prop *prop)h](j5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(hinodeh]hinode}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]j)}jsjvMsbc.security_inode_getlsmpropasbuh1hhjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hinodeh]hinode}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(hstruct lsm_prop *proph](j;)}(hj>h]hstruct}(hjNhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hj NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"NmodnameN classnameNjwjz)}j}]jMc.security_inode_getlsmpropasbuh1hhjMubh)}(h h]h }(hj>NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjLNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hproph]hprop}(hjYNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjOMhhhjaMhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKMhhhjaMhM ubah}(h]jFMah ](jjeh"]h$]h&]jj)jhuh1hhjaMhM hjHMhhubj)}(hhh]j)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNhhubah}(h]h ]h"]h$]h&]uh1jhjHMhhhjaMhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjNjjNjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNubj)}(hhh](j")}(h``struct inode *inode`` inode h](j()}(h``struct inode *inode``h]j.)}(hjNh]hstruct inode *inode}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNubjD)}(hhh]j)}(hinodeh]hinode}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjNhM hjNubj")}(h=``struct lsm_prop *prop`` lsm specific information to return h](j()}(h``struct lsm_prop *prop``h]j.)}(hjNh]hstruct lsm_prop *prop}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNubjD)}(hhh]j)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjOhM hjNubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hj8Oh]h Description}(hj:OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Oubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNubj)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hjNOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hVint security_kernfs_init_security (struct kernfs_node *kn_dir, struct kernfs_node *kn)h]h)}(hUint security_kernfs_init_security(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](h)}(hinth]hint}(hj}OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyOhhhjOhM ubj)}(hsecurity_kernfs_init_securityh]j)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyOhhhjOhM ubj/)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j5)}(hstruct kernfs_node *kn_dirh](j;)}(hj>h]hstruct}(hjOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjOmodnameN classnameNjwjz)}j}]j)}jsjOsbc.security_kernfs_init_securityasbuh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hkn_dirh]hkn_dir}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubj5)}(hstruct kernfs_node *knh](j;)}(hj>h]hstruct}(hj,PhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj(Pubh)}(h h]h }(hj9PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(Pubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hjJPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjLPmodnameN classnameNjwjz)}j}]jOc.security_kernfs_init_securityasbuh1hhj(Pubh)}(h h]h }(hjhPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(Pubj)}(hjh]h*}(hjvPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Pubj)}(hknh]hkn}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(Pubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjyOhhhjOhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuOhhhjOhM ubah}(h]jpOah ](jjeh"]h$]h&]jj)jhuh1hhjOhM hjrOhhubj)}(hhh]j)}(h"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjPhhubah}(h]h ]h"]h$]h&]uh1jhjrOhhhjOhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjPubj)}(hhh](j")}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j()}(h``struct kernfs_node *kn_dir``h]j.)}(hjPh]hstruct kernfs_node *kn_dir}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjPubjD)}(hhh]j)}(hparent kernfs nodeh]hparent kernfs node}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhM hjQubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjQhM hjPubj")}(h9``struct kernfs_node *kn`` the kernfs node to initialize h](j()}(h``struct kernfs_node *kn``h]j.)}(hj'Qh]hstruct kernfs_node *kn}(hj)QhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%Qubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj!QubjD)}(hhh]j)}(hthe kernfs node to initializeh]hthe kernfs node to initialize}(hj@QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]hstruct}(hj RhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(hfileh]hfile}(hj)RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&Rubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+RmodnameN classnameNjwjz)}j}]j)}jsjQsbc.security_file_permissionasbuh1hhjRubh)}(h h]h }(hjIRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjWRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hfileh]hfile}(hjdRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubj5)}(hint maskh](h)}(hinth]hint}(hj}RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyRubj)}(hmaskh]hmask}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjRubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjQhhhjQhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjQhM ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjQhM hjQhhubj)}(hhh]j)}(hCheck file permissionsh]hCheck file permissions}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjSh]hstruct file *file}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubjD)}(hhh]j)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShM hjSubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjShM hjRubj")}(h#``int mask`` requested permissions h](j()}(h ``int mask``h]j.)}(hj=Sh]hint mask}(hj?ShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;Subah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj7SubjD)}(hhh]j)}(hrequested permissionsh]hrequested permissions}(hjVShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRShM hjSSubah}(h]h ]h"]h$]h&]uh1jChj7Subeh}(h]h ]h"]h$]h&]uh1j!hjRShM hjRubeh}(h]h ]h"]h$]h&]uh1jhjRubj)}(h**Description**h]j)}(hjxSh]h Description}(hjzShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubj)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubj)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_file_alloc (C function)c.security_file_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h+int security_file_alloc (struct file *file)h]h)}(h*int security_file_alloc(struct file *file)h](h)}(hinth]hint}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjShhhjShM ubj)}(hsecurity_file_alloch]j)}(hsecurity_file_alloch]hsecurity_file_alloc}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjShhhjShM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj!ThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hj.ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(hfileh]hfile}(hj?ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf_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](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM$ hjTubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjTh]hstruct file *file}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM! hjTubjD)}(hhh]j)}(hthe fileh]hthe file}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThM! hjTubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjThM! hjTubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h**Description**h]j)}(hj Uh]h Description}(hj"UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM# hjTubj)}(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.}(hj6UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM# hjTubj)}(h **Return**h]j)}(hjGUh]hReturn}(hjIUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM& hjTubj)}(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]UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM& hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_file_release (C function)c.security_file_releasehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.void security_file_release (struct file *file)h]h)}(h-void security_file_release(struct file *file)h](h)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5 ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjUhM5 ubj)}(hsecurity_file_releaseh]j)}(hsecurity_file_releaseh]hsecurity_file_release}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjUhM5 ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hfileh]hfile}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]j)}jsjUsbc.security_file_releaseasbuh1hhjUubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hfileh]hfile}(hj"VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubah}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhjUhM5 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUhhhjUhM5 ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhM5 hjUhhubj)}(hhh]j)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hjLVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5 hjIVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM5 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjdVjjdVjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Perform actions before releasing the last reference to a file.h](j)}(h**Parameters**h]j)}(hjnVh]h Parameters}(hjpVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9 hjhVubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjVh]hstruct file *file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6 hjVubjD)}(hhh]j)}(hthe fileh]hthe file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhM6 hjVubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjVhM6 hjVubah}(h]h ]h"]h$]h&]uh1jhjhVubj)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hjhVubj)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8 hjhVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_file_free (C function)c.security_file_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h+void security_file_free (struct file *file)h]h)}(h*void security_file_free(struct file *file)h](h)}(hvoidh]hvoid}(hj WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj WhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@ ubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj WhhhjWhM@ ubj)}(hsecurity_file_freeh]j)}(hsecurity_file_freeh]hsecurity_file_free}(hj.WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Wubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj WhhhjWhM@ ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjJWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFWubh)}(h h]h }(hjWWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFWubh)}(hhh]j)}(hfileh]hfile}(hjhWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjWmodnameN classnameNjwjz)}j}]j)}jsj0Wsbc.security_file_freeasbuh1hhjFWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFWubj)}(hfileh]hfile}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBWubah}(h]h ]h"]h$]h&]j,j-uh1j.hj WhhhjWhM@ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjWhM@ ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhM@ hjWhhubj)}(hhh]j)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@ hjWhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhM@ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjWjjWjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Deallocate and free any security structures stored in file->f_security.h](j)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMD hjWubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjXh]hstruct file *file}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Xubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMA hjXubjD)}(hhh]j)}(hthe fileh]hthe file}(hj'XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#XhMA hj$Xubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hj#XhMA hjXubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(h**Description**h]j)}(hjIXh]h Description}(hjKXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjWubj)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hj_XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hSint security_mmap_file (struct file *file, unsigned long prot, unsigned long flags)h]h)}(hRint security_mmap_file(struct file *file, unsigned long prot, unsigned long flags)h](h)}(hinth]hint}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjXhM ubj)}(hsecurity_mmap_fileh]j)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjXhM ubj/)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hhh]j)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjXsbc.security_mmap_fileasbuh1hhjXubh)}(h h]h }(hj YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hfileh]hfile}(hj$YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubj5)}(hunsigned long proth](h)}(hunsignedh]hunsigned}(hj=YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9Yubh)}(h h]h }(hjKYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9Yubh)}(hlongh]hlong}(hjYYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9Yubh)}(h h]h }(hjgYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9Yubj)}(hproth]hprot}(hjuYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9Yubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hflagsh]hflags}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjXhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjXhM ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhM hjXhhubj)}(hhh]j)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjZjjZjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj Zubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hj1Zh]hstruct file *file}(hj3ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/Zubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj+ZubjD)}(hhh]j)}(hfileh]hfile}(hjJZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFZhM hjGZubah}(h]h ]h"]h$]h&]uh1jChj+Zubeh}(h]h ]h"]h$]h&]uh1j!hjFZhM hj(Zubj")}(h8``unsigned long prot`` protection applied by the kernel h](j()}(h``unsigned long prot``h]j.)}(hjjZh]hunsigned long prot}(hjlZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhZubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjdZubjD)}(hhh]j)}(h protection applied by the kernelh]h protection applied by the kernel}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhM hjZubah}(h]h ]h"]h$]h&]uh1jChjdZubeh}(h]h ]h"]h$]h&]uh1j!hjZhM hj(Zubj")}(h``unsigned long flags`` flags h](j()}(h``unsigned long flags``h]j.)}(hjZh]hunsigned long flags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjZubjD)}(hhh]j)}(hflagsh]hflags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhM hjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhM hj(Zubeh}(h]h ]h"]h$]h&]uh1jhj Zubj)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj Zubj)}(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 }(hjZhhhNhNubj)}(h**file**h]hfile}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh/ may be NULL, e.g. if mapping anonymous memory.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj Zubj)}(h **Return**h]j)}(hj[h]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj Zubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj-[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_mmap_addr (C function)c.security_mmap_addrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h+int security_mmap_addr (unsigned long addr)h]h)}(h*int security_mmap_addr(unsigned long addr)h](h)}(hinth]hint}(hj\[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjk[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjX[hhhjj[hM ubj)}(hsecurity_mmap_addrh]j)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hj}[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjX[hhhjj[hM ubj/)}(h(unsigned long addr)h]j5)}(hunsigned long addrh](h)}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(haddrh]haddr}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjX[hhhjj[hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjT[hhhjj[hM ubah}(h]jO[ah ](jjeh"]h$]h&]jj)jhuh1hhjj[hM hjQ[hhubj)}(hhh]j)}(h'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address is allowed}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj[hhubah}(h]h ]h"]h$]h&]uh1jhjQ[hhhjj[hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj\jj\jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``unsigned long addr`` address **Description** Check permissions for a mmap operation at **addr**. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj\ubj)}(hhh]j")}(h``unsigned long addr`` address h](j()}(h``unsigned long addr``h]j.)}(hj<\h]hunsigned long addr}(hj>\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:\ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj6\ubjD)}(hhh]j)}(haddressh]haddress}(hjU\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ\hM hjR\ubah}(h]h ]h"]h$]h&]uh1jChj6\ubeh}(h]h ]h"]h$]h&]uh1j!hjQ\hM hj3\ubah}(h]h ]h"]h$]h&]uh1jhj\ubj)}(h**Description**h]j)}(hjw\h]h Description}(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:287: ./security/security.chM hj\ubj)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hj\hhhNhNubj)}(h**addr**h]haddr}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj\ubj)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj\ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hbint security_file_mprotect (struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h]h)}(haint security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](h)}(hinth]hint}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhj]hM ubj)}(hsecurity_file_mprotecth]j)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhj]hM ubj/)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j5)}(hstruct vm_area_struct *vmah](j;)}(hj>h]hstruct}(hj2]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.]ubh)}(h h]h }(hj?]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.]ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjP]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjR]modnameN classnameNjwjz)}j}]j)}jsj]sbc.security_file_mprotectasbuh1hhj.]ubh)}(h h]h }(hjp]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.]ubj)}(hjh]h*}(hj~]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.]ubj)}(hvmah]hvma}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*]ubj5)}(hunsigned long reqproth](h)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hreqproth]hreqprot}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*]ubj5)}(hunsigned long proth](h)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hproth]hprot}(hj-^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*]ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj\hhhj]hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\hhhj]hM ubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhj]hM hj\hhubj)}(hhh]j)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections is allowed}(hjW^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjT^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj]hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjo^jjo^jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjy^h]h Parameters}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjs^ubj)}(hhh](j")}(h-``struct vm_area_struct *vma`` memory region h](j()}(h``struct vm_area_struct *vma``h]j.)}(hj^h]hstruct vm_area_struct *vma}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj^ubjD)}(hhh]j)}(h memory regionh]h memory region}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hM hj^ubj")}(h;``unsigned long reqprot`` application requested protection h](j()}(h``unsigned long reqprot``h]j.)}(hj^h]hunsigned long reqprot}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj^ubjD)}(hhh]j)}(h application requested protectionh]h application requested protection}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hM hj^ubj")}(h8``unsigned long prot`` protection applied by the kernel h](j()}(h``unsigned long prot``h]j.)}(hj _h]hunsigned long prot}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj_ubjD)}(hhh]j)}(h protection applied by the kernelh]h protection applied by the kernel}(hj#_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hM hj _ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hM hj^ubeh}(h]h ]h"]h$]h&]uh1jhjs^ubj)}(h**Description**h]j)}(hjE_h]h Description}(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:287: ./security/security.chM hjs^ubj)}(hh]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh)}(hhh]j)}(hfileh]hfile}(hj `hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj `ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj`modnameN classnameNjwjz)}j}]j)}jsj_sbc.security_file_lockasbuh1hhj_ubh)}(h h]h }(hj,`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hj:`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hfileh]hfile}(hjG`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubj5)}(hunsigned int cmdh](h)}(hunsignedh]hunsigned}(hj``hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\`ubh)}(h h]h }(hjn`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\`ubh)}(hinth]hint}(hj|`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\`ubj)}(hcmdh]hcmd}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj_hhhj_hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhj_hM ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hM hj_hhubj)}(hhh]j)}(hCheck if a file lock is allowedh]hCheck if a file lock is allowed}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjah]hstruct file *file}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubjD)}(hhh]j)}(hfileh]hfile}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahM hjaubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hjahM hj`ubj")}(h<``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) h](j()}(h``unsigned int cmd``h]j.)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:aubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj6aubjD)}(hhh]j)}(h&lock operation (e.g. F_RDLCK, F_WRLCK)h]h&lock operation (e.g. F_RDLCK, F_WRLCK)}(hjUahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQahM hjRaubah}(h]h ]h"]h$]h&]uh1jChj6aubeh}(h]h ]h"]h$]h&]uh1j!hjQahM hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h**Description**h]j)}(hjwah]h Description}(hjyahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubj)}(h **Return**h]j)}(hjah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_file_fcntl (C function)c.security_file_fcntlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_file_fcntl (struct file *file, unsigned int cmd, unsigned long arg)h]h)}(hOint security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)h](h)}(hinth]hint}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjahM ubj)}(hsecurity_file_fcntlh]j)}(hsecurity_file_fcntlh]hsecurity_file_fcntl}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjahM ubj/)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj bhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjbubh)}(h h]h }(hj-bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hhh]j)}(hfileh]hfile}(hj>bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;bubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@bmodnameN classnameNjwjz)}j}]j)}jsjbsbc.security_file_fcntlasbuh1hhjbubh)}(h h]h }(hj^bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hjh]h*}(hjlbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hfileh]hfile}(hjybhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned int cmdh](h)}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hcmdh]hcmd}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hunsigned long argh](h)}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hj chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hargh]harg}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjahM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjahM ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahM hjahhubj)}(hhh]j)}(hCheck if fcntl() op is allowedh]hCheck if fcntl() op is allowed}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjBchhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]cjj]cjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjgch]h Parameters}(hjichhhNhNubah}(h]h ]h"]h$]h&]uh1jhjecubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjacubj)}(hhh](j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjch]hstruct file *file}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjcubjD)}(hhh]j)}(hfileh]hfile}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchM hjcubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hjchM hj}cubj")}(h#``unsigned int cmd`` fcntl command h](j()}(h``unsigned int cmd``h]j.)}(hjch]hunsigned int cmd}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjcubjD)}(hhh]j)}(h fcntl commandh]h fcntl command}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchM hjcubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hjchM hj}cubj")}(h'``unsigned long arg`` command argument h](j()}(h``unsigned long arg``h]j.)}(hjch]hunsigned long arg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjcubjD)}(hhh]j)}(hcommand argumenth]hcommand argument}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dhM hjdubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj dhM hj}cubeh}(h]h ]h"]h$]h&]uh1jhjacubj)}(h**Description**h]j)}(hj3dh]h Description}(hj5dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1dubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjacubj)}(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 }(hjIdhhhNhNubj)}(h**cmd**h]hcmd}(hjQdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdubh" from being performed on the file }(hjIdhhhNhNubj)}(h**file**h]hfile}(hjcdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdubh . Note that }(hjIdhhhNhNubj)}(h**arg**h]harg}(hjudhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hjIdhhhNhNubj)}(h**arg**h]harg}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIdubhQ represents a user space pointer, it should never be used by the security module.}(hjIdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjacubj)}(h **Return**h]j)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjacubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjacubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h1void security_file_set_fowner (struct file *file)h]h)}(h0void security_file_set_fowner(struct file *file)h](h)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhM ubj)}(hsecurity_file_set_fownerh]j)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjdhM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hj$ehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj eubh)}(h h]h }(hj1ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj eubh)}(hhh]j)}(hfileh]hfile}(hjBehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?eubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDemodnameN classnameNjwjz)}j}]j)}jsj esbc.security_file_set_fownerasbuh1hhj eubh)}(h h]h }(hjbehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj eubj)}(hjh]h*}(hjpehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj eubj)}(hfileh]hfile}(hj}ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj eubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjeubah}(h]h ]h"]h$]h&]j,j-uh1j.hjdhhhjdhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjdhM ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhM hjdhhubj)}(hhh]j)}(h'Set the file owner info in the LSM blobh]h'Set the file owner info in the LSM blob}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubj)}(hhh]j")}(h``struct file *file`` the file h](j()}(h``struct file *file``h]j.)}(hjeh]hstruct file *file}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubjD)}(hhh]j)}(hthe fileh]hthe file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM hjeubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(h**Description**h]j)}(hj#fh]h Description}(hj%fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!fubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubj)}(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.}(hj9fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubj)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hjHfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubj)}(h **Return**h]j)}(hjYfh]hReturn}(hj[fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hjofhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h]int security_file_send_sigiotask (struct task_struct *tsk, struct fown_struct *fown, int sig)h]h)}(h\int security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig)h](h)}(hinth]hint}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjfhM ubj)}(hsecurity_file_send_sigiotaskh]j)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjfhhhjfhM ubj/)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hjfhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(h task_structh]h task_struct}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jsjfsbc.security_file_send_sigiotaskasbuh1hhjfubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hj'ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(htskh]htsk}(hj4ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hstruct fown_struct *fownh](j;)}(hj>h]hstruct}(hjMghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIgubh)}(h h]h }(hjZghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIgubh)}(hhh]j)}(h fown_structh]h fown_struct}(hjkghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmgmodnameN classnameNjwjz)}j}]jgc.security_file_send_sigiotaskasbuh1hhjIgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIgubj)}(hfownh]hfown}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hint sigh](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hsigh]hsig}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjfhhhjfhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhjfhM ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhM hjfhhubj)}(hhh]j)}(h(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjhjjhjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj%hh]h Parameters}(hj'hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubj)}(hhh](j")}(h(``struct task_struct *tsk`` target task h](j()}(h``struct task_struct *tsk``h]j.)}(hjDhh]hstruct task_struct *tsk}(hjFhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBhubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj>hubjD)}(hhh]j)}(h target taskh]h target task}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhhM hjZhubah}(h]h ]h"]h$]h&]uh1jChj>hubeh}(h]h ]h"]h$]h&]uh1j!hjYhhM hj;hubj")}(h+``struct fown_struct *fown`` signal sender h](j()}(h``struct fown_struct *fown``h]j.)}(hj}hh]hstruct fown_struct *fown}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{hubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwhubjD)}(hhh]j)}(h signal senderh]h signal sender}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM hjhubah}(h]h ]h"]h$]h&]uh1jChjwhubeh}(h]h ]h"]h$]h&]uh1j!hjhhM hj;hubj")}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j()}(h ``int sig``h]j.)}(hjhh]hint sig}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubjD)}(hhh]j)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM hjhubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhhM hj;hubeh}(h]h ]h"]h$]h&]uh1jhjhubj)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubj)}(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 }(hjihhhNhNubj)}(h**fown**h]hfown}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh( to send SIGIO or SIGURG to the process }(hjihhhNhNubj)}(h**tsk**h]htsk}(hj!ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hjihhhNhNubj)}(h**fown**h]hfown}(hj3ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh, 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).}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubj)}(h **Return**h]j)}(hjNih]hReturn}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjdihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_file_receive (C function)c.security_file_receivehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-int security_file_receive (struct file *file)h]h)}(h,int security_file_receive(struct file *file)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihM ubj)}(hsecurity_file_receiveh]j)}(hsecurity_file_receiveh]hsecurity_file_receive}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjiubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j)}(hfileh]hfile}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j)}jsjisbc.security_file_receiveasbuh1hhjiubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hfileh]hfile}(hj)jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubah}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihM ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihM hjihhubj)}(hhh]j)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hjSjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjPjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjjkjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjujh]h Parameters}(hjwjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjojubj)}(hhh]j")}(h*``struct file *file`` file being received h](j()}(h``struct file *file``h]j.)}(hjjh]hstruct file *file}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjjubjD)}(hhh]j)}(hfile being receivedh]hfile being received}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhM hjjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjojubj)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjojubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjojubj)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjojubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjojubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_file_open (C function)c.security_file_openhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h*int security_file_open (struct file *file)h]h)}(h)int security_file_open(struct file *file)h](h)}(hinth]hint}(hj;khhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7khhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjJkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7khhhjIkhM ubj)}(hsecurity_file_openh]j)}(hsecurity_file_openh]hsecurity_file_open}(hj\khhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7khhhjIkhM ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjxkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtkubh)}(hhh]j)}(hfileh]hfile}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjkmodnameN classnameNjwjz)}j}]j)}jsj^ksbc.security_file_openasbuh1hhjtkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtkubj)}(hfileh]hfile}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpkubah}(h]h ]h"]h$]h&]j,j-uh1j.hj7khhhjIkhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3khhhjIkhM ubah}(h]j.kah ](jjeh"]h$]h&]jj)jhuh1hhjIkhM hj0khhubj)}(hhh]j)}(h.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjkhhubah}(h]h ]h"]h$]h&]uh1jhj0khhhjIkhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjlubj)}(h``struct file *file``h]j.)}(hj5lh]hstruct file *file}(hj7lhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM" hjlubj)}(h**Description**h]j)}(hjMlh]h Description}(hjOlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjlubj)}(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.}(hjclhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjlubj)}(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 .}(hjrlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM" hjlubj)}(h **Return**h]j)}(hjlh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM& hjlubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM& hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_file_truncate (C function)c.security_file_truncatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.int security_file_truncate (struct file *file)h]h)}(h-int security_file_truncate(struct file *file)h](h)}(hinth]hint}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM? ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhjlhM? ubj)}(hsecurity_file_truncateh]j)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlhhhjlhM? ubj/)}(h(struct file *file)h]j5)}(hstruct file *fileh](j;)}(hj>h]hstruct}(hjmhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j)}(hfileh]hfile}(hj#mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj mubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%mmodnameN classnameNjwjz)}j}]j)}jsjlsbc.security_file_truncateasbuh1hhjmubh)}(h h]h }(hjCmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjQmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hfileh]hfile}(hj^mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjlubah}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhjlhM? ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhjlhM? ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM? hjlhhubj)}(hhh]j)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM? hjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM? ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMC hjmubj)}(hhh]j")}(h``struct file *file`` file h](j()}(h``struct file *file``h]j.)}(hjmh]hstruct file *file}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@ hjmubjD)}(hhh]j)}(hfileh]hfile}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhM@ hjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhM@ hjmubah}(h]h ]h"]h$]h&]uh1jhjmubj)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMB hjmubj)}(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 }(hjnhhhNhNubj)}(h**path_truncate**h]h path_truncate}(hj"nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh hook.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMB hjmubj)}(h **Return**h]j)}(hj=nh]hReturn}(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:287: ./security/security.chMF hjmubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjSnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMF hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_task_alloc (C function)c.security_task_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(hMint security_task_alloc (struct task_struct *task, unsigned long clone_flags)h]h)}(hLint security_task_alloc(struct task_struct *task, unsigned long clone_flags)h](h)}(hinth]hint}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~nhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMN ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~nhhhjnhMN ubj)}(hsecurity_task_alloch]j)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~nhhhjnhMN ubj/)}(h5(struct task_struct *task, unsigned long clone_flags)h](j5)}(hstruct task_struct *taskh](j;)}(hj>h]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h task_structh]h task_struct}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsjnsbc.security_task_allocasbuh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(htaskh]htask}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hunsigned long clone_flagsh](h)}(hunsignedh]hunsigned}(hj1ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-oubh)}(h h]h }(hj?ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-oubh)}(hlongh]hlong}(hjMohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-oubh)}(h h]h }(hj[ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-oubj)}(h clone_flagsh]h clone_flags}(hjiohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-oubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj~nhhhjnhMN ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjznhhhjnhMN ubah}(h]junah ](jjeh"]h$]h&]jj)jhuh1hhjnhMN hjwnhhubj)}(hhh]j)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMN hjohhubah}(h]h ]h"]h$]h&]uh1jhjwnhhhjnhMN ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hjoubj)}(hhh](j")}(h&``struct task_struct *task`` the task h](j()}(h``struct task_struct *task``h]j.)}(hjoh]hstruct task_struct *task}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMO hjoubjD)}(hhh]j)}(hthe taskh]hthe task}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMO hjoubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohMO hjoubj")}(hD``unsigned long clone_flags`` flags indicating what is being shared h](j()}(h``unsigned long clone_flags``h]j.)}(hj ph]hunsigned long clone_flags}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj pubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMP hjpubjD)}(hhh]j)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hj&phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"phMP hj#pubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hj"phMP hjoubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjHph]h Description}(hjJphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hjoubj)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hj^phhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMR hjoubj)}(h **Return**h]j)}(hjoph]hReturn}(hjqphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMT hjoubj)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMT hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_task_free (C function)c.security_task_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2void security_task_free (struct task_struct *task)h]h)}(h1void security_task_free(struct task_struct *task)h](h)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhjphMc ubj)}(hsecurity_task_freeh]j)}(hsecurity_task_freeh]hsecurity_task_free}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjphhhjphMc ubj/)}(h(struct task_struct *task)h]j5)}(hstruct task_struct *taskh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j)}(h task_structh]h task_struct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj qubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jsjpsbc.security_task_freeasbuh1hhjpubh)}(h h]h }(hj/qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hj=qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(htaskh]htask}(hjJqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubah}(h]h ]h"]h$]h&]j,j-uh1j.hjphhhjphMc ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjphMc ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphMc hjphhubj)}(hhh]j)}(h,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(hjtqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMc hjqqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphMc ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjqjjqjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct task_struct *task`` task **Description** Handle release of task-related resources. Note that this can be called from interrupt context.h](j)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMg hjqubj)}(hhh]j")}(h"``struct task_struct *task`` task h](j()}(h``struct task_struct *task``h]j.)}(hjqh]hstruct task_struct *task}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMd hjqubjD)}(hhh]j)}(htaskh]htask}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMd hjqubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjqhMd hjqubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMf hjqubj)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMf hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjrrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnrubh)}(hhh]j)}(hcredh]hcred}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsjXrsbc.security_cred_alloc_blankasbuh1hhjnrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnrubj)}(hcredh]hcred}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjrubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jrc.security_cred_alloc_blankasbuh1hhjrubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hgfph]hgfp}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjrubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1rhhhjCrhMr ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-rhhhjCrhMr ubah}(h]j(rah ](jjeh"]h$]h&]jj)jhuh1hhjCrhMr hj*rhhubj)}(hhh]j)}(h.Allocate the min memory to allow cred_transferh]h.Allocate the min memory to allow cred_transfer}(hj=shhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMr hj:shhubah}(h]h ]h"]h$]h&]uh1jhj*rhhhjCrhMr ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUsjjUsjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct cred *cred`` credentials ``gfp_t gfp`` gfp flags **Description** Only allocate sufficient memory and attach to **cred** such that cred_transfer() will not get ENOMEM. **Return** Returns 0 on success, negative values on failure.h](j)}(h**Parameters**h]j)}(hj_sh]h Parameters}(hjashhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMv hjYsubj)}(hhh](j")}(h"``struct cred *cred`` credentials h](j()}(h``struct cred *cred``h]j.)}(hj~sh]hstruct cred *cred}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|subah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMs hjxsubjD)}(hhh]j)}(h credentialsh]h credentials}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMs hjsubah}(h]h ]h"]h$]h&]uh1jChjxsubeh}(h]h ]h"]h$]h&]uh1j!hjshMs hjusubj")}(h``gfp_t gfp`` gfp flags h](j()}(h ``gfp_t gfp``h]j.)}(hjsh]h gfp_t gfp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMt hjsubjD)}(hhh]j)}(h gfp flagsh]h gfp flags}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMt hjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMt hjusubeh}(h]h ]h"]h$]h&]uh1jhjYsubj)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMv hjYsubj)}(heOnly allocate sufficient memory and attach to **cred** such that cred_transfer() will not get ENOMEM.h](h.Only allocate sufficient memory and attach to }(hjthhhNhNubj)}(h**cred**h]hcred}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh/ such that cred_transfer() will not get ENOMEM.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMv hjYsubj)}(h **Return**h]j)}(hj+th]hReturn}(hj-thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)tubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMy hjYsubj)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjAthhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMy hjYsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_cred_free (C function)c.security_cred_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h+void security_cred_free (struct cred *cred)h]h)}(h*void security_cred_free(struct cred *cred)h](h)}(hvoidh]hvoid}(hjpthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlthhhj~thM ubj)}(hsecurity_cred_freeh]j)}(hsecurity_cred_freeh]hsecurity_cred_free}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlthhhj~thM ubj/)}(h(struct cred *cred)h]j5)}(hstruct cred *credh](j;)}(hj>h]hstruct}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(hcredh]hcred}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]j)}jsjtsbc.security_cred_freeasbuh1hhjtubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hcredh]hcred}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubah}(h]h ]h"]h$]h&]j,j-uh1j.hjlthhhj~thM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhthhhj~thM ubah}(h]jctah ](jjeh"]h$]h&]jj)jhuh1hhj~thM hjethhubj)}(hhh]j)}(h1Free the cred's LSM blob and associated resourcesh]h3Free the cred’s LSM blob and associated resources}(hj0uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj-uhhubah}(h]h ]h"]h$]h&]uh1jhjethhhj~thM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHujjHujjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct cred *cred`` credentials **Description** Deallocate and clear the cred->security field in a set of credentials.h](j)}(h**Parameters**h]j)}(hjRuh]h Parameters}(hjTuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjLuubj)}(hhh]j")}(h"``struct cred *cred`` credentials h](j()}(h``struct cred *cred``h]j.)}(hjquh]hstruct cred *cred}(hjsuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjouubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjkuubjD)}(hhh]j)}(h credentialsh]h credentials}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jChjkuubeh}(h]h ]h"]h$]h&]uh1j!hjuhM hjhuubah}(h]h ]h"]h$]h&]uh1jhjLuubj)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjLuubj)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjLuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_prepare_creds (struct cred *new, const struct cred *old, gfp_t gfp)h]h)}(hOint security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)h](h)}(hinth]hint}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjuhM ubj)}(hsecurity_prepare_credsh]j)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjuhM ubj/)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hj.vhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*vubh)}(h h]h }(hj;vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*vubh)}(hhh]j)}(hcredh]hcred}(hjLvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNvmodnameN classnameNjwjz)}j}]j)}jsjvsbc.security_prepare_credsasbuh1hhj*vubh)}(h h]h }(hjlvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*vubj)}(hjh]h*}(hjzvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*vubj)}(hnewh]hnew}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*vubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&vubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(hcredh]hcred}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]jhvc.security_prepare_credsasbuh1hhjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(holdh]hold}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&vubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj.whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0wmodnameN classnameNjwjz)}j}]jhvc.security_prepare_credsasbuh1hhj'wubh)}(h h]h }(hjLwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'wubj)}(hgfph]hgfp}(hjZwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'wubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&vubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjuhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjuhhhjuhM ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhM hjuhhubj)}(hhh]j)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubj)}(hhh](j")}(h%``struct cred *new`` new credentials h](j()}(h``struct cred *new``h]j.)}(hjwh]hstruct cred *new}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubjD)}(hhh]j)}(hnew credentialsh]hnew credentials}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhM hjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhM hjwubj")}(h0``const struct cred *old`` original credentials h](j()}(h``const struct cred *old``h]j.)}(hjwh]hconst struct cred *old}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubjD)}(hhh]j)}(horiginal credentialsh]horiginal credentials}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM hjxubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjxhM hjwubj")}(h``gfp_t gfp`` gfp flags h](j()}(h ``gfp_t gfp``h]j.)}(hj7xh]h gfp_t gfp}(hj9xhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5xubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj1xubjD)}(hhh]j)}(h gfp flagsh]h gfp flags}(hjPxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLxhM hjMxubah}(h]h ]h"]h$]h&]uh1jChj1xubeh}(h]h ]h"]h$]h&]uh1j!hjLxhM hjwubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjrxh]h Description}(hjtxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubj)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubj)}(h **Return**h]j)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubj)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hGvoid security_transfer_creds (struct cred *new, const struct cred *old)h]h)}(hFvoid security_transfer_creds(struct cred *new, const struct cred *old)h](h)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjxhM ubj)}(hsecurity_transfer_credsh]j)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjxhM ubj/)}(h*(struct cred *new, const struct cred *old)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hj(yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hcredh]hcred}(hj9yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6yubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;ymodnameN classnameNjwjz)}j}]j)}jsjysbc.security_transfer_credsasbuh1hhjyubh)}(h h]h }(hjYyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjgyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hnewh]hnew}(hjtyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj;)}(hj>h]hstruct}(hjyhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hcredh]hcred}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]jUyc.security_transfer_credsasbuh1hhjyubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(holdh]hold}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjxhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjxhM ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhM hjxhhubj)}(hhh]j)}(hTransfer credsh]hTransfer creds}(hj)zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&zhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAzjjAzjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct cred *new`` target credentials ``const struct cred *old`` original credentials **Description** Transfer data from original creds to new creds.h](j)}(h**Parameters**h]j)}(hjKzh]h Parameters}(hjMzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjEzubj)}(hhh](j")}(h(``struct cred *new`` target credentials h](j()}(h``struct cred *new``h]j.)}(hjjzh]hstruct cred *new}(hjlzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjdzubjD)}(hhh]j)}(htarget credentialsh]htarget credentials}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM hjzubah}(h]h ]h"]h$]h&]uh1jChjdzubeh}(h]h ]h"]h$]h&]uh1j!hjzhM hjazubj")}(h0``const struct cred *old`` original credentials h](j()}(h``const struct cred *old``h]j.)}(hjzh]hconst struct cred *old}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjzubjD)}(hhh]j)}(horiginal credentialsh]horiginal credentials}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM hjzubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjzhM hjazubeh}(h]h ]h"]h$]h&]uh1jhjEzubj)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjEzubj)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjEzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_kernel_act_as (struct cred *new, u32 secid)h]h)}(h7int security_kernel_act_as(struct cred *new, u32 secid)h](h)}(hinth]hint}(hj#{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj2{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj1{hM ubj)}(hsecurity_kernel_act_ash]j)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hjD{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhj1{hM ubj/)}(h(struct cred *new, u32 secid)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hj`{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\{ubh)}(h h]h }(hjm{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\{ubh)}(hhh]j)}(hcredh]hcred}(hj~{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsjF{sbc.security_kernel_act_asasbuh1hhj\{ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\{ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\{ubj)}(hnewh]hnew}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjX{ubj5)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j{c.security_kernel_act_asasbuh1hhj{ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hsecidh]hsecid}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjX{ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj{hhhj1{hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj1{hM ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj1{hM hj{hhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj(|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj1{hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjC|jjC|jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjM|h]h Parameters}(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:287: ./security/security.chM hjG|ubj)}(hhh](j")}(h!``struct cred *new`` credentials h](j()}(h``struct cred *new``h]j.)}(hjl|h]hstruct cred *new}(hjn|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjj|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjf|ubjD)}(hhh]j)}(h credentialsh]h credentials}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hM hj|ubah}(h]h ]h"]h$]h&]uh1jChjf|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hM hjc|ubj")}(h``u32 secid`` secid h](j()}(h ``u32 secid``h]j.)}(hj|h]h u32 secid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj|ubjD)}(hhh]j)}(hsecidh]hsecid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hM hj|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hM hjc|ubeh}(h]h ]h"]h$]h&]uh1jhjG|ubj)}(h**Description**h]j)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjG|ubj)}(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 }(hj|hhhNhNubj)}(h **secid**h]hsecid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjG|ubj)}(h **Return**h]j)}(hj}h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjG|ubj)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj/}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjG|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhjwhhhNhNubh)}(hhh](h)}(hKint security_kernel_create_files_as (struct cred *new, struct inode *inode)h]h)}(hJint security_kernel_create_files_as(struct cred *new, struct inode *inode)h](h)}(hinth]hint}(hj^}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjm}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ}hhhjl}hM ubj)}(hsecurity_kernel_create_files_ash]j)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{}ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZ}hhhjl}hM ubj/)}(h'(struct cred *new, struct inode *inode)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j)}(hcredh]hcred}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]j)}jsj}sb!c.security_kernel_create_files_asasbuh1hhj}ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hnewh]hnew}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hj ~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ~ubh)}(hhh]j)}(hinodeh]hinode}(hj+~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-~modnameN classnameNjwjz)}j}]j}!c.security_kernel_create_files_asasbuh1hhj ~ubh)}(h h]h }(hjI~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ~ubj)}(hjh]h*}(hjW~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ~ubj)}(hinodeh]hinode}(hjd~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj}ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZ}hhhjl}hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjV}hhhjl}hM ubah}(h]jQ}ah ](jjeh"]h$]h&]jj)jhuh1hhjl}hM hjS}hhubj)}(hhh]j)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~hhubah}(h]h ]h"]h$]h&]uh1jhjS}hhhjl}hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubj)}(hhh](j")}(h(``struct cred *new`` target credentials h](j()}(h``struct cred *new``h]j.)}(hj~h]hstruct cred *new}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubjD)}(hhh]j)}(htarget credentialsh]htarget credentials}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hM hj~ubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hj~hM hj~ubj")}(h(``struct inode *inode`` reference inode h](j()}(h``struct inode *inode``h]j.)}(hjh]hstruct inode *inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hreference inodeh]hreference inode}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubj)}(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 }(hjYhhhNhNubj)}(h **inode**h]hinode}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubj)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubj)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_kernel_module_request (char *kmod_name)h]h)}(h3int security_kernel_module_request(char *kmod_name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hsecurity_kernel_module_requesth]j)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h(char *kmod_name)h]j5)}(hchar *kmod_nameh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h kmod_nameh]h kmod_name}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjijjijjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjmubj)}(hhh]j")}(h ``char *kmod_name`` module name h](j()}(h``char *kmod_name``h]j.)}(hjh]hchar *kmod_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(h module nameh]h module name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubj)}(h**Description**h]j)}(hj̀h]h Description}(hjπhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˀubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjmubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjmubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjmubj)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hRint security_task_fix_setuid (struct cred *new, const struct cred *old, int flags)h]h)}(hQint security_task_fix_setuid(struct cred *new, const struct cred *old, int flags)h](h)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV ubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhjGhMV ubj)}(hsecurity_task_fix_setuidh]j)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhjGhMV ubj/)}(h5(struct cred *new, const struct cred *old, int flags)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj\sbc.security_task_fix_setuidasbuh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hnewh]hnew}(hjρhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]jc.security_task_fix_setuidasbuh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubj5)}(h int flagsh](h)}(hinth]hint}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjnubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhjGhMV ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhjGhMV ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMV hj.hhubj)}(hhh]j)}(h&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMV hjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMV ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjтjjтjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjۂh]h Parameters}(hj݂hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjقubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZ hjՂubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMW hjubjD)}(hhh]j)}(hupdated credentialsh]hupdated credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMW hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMW hjubj")}(h6``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hj3h]hconst struct cred *old}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMX hj-ubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMX hjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMX hjubj")}(h&``int flags`` LSM_SETID_* flag values h](j()}(h ``int flags``h]j.)}(hjlh]h int flags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMY hjfubjD)}(hhh]j)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMY hjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMY hjubeh}(h]h ]h"]h$]h&]uh1jhjՂubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[ hjՂubj)}(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}(hjŃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hjhhhNhNubj)}(h**new**h]hnew}(hj׃hhhNhNubah}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[ hjՂubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMa hjՂubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMa hjՂubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hRint security_task_fix_setgid (struct cred *new, const struct cred *old, int flags)h]h)}(hQint security_task_fix_setgid(struct cred *new, const struct cred *old, int flags)h](h)}(hinth]hint}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMj ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjWhMj ubj)}(hsecurity_task_fix_setgidh]j)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjEhhhjWhMj ubj/)}(h5(struct cred *new, const struct cred *old, int flags)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjlsbc.security_task_fix_setgidasbuh1hhjubh)}(h h]h }(hjĄhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj҄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hj߄hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]jc.security_task_fix_setgidasbuh1hhjubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(h int flagsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjEhhhjWhMj ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjAhhhjWhMj ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMj hj>hhubj)}(hhh]j)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hjɅhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMj hjƅhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMj ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMn hjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMk hjubjD)}(hhh]j)}(hupdated credentialsh]hupdated credentials}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMk hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMk hjubj")}(h6``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hjCh]hconst struct cred *old}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMl hj=ubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMl hjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMl hjubj")}(h%``int flags`` LSM_SETID_* flag value h](j()}(h ``int flags``h]j.)}(hj|h]h int flags}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMm hjvubjD)}(hhh]j)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMm hjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMm hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMo hjubj)}(hXGUpdate the module's state after setting one or more of the group identity attributes of the current process. The **flags** parameter indicates which of the set*gid system calls invoked this hook. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](htUpdate the module’s state after setting one or more of the group identity attributes of the current process. The }(hj͆hhhNhNubj)}(h **flags**h]hflags}(hjՆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͆ubhK parameter indicates which of the set*gid system calls invoked this hook. }(hj͆hhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͆ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj͆hhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͆ubh.}(hj͆hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMo hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMu hjubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMu hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hJint security_task_fix_setgroups (struct cred *new, const struct cred *old)h]h)}(hIint security_task_fix_setgroups(struct cred *new, const struct cred *old)h](h)}(hinth]hint}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~ ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghM~ ubj)}(hsecurity_task_fix_setgroupsh]j)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUhhhjghM~ ubj/)}(h*(struct cred *new, const struct cred *old)h](j5)}(hstruct cred *newh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj|sbc.security_task_fix_setgroupsasbuh1hhjubh)}(h h]h }(hjԇhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjCmodnameN classnameNjwjz)}j}]jЇc.security_task_fix_setgroupsasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhjghM~ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjghM~ ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghM~ hjNhhubj)}(hhh]j)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~ hjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghM~ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjƈh]h Parameters}(hjȈhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĈubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj߈ubjD)}(hhh]j)}(hupdated credentialsh]hupdated credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj߈ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj܈ubj")}(h6``const struct cred *old`` credentials being replaced h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hcredentials being replacedh]hcredentials being replaced}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hM hj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hM hj܈ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(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. }(hjohhhNhNubj)}(h**new**h]hnew}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjohhhNhNubj)}(h**current->cred**h]h current->cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]h)}(hh]hstruct}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j)}(h task_structh]h task_struct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsj sbc.security_task_setpgidasbuh1hhj"ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h pid_t pgidh](h)}(hhh]j)}(hpid_th]hpid_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j`c.security_task_setpgidasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hpgidh]hpgid}(hjƊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]j܉ah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjމhhubj)}(hhh]j)}(h$Check if setting the pgid is allowedh]h$Check if setting the pgid is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjމhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj ubj)}(hhh](j")}(h.``struct task_struct *p`` task being modified h](j()}(h``struct task_struct *p``h]j.)}(hj1h]hstruct task_struct *p}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj+ubjD)}(hhh]j)}(htask being modifiedh]htask being modified}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhM hjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhM hj(ubj")}(h``pid_t pgid`` new pgid h](j()}(h``pid_t pgid``h]j.)}(hjjh]h pid_t pgid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjdubjD)}(hhh]j)}(hnew pgidh]hnew pgid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj ubj)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjËhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**pgid**h]hpgid}(hjՋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_getpgid (C function)c.security_task_getpgidhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h1int security_task_getpgid (struct task_struct *p)h]h)}(h0int security_task_getpgid(struct task_struct *p)h](h)}(hinth]hint}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhjChM ubj)}(hsecurity_task_getpgidh]j)}(hsecurity_task_getpgidh]hsecurity_task_getpgid}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChM ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjXsbc.security_task_getpgidasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]hp}(hjˌhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhjChM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhjChM ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChM hj*hhubj)}(hhh]j)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hhh]j")}(h``struct task_struct *p`` task h](j()}(h``struct task_struct *p``h]j.)}(hj5h]hstruct task_struct *p}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj/ubjD)}(hhh]j)}(htaskh]htask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhM hjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhM hj,ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hRCheck permission before getting the process group identifier of the process **p**.h](hLCheck permission before getting the process group identifier of the process }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_task_getsid (C function)c.security_task_getsidhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h0int security_task_getsid (struct task_struct *p)h]h)}(h/int security_task_getsid(struct task_struct *p)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hsecurity_task_getsidh]j)}(hsecurity_task_getsidh]hsecurity_task_getsid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj'ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(h task_structh]h task_struct}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_getsidasbuh1hhj'ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjŎjjŎjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjώh]h Parameters}(hjюhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͎ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjɎubj)}(hhh]j")}(h``struct task_struct *p`` task h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(htaskh]htask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjɎubj)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjɎubj)}(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}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjɎubj)}(h **Return**h]j)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjɎubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjɎubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՕ"security_task_setnice (C function)c.security_task_setnicehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h;int security_task_setnice (struct task_struct *p, int nice)h]h)}(h:int security_task_setnice(struct task_struct *p, int nice)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(hsecurity_task_setniceh]j)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hjȏhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjďubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h!(struct task_struct *p, int nice)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjʏsbc.security_task_setniceasbuh1hhjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj܏ubj5)}(hint niceh](h)}(hinth]hint}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hniceh]hnice}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj܏ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(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&]uh1j-hjڐubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj֐ubjD)}(hhh]j)}(h target taskh]h target task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj֐ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjӐubj")}(h``int nice`` nice value h](j()}(h ``int nice``h]j.)}(hjh]hint nice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(h nice valueh]h nice value}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj*hM hjӐubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hjfhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh to }(hjfhhhNhNubj)}(h**nice**h]hnice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhjwhhhNhNubh)}(hhh](h)}(h?int security_task_setioprio (struct task_struct *p, int ioprio)h]h)}(h>int security_task_setioprio(struct task_struct *p, int ioprio)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjܑhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjܑhhhjhM ubj)}(hsecurity_task_setioprioh]j)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjܑhhhjhM ubj/)}(h#(struct task_struct *p, int ioprio)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_setioprioasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int ioprioh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hioprioh]hioprio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjܑhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjؑhhhjhM ubah}(h]jӑah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjՑhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjђhhubah}(h]h ]h"]h$]h&]uh1jhjՑhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hhh](j")}(h&``struct task_struct *p`` target task h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(h target taskh]h target task}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj*hM hj ubj")}(h``int ioprio`` ioprio value h](j()}(h``int ioprio``h]j.)}(hjNh]h int ioprio}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjHubjD)}(hhh]j)}(h ioprio valueh]h ioprio value}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchM hjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hHCheck permission before setting the ioprio value of **p** to **ioprio**.h](h4Check permission before setting the ioprio value of }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **ioprio**h]hioprio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjԓh]hReturn}(hj֓hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjғubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhjwhhhNhNubh)}(hhh](h)}(h3int security_task_getioprio (struct task_struct *p)h]h)}(h2int security_task_getioprio(struct task_struct *p)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hM ubj)}(hsecurity_task_getioprioh]j)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj'hM ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(h task_structh]h task_struct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsj<sbc.security_task_getioprioasbuh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj'hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj'hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hM hjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjՔhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hhh]j")}(h``struct task_struct *p`` task h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(htaskh]htask}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hM hj/ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj.hM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hjjhhhNhNubj)}(h**p**h]hp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhjwhhhNhNubh)}(hhh](h)}(haint security_task_prlimit (const struct cred *cred, const struct cred *tcred, unsigned int flags)h]h)}(h`int security_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](h)}(hinth]hint}(hjҕhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjΕhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjΕhhhjhM ubj)}(hsecurity_task_prlimith]j)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjΕhhhjhM ubj/)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hcredh]hcred}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_prlimitasbuh1hhj ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct cred *tcredh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjĖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjՖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjҖubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjזmodnameN classnameNjwjz)}j}]jdc.security_task_prlimitasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htcredh]htcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hinth]hint}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hflagsh]hflags}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjΕhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjʕhhhjhM ubah}(h]jŕah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjǕhhubj)}(hhh]j)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjǕhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h5``const struct cred *cred`` current task credentials h](j()}(h``const struct cred *cred``h]j.)}(hjʗh]hconst struct cred *cred}(hj̗hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjȗubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjėubjD)}(hhh]j)}(hcurrent task credentialsh]hcurrent task credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߗhMhjubah}(h]h ]h"]h$]h&]uh1jChjėubeh}(h]h ]h"]h$]h&]uh1j!hjߗhMhjubj")}(h5``const struct cred *tcred`` target task credentials h](j()}(h``const struct cred *tcred``h]j.)}(hjh]hconst struct cred *tcred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(htarget task credentialsh]htarget task credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j()}(h``unsigned int flags``h]j.)}(hj<h]hunsigned int flags}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj6ubjD)}(hhh]j)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhjwhhhNhNubh)}(hhh](h)}(hcint security_task_setrlimit (struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h]h)}(hbint security_task_setrlimit(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjߘhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjߘhhhjhMubj)}(hsecurity_task_setrlimith]j)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjߘhhhjhMubj/)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_setrlimitasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int resourceh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hresourceh]hresource}(hjəhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct rlimit *new_rlimh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjޙubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޙubh)}(hhh]j)}(hrlimith]hrlimit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jZc.security_task_setrlimitasbuh1hhjޙubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޙubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޙubj)}(hnew_rlimh]hnew_rlim}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjޙubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjߘhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjۘhhhjhMubah}(h]j֘ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjؘhhubj)}(hhh]j)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhjؘhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h5``struct task_struct *p`` target task's group leader h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(htarget task's group leaderh]htarget task’s group leader}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h<``unsigned int resource`` resource whose limit is being set h](j()}(h``unsigned int resource``h]j.)}(hjݚh]hunsigned int resource}(hjߚhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjۚubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjךubjD)}(hhh]j)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjךubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h/``struct rlimit *new_rlim`` new resource limit h](j()}(h``struct rlimit *new_rlim``h]j.)}(hjh]hstruct rlimit *new_rlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnew resource limith]hnew resource limit}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hCheck permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hjghhhNhNubj)}(h**p**h]hp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh for }(hjghhhNhNubj)}(h **resource**h]hresource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh to }(hjghhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjěhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h6int security_task_setscheduler (struct task_struct *p)h]h)}(h5int security_task_setscheduler(struct task_struct *p)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM"ubj)}(hsecurity_task_setschedulerh]j)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM"ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(h task_structh]h task_struct}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_setschedulerasbuh1hhj,ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM"ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM"hjhhubj)}(hhh]j)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM"ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjʜjjʜjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjԜh]h Parameters}(hj֜hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҜubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hjΜubj)}(hhh]j")}(h&``struct task_struct *p`` target task h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM#hjubjD)}(hhh]j)}(h target taskh]h target task}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM#hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjΜubj)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM%hjΜubj)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hjDhhhNhNubj)}(h**p**h]hp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM%hjΜubj)}(h **Return**h]j)}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjΜubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjΜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h6int security_task_getscheduler (struct task_struct *p)h]h)}(h5int security_task_getscheduler(struct task_struct *p)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM0ubj)}(hsecurity_task_getschedulerh]j)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hj͝hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjɝubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM0ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjϝsbc.security_task_getschedulerasbuh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM0ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0hjhhubj)}(hhh]j)}(h+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0hjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM4hjubj)}(hhh]j")}(h&``struct task_struct *p`` target task h](j()}(h``struct task_struct *p``h]j.)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM1hjubjD)}(hhh]j)}(h target taskh]h target task}(hjŞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM1hjžubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM3hjubj)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM3hjubj)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_task_movememory (C function)c.security_task_movememoryhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_task_movememory (struct task_struct *p)h]h)}(h3int security_task_movememory(struct task_struct *p)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshM=ubj)}(hsecurity_task_movememoryh]j)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshM=ubj/)}(h(struct task_struct *p)h]j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjŸmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_task_movememoryasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjshM=ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhjshM=ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshM=hjZhhubj)}(hhh]j)}(h!Check if moving memory is allowedh]h!Check if moving memory is allowed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hj!hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshM=ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhj@ubj)}(hhh]j")}(h``struct task_struct *p`` task h](j()}(h``struct task_struct *p``h]j.)}(hjeh]hstruct task_struct *p}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hj_ubjD)}(hhh]j)}(htaskh]htask}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM>hj{ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hjzhM>hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@hj@ubj)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@hj@ubj)}(h **Return**h]j)}(hj٠h]hReturn}(hj۠hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjנubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhj@ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_task_kill (C function)c.security_task_killhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hmint security_task_kill (struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h]h)}(hlint security_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMJubj)}(hsecurity_task_killh]j)}(hsecurity_task_killh]hsecurity_task_kill}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj,hMJubj/)}(hV(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h task_structh]h task_struct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsjAsbc.security_task_killasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubj5)}(hstruct kernel_siginfo *infoh](j;)}(hj>h]hstruct}(hj̡hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjȡubh)}(h h]h }(hj١hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȡubh)}(hhh]j)}(hkernel_siginfoh]hkernel_siginfo}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_task_killasbuh1hhjȡubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȡubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȡubj)}(hinfoh]hinfo}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjȡubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubj5)}(hint sigh](h)}(hinth]hint}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hsigh]hsig}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubj5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_task_killasbuh1hhjmubh)}(h h]h }(hjȢhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hj֢hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj,hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj,hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMJhjhhubj)}(hhh]j)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhj)ubj)}(hhh](j")}(h)``struct task_struct *p`` target process h](j()}(h``struct task_struct *p``h]j.)}(hjNh]hstruct task_struct *p}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMKhjHubjD)}(hhh]j)}(htarget processh]htarget process}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMKhjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchMKhjEubj")}(h3``struct kernel_siginfo *info`` signal information h](j()}(h``struct kernel_siginfo *info``h]j.)}(hjh]hstruct kernel_siginfo *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMLhjubjD)}(hhh]j)}(hsignal informationh]hsignal information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjEubj")}(h``int sig`` signal value h](j()}(h ``int sig``h]j.)}(hjh]hint sig}(hj£hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMMhjubjD)}(hhh]j)}(h signal valueh]h signal value}(hj٣hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjգhMMhj֣ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjգhMMhjEubj")}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j()}(h``const struct cred *cred``h]j.)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjubjD)}(hhh]j)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hjhhhNhNubj)}(h **current**h]hcurrent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMNhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubj)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhj)ubj)}(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 }(hjXhhhNhNubj)}(h**sig**h]hsig}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh to }(hjXhhhNhNubj)}(h**p**h]hp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh. }(hjXhhhNhNubj)}(h**info**h]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hjXhhhNhNubj)}(h**info**h]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh 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.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhj)ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhj)ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjǤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_task_prctl (C function)c.security_task_prctlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(htint security_task_prctl (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h]h)}(hsint security_task_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM_ubj)}(hsecurity_task_prctlh]j)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM_ubj/)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j5)}(h int optionh](h)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hoptionh]hoption}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hunsigned long arg2h](h)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(harg2h]harg2}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hunsigned long arg3h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjǥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjեhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(harg3h]harg3}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hunsigned long arg4h](h)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(harg4h]harg4}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hunsigned long arg5h](h)}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(harg5h]harg5}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM_ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM_hjhhubj)}(hhh]j)}(hCheck if a prctl op is allowedh]hCheck if a prctl op is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjզjjզjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjߦh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݦubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMchj٦ubj)}(hhh](j")}(h``int option`` operation h](j()}(h``int option``h]j.)}(hjh]h int option}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hjubjD)}(hhh]j)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM`hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM`hjubj")}(h ``unsigned long arg2`` argument h](j()}(h``unsigned long arg2``h]j.)}(hj7h]hunsigned long arg2}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahj1ubjD)}(hhh]j)}(hargumenth]hargument}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhMahjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhMahjubj")}(h ``unsigned long arg3`` argument h](j()}(h``unsigned long arg3``h]j.)}(hjph]hunsigned long arg3}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMbhjjubjD)}(hhh]j)}(hargumenth]hargument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMbhjubj")}(h ``unsigned long arg4`` argument h](j()}(h``unsigned long arg4``h]j.)}(hjh]hunsigned long arg4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMchjubjD)}(hhh]j)}(hargumenth]hargument}(hj§hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMchjubj")}(h ``unsigned long arg5`` argument h](j()}(h``unsigned long arg5``h]j.)}(hjh]hunsigned long arg5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjܧubjD)}(hhh]j)}(hargumenth]hargument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMdhjubah}(h]h ]h"]h$]h&]uh1jChjܧubeh}(h]h ]h"]h$]h&]uh1j!hjhMdhjubeh}(h]h ]h"]h$]h&]uh1jhj٦ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhj٦ubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhj٦ubj)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihj٦ubj)}(hhh]j")}(hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h](j()}(hBReturn -ENOSYS if no-one wanted to handle this op, any other valueh]hBReturn -ENOSYS if no-one wanted to handle this op, any other value}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihj]ubjD)}(hhh]j)}(h7to cause prctl() to return immediately with that value.h]h7to cause prctl() to return immediately with that value.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjpubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjohMihjZubah}(h]h ]h"]h$]h&]uh1jhj٦ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hHvoid security_task_to_inode (struct task_struct *p, struct inode *inode)h]h)}(hGvoid security_task_to_inode(struct task_struct *p, struct inode *inode)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjèhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj¨hMubj)}(hsecurity_task_to_inodeh]j)}(hsecurity_task_to_inodeh]hsecurity_task_to_inode}(hjըhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjѨubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj¨hMubj/)}(h,(struct task_struct *p, struct inode *inode)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjרsbc.security_task_to_inodeasbuh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct inode *inodeh](j;)}(hj>h]hstruct}(hjbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j+c.security_task_to_inodeasbuh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj¨hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj¨hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj¨hMhjhhubj)}(hhh]j)}(h-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj¨hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(htaskh]htask}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhjubj")}(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&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjWubjD)}(hhh]j)}(hinodeh]hinode}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjrhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_create_user_ns (C function)c.security_create_user_nshNtauh1hhjwhhhNhNubh)}(hhh](h)}(h5int security_create_user_ns (const struct cred *cred)h]h)}(h4int security_create_user_ns(const struct cred *cred)h](h)}(hinth]hint}(hjݪhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj٪hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj٪hhhjhMubj)}(hsecurity_create_user_nsh]j)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj٪hhhjhMubj/)}(h(const struct cred *cred)h]j5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_create_user_nsasbuh1hhjubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj٪hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjժhhhjhMubah}(h]jЪah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjҪhhubj)}(hhh]j)}(h)Check if creating a new userns is allowedh]h)Check if creating a new userns is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjҪhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjЫjjЫjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjګh]h Parameters}(hjܫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjثubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjԫubj)}(hhh]j")}(h+``const struct cred *cred`` prepared creds h](j()}(h``const struct cred *cred``h]j.)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hprepared credsh]hprepared creds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjԫubj)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjԫubj)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjԫubj)}(h **Return**h]j)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjԫubj)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjԫubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hDint security_ipc_permission (struct kern_ipc_perm *ipcp, short flag)h]h)}(hCint security_ipc_permission(struct kern_ipc_perm *ipcp, short flag)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_ipc_permissionh]j)}(hsecurity_ipc_permissionh]hsecurity_ipc_permission}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h((struct kern_ipc_perm *ipcp, short flag)h](j5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjݬhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj٬ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj٬ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjìsbc.security_ipc_permissionasbuh1hhj٬ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj٬ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٬ubj)}(hipcph]hipcp}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj٬ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjլubj5)}(h short flagh](h)}(hshorth]hshort}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hflagh]hflag}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjլubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h#Check if sysv ipc access is allowedh]h#Check if sysv ipc access is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hj֭h]hstruct kern_ipc_perm *ipcp}(hjحhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjԭubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjЭubjD)}(hhh]j)}(hipc permission structureh]hipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjЭubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjͭubj")}(h%``short flag`` requested permissions h](j()}(h``short flag``h]j.)}(hjh]h short flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubjD)}(hhh]j)}(hrequested permissionsh]hrequested permissions}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhjͭubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h$Check permissions for access to IPC.h]h$Check permissions for access to IPC.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjqh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_ipc_getlsmprop (C function)c.security_ipc_getlsmprophNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPvoid security_ipc_getlsmprop (struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h]h)}(hOvoid security_ipc_getlsmprop(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjŮhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjĮhMubj)}(hsecurity_ipc_getlsmproph]j)}(hsecurity_ipc_getlsmproph]hsecurity_ipc_getlsmprop}(hj׮hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjӮubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjĮhMubj/)}(h3(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjٮsbc.security_ipc_getlsmpropasbuh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hipcph]hipcp}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct lsm_prop *proph](j;)}(hj>h]hstruct}(hjehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j-c.security_ipc_getlsmpropasbuh1hhjaubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hproph]hprop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjĮhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjĮhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjĮhMhjhhubj)}(hhh]j)}(h Get the sysv ipc object LSM datah]h Get the sysv ipc object LSM data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjĮhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hj'h]hstruct kern_ipc_perm *ipcp}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj!ubjD)}(hhh]j)}(hipc permission structureh]hipc permission structure}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMhjubj")}(h5``struct lsm_prop *prop`` pointer to lsm information h](j()}(h``struct lsm_prop *prop``h]j.)}(hj`h]hstruct lsm_prop *prop}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjZubjD)}(hhh]j)}(hpointer to lsm informationh]hpointer to lsm information}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjuhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h7Get the lsm information associated with the ipc object.h]h7Get the lsm information associated with the ipc object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h0int security_msg_msg_alloc (struct msg_msg *msg)h]h)}(h/int security_msg_msg_alloc(struct msg_msg *msg)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjܰhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjܰhhhjhMubj)}(hsecurity_msg_msg_alloch]j)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjܰhhhjhMubj/)}(h(struct msg_msg *msg)h]j5)}(hstruct msg_msg *msgh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_msg_allocasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjܰhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjذhhhjhMubah}(h]jӰah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjհhhubj)}(hhh]j)}(h$Allocate a sysv ipc message LSM blobh]h$Allocate a sysv ipc message LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjհhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj±h]h Parameters}(hjıhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h*``struct msg_msg *msg`` message structure h](j()}(h``struct msg_msg *msg``h]j.)}(hjh]hstruct msg_msg *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj߱ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj۱ubjD)}(hhh]j)}(hmessage structureh]hmessage structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj۱ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjرubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h0void security_msg_msg_free (struct msg_msg *msg)h]h)}(h/void security_msg_msg_free(struct msg_msg *msg)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_msg_msg_freeh]j)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct msg_msg *msg)h]j5)}(hstruct msg_msg *msgh](j;)}(hj>h]hstruct}(hjŲhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjҲhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_msg_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]j)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(hhh]j")}(h*``struct msg_msg *msg`` message structure h](j()}(h``struct msg_msg *msg``h]j.)}(hjh]hstruct msg_msg *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hmessage structureh]hmessage structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubj)}(h**Description**h]j)}(hjijh]h Description}(hjƳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj³ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjڳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_msg_queue_alloc (struct kern_ipc_perm *msq)h]h)}(h7int security_msg_queue_alloc(struct kern_ipc_perm *msq)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_msg_queue_alloch]j)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct kern_ipc_perm *msq)h]j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjBubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jsj,sbc.security_msg_queue_allocasbuh1hhjBubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hmsqh]hmsq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hjɴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjƴhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hj h]hstruct kern_ipc_perm *msq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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 }(hj[hhhNhNubj)}(h**msg**h]hmsg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubhP. The security field is initialized to NULL when the structure is first created.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8void security_msg_queue_free (struct kern_ipc_perm *msq)h]h)}(h7void security_msg_queue_free(struct kern_ipc_perm *msq)h](h)}(hvoidh]hvoid}(hjõhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjҵhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjѵhMubj)}(hsecurity_msg_queue_freeh]j)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjѵhMubj/)}(h(struct kern_ipc_perm *msq)h]j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_freeasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjѵhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjѵhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjѵhMhjhhubj)}(hhh]j)}(h"Free a sysv ipc msg queue LSM blobh]h"Free a sysv ipc msg queue LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjѵhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Deallocate security field **perm->security** for the message queue.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hjĶh]hstruct kern_ipc_perm *msq}(hjƶhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj¶ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjݶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٶhMhjڶubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjٶhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjhhhNhNubj)}(h**perm->security**h]hperm->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for the message queue.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hHint security_msg_queue_associate (struct kern_ipc_perm *msq, int msqflg)h]h)}(hGint security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg)h](h)}(hinth]hint}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjdhMubj)}(hsecurity_msg_queue_associateh]j)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjdhMubj/)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjysbc.security_msg_queue_associateasbuh1hhjubh)}(h h]h }(hjѷhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj߷hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int msqflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmsqflgh]hmsqflg}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjRhhhjdhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjKhhubj)}(hhh]j)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(hhh](j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hjh]hstruct kern_ipc_perm *msq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``int msqflg`` operation flags h](j()}(h``int msqflg``h]j.)}(hjŸh]h int msqflg}(hjǸhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjøubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hj޸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڸhMhj۸ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjڸhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h **Return**h]j)}(hj'h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubj)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hBint security_msg_queue_msgctl (struct kern_ipc_perm *msq, int cmd)h]h)}(hAint security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)h](h)}(hinth]hint}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhM ubj)}(hsecurity_msg_queue_msgctlh]j)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhhjzhM ubj/)}(h$(struct kern_ipc_perm *msq, int cmd)h](j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjǹhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĹubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjɹmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_msgctlasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint cmdh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmdh]hcmd}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhhjzhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjzhM ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhM hjahhubj)}(hhh]j)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj^hhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjwhNhNubj)}(hX***Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a message control operation specified by **cmd** is to be performed on the message queue with permissions. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj}ubj)}(hhh](j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hjh]hstruct kern_ipc_perm *msq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h``int cmd`` operation h](j()}(h ``int cmd``h]j.)}(hjۺh]hint cmd}(hjݺhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjٺubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjպubjD)}(hhh]j)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjպubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhj}ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj}ubj)}(hCheck permission when a message control operation specified by **cmd** is to be performed on the message queue with permissions.h](h?Check permission when a message control operation specified by }(hj,hhhNhNubj)}(h**cmd**h]hcmd}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh: is to be performed on the message queue with permissions.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj}ubj)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj}ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hZint security_msg_queue_msgsnd (struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h]h)}(hYint security_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_msg_queue_msgsndh]j)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjѻhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjͻubh)}(h h]h }(hj޻hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͻubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_msgsndasbuh1hhjͻubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͻubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͻubj)}(hmsqh]hmsq}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjͻubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɻubj5)}(hstruct msg_msg *msgh](j;)}(hj>h]hstruct}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j c.security_msg_queue_msgsndasbuh1hhj?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɻubj5)}(h int msqflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmsqflgh]hmsqflg}(hjϼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɻubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hXI**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``struct msg_msg *msg`` message ``int msqflg`` operation flags **Description** Check permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hj:h]hstruct kern_ipc_perm *msq}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhMhj1ubj")}(h ``struct msg_msg *msg`` message h](j()}(h``struct msg_msg *msg``h]j.)}(hjsh]hstruct msg_msg *msg}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjmubjD)}(hhh]j)}(hmessageh]hmessage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj1ubj")}(h``int msqflg`` operation flags h](j()}(h``int msqflg``h]j.)}(hjh]h int msqflg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hjŽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj½ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hjhhhNhNubj)}(h**msg**h]hmsg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA, is enqueued on the message queue with permissions specified in }(hjhhhNhNubj)}(h**msq**h]hmsq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hint security_msg_queue_msgrcv (struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h]h)}(h~int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](h)}(hinth]hint}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjhM)ubj)}(hsecurity_msg_queue_msgrcvh]j)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjshhhjhM)ubj/)}(ha(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j5)}(hstruct kern_ipc_perm *msqh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjҾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjϾubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjԾmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_msg_queue_msgrcvasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsqh]hmsq}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct msg_msg *msgh](j;)}(hj>h]hstruct}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]jc.security_msg_queue_msgrcvasbuh1hhj"ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hmsgh]hmsg}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct task_struct *targeth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_msg_queue_msgrcvasbuh1hhjubh)}(h h]h }(hjҿhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htargeth]htarget}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h long typeh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(htypeh]htype}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint modeh](h)}(hinth]hint}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hmodeh]hmode}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjhM)ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjhM)ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhM)hjlhhubj)}(hhh]j)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hj~hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhM)ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjubj)}(hhh](j")}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *msq``h]j.)}(hjh]hstruct kern_ipc_perm *msq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM*hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM*hjubj")}(h ``struct msg_msg *msg`` message h](j()}(h``struct msg_msg *msg``h]j.)}(hjh]hstruct msg_msg *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjubjD)}(hhh]j)}(hmessageh]hmessage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM+hjubj")}(h+``struct task_struct *target`` target task h](j()}(h``struct task_struct *target``h]j.)}(hj4h]hstruct task_struct *target}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM,hj.ubjD)}(hhh]j)}(h target taskh]h target task}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhM,hjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhM,hjubj")}(h(``long type`` type of message requested h](j()}(h ``long type``h]j.)}(hjmh]h long type}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjgubjD)}(hhh]j)}(htype of message requestedh]htype of message requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM-hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM-hjubj")}(h``int mode`` operation flags h](j()}(h ``int mode``h]j.)}(hjh]hint mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM.hjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM.hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM.hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0hjubj)}(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, }(hjhhhNhNubj)}(h**msg**h]hmsg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh), is removed from the message queue. The }(hjhhhNhNubj)}(h **target**h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM0hjubj)}(h **Return**h]j)}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2int security_shm_alloc (struct kern_ipc_perm *shp)h]h)}(h1int security_shm_alloc(struct kern_ipc_perm *shp)h](h)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjhM>ubj)}(hsecurity_shm_alloch]j)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjmhhhjhM>ubj/)}(h(struct kern_ipc_perm *shp)h]j5)}(hstruct kern_ipc_perm *shph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_shm_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjmhhhjhM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjhM>ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjfhhubj)}(hhh]j)}(hAllocate a sysv shm LSM blobh]hAllocate a sysv shm LSM blob}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hj.hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhM>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIjjIjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhjMubj)}(hhh]j")}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *shp``h]j.)}(hjrh]hstruct kern_ipc_perm *shp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjlubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM?hjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhM?hjiubah}(h]h ]h"]h$]h&]uh1jhjMubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjMubj)}(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 }(hjhhhNhNubj)}(h**shp**h]hshp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh` security field. The security field is initialized to NULL when the structure is first created.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjMubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhjMubj)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_free (C function)c.security_shm_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2void security_shm_free (struct kern_ipc_perm *shp)h]h)}(h1void security_shm_free(struct kern_ipc_perm *shp)h](h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMSubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj9hMSubj)}(hsecurity_shm_freeh]j)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj'hhhj9hMSubj/)}(h(struct kern_ipc_perm *shp)h]j5)}(hstruct kern_ipc_perm *shph](j;)}(hj>h]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjNsbc.security_shm_freeasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj`ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj'hhhj9hMSubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj9hMSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMShj hhubj)}(hhh]j)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMSubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Deallocate the security structure **perm->security** for the memory segment.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjubj)}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThj&ubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMThjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMThj#ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubj)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hj}hhhNhNubj)}(h**perm->security**h]hperm->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh for the memory segment.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_shm_associate (C function)c.security_shm_associatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hBint security_shm_associate (struct kern_ipc_perm *shp, int shmflg)h]h)}(hAint security_shm_associate(struct kern_ipc_perm *shp, int shmflg)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM`ubj)}(hsecurity_shm_associateh]j)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM`ubj/)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j5)}(hstruct kern_ipc_perm *shph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_shm_associateasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int shmflgh](h)}(hinth]hint}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hshmflgh]hshmflg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM`ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM`ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM`hjhhubj)}(hhh]j)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM`ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjubj)}(hhh](j")}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *shp``h]j.)}(hjh]hstruct kern_ipc_perm *shp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMahj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMahjubj")}(h``int shmflg`` operation flags h](j()}(h``int shmflg``h]j.)}(hj-h]h int shmflg}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj+ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMbhj'ubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMbhjCubah}(h]h ]h"]h$]h&]uh1jChj'ubeh}(h]h ]h"]h$]h&]uh1j!hjBhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjubj)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsjsbc.security_shm_shmctlasbuh1hhj ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hshph]hshp}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hint cmdh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMqubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMqhjhhubj)}(hhh]j)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hXA**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a shared memory control operation specified by **cmd** is to be performed on the shared memory region with permissions in **shp**. **Return** Return 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMrhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjubj")}(h``int cmd`` operation h](j()}(h ``int cmd``h]j.)}(hjCh]hint cmd}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMshj=ubjD)}(hhh]j)}(h operationh]h operation}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMshjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMshjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhjubj)}(hCheck permission when a shared memory control operation specified by **cmd** is to be performed on the shared memory region with permissions in **shp**.h](hECheck permission when a shared memory control operation specified by }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD is to be performed on the shared memory region with permissions in }(hjhhhNhNubj)}(h**shp**h]hshp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMxhjubj)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_shm_shmat (C function)c.security_shm_shmathNtauh1hhjwhhhNhNubh)}(hhh](h)}(hTint security_shm_shmat (struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h]h)}(hSint security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubj)}(hsecurity_shm_shmath]j)}(hsecurity_shm_shmath]hsecurity_shm_shmat}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhjhMubj/)}(h=(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](j5)}(hstruct kern_ipc_perm *shph](j;)}(hj>h]hstruct}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjGubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjkmodnameN classnameNjwjz)}j}]j)}jsj1sbc.security_shm_shmatasbuh1hhjGubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(hchar __user *shmaddrh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshmaddrh]hshmaddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(h int shmflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hshmflgh]hshmflg}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h/Check if a sysv shm attach operation is allowedh]h/Check if a sysv shm attach operation is allowed}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``char __user *shmaddr`` address of memory region to attach ``int shmflg`` operation flags **Description** Check permissions prior to allowing the shmat system call to attach the shared memory segment with permissions **shp** to the data segment of the calling process. The attaching address is specified by **shmaddr**. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubj)}(hhh](j")}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *shp``h]j.)}(hjh]hstruct kern_ipc_perm *shp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h<``char __user *shmaddr`` address of memory region to attach h](j()}(h``char __user *shmaddr``h]j.)}(hjh]hchar __user *shmaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h"address of memory region to attachh]h"address of memory region to attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``int shmflg`` operation flags h](j()}(h``int shmflg``h]j.)}(hj h]h int shmflg}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubj)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubj)}(hCheck permissions prior to allowing the shmat system call to attach the shared memory segment with permissions **shp** to the data segment of the calling process. The attaching address is specified by **shmaddr**.h](hoCheck permissions prior to allowing the shmat system call to attach the shared memory segment with permissions }(hj[hhhNhNubj)}(h**shp**h]hshp}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubhS to the data segment of the calling process. The attaching address is specified by }(hj[hhhNhNubj)}(h **shmaddr**h]hshmaddr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_alloc (C function)c.security_sem_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2int security_sem_alloc (struct kern_ipc_perm *sma)h]h)}(h1int security_sem_alloc(struct kern_ipc_perm *sma)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sem_alloch]j)}(hsecurity_sem_alloch]hsecurity_sem_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct kern_ipc_perm *sma)h]j5)}(hstruct kern_ipc_perm *smah](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j)}jsjsbc.security_sem_allocasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"Allocate a sysv semaphore LSM blobh]h"Allocate a sysv semaphore LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hXD**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Allocate and attach a security structure to the **sma** security field. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *sma``h]j.)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hAllocate and attach a security structure to the **sma** security field. The security field is initialized to NULL when the structure is first created.h](h0Allocate and attach a security structure to the }(hj'hhhNhNubj)}(h**sma**h]hsma}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh_ security field. The security field is initialized to NULL when the structure is first created.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_free (C function)c.security_sem_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h2void security_sem_free (struct kern_ipc_perm *sma)h]h)}(h1void security_sem_free(struct kern_ipc_perm *sma)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sem_freeh]j)}(hsecurity_sem_freeh]hsecurity_sem_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct kern_ipc_perm *sma)h]j5)}(hstruct kern_ipc_perm *smah](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sem_freeasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hFree a sysv semaphore LSM blobh]hFree a sysv semaphore LSM blob}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Deallocate security structure **sma->security** for the semaphore.h](j)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(hhh]j")}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *sma``h]j.)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubj)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjhhhNhNubj)}(h**sma->security**h]h sma->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for the semaphore.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_sem_associate (C function)c.security_sem_associatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hBint security_sem_associate (struct kern_ipc_perm *sma, int semflg)h]h)}(hAint security_sem_associate(struct kern_ipc_perm *sma, int semflg)h](h)}(hinth]hint}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj0hMubj)}(hsecurity_sem_associateh]j)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj0hMubj/)}(h'(struct kern_ipc_perm *sma, int semflg)h](j5)}(hstruct kern_ipc_perm *smah](j;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjEsbc.security_sem_associateasbuh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubj5)}(h int semflgh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsemflgh]hsemflg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj0hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj0hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhjhhubj)}(hhh]j)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(hhh](j")}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *sma``h]j.)}(hjXh]hstruct kern_ipc_perm *sma}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjRubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jChjRubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhjOubj")}(h``int semflg`` operation flags h](j()}(h``int semflg``h]j.)}(hjh]h int semflg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.h]hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj[sbc.security_sem_semctlasbuh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(hint cmdh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhjFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhjFhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj-hhubj)}(hhh]j)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a semaphore operation specified by **cmd** is to be performed on the semaphore. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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.)}(hjnh]hstruct kern_ipc_perm *sma}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjeubj")}(h``int cmd`` operation h](j()}(h ``int cmd``h]j.)}(hjh]hint cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIubj)}(heCheck permission when a semaphore operation specified by **cmd** is to be performed on the semaphore.h](h9Check permission when a semaphore operation specified by }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% is to be performed on the semaphore.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sem_semop (C function)c.security_sem_semophNtauh1hhjwhhhNhNubh)}(hhh](h)}(hbint security_sem_semop (struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h]h)}(haint security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h](h)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhjnhMubj)}(hsecurity_sem_semoph]j)}(hsecurity_sem_semoph]hsecurity_sem_semop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhjnhMubj/)}(hK(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h](j5)}(hstruct kern_ipc_perm *smah](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sem_semopasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sembuf *sopsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hsembufh]hsembuf}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj/modnameN classnameNjwjz)}j}]jc.security_sem_semopasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsopsh]hsops}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned nsopsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hnsopsh]hnsops}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int alterh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(halterh]halter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj\hhhjnhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjnhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjUhhubj)}(hhh]j)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``struct sembuf *sops`` operations to perform ``unsigned nsops`` number of operations ``int alter`` flag indicating changes will be made **Description** Check permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j()}(h``struct kern_ipc_perm *sma``h]j.)}(hj;h]hstruct kern_ipc_perm *sma}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj5ubjD)}(hhh]j)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhMhj2ubj")}(h.``struct sembuf *sops`` operations to perform h](j()}(h``struct sembuf *sops``h]j.)}(hjth]hstruct sembuf *sops}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjnubjD)}(hhh]j)}(hoperations to performh]hoperations to perform}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj2ubj")}(h(``unsigned nsops`` number of operations h](j()}(h``unsigned nsops``h]j.)}(hjh]hunsigned nsops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hnumber of operationsh]hnumber of operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj2ubj")}(h3``int alter`` flag indicating changes will be made h](j()}(h ``int alter``h]j.)}(hjh]h int alter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h$flag indicating changes will be madeh]h$flag indicating changes will be made}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hCheck permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified.h](hWCheck permissions before performing operations on members of the semaphore set. If the }(hj7hhhNhNubj)}(h **alter**h]halter}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh4 flag is nonzero, the semaphore set may be modified.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_getselfattr (C function)c.security_getselfattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hfint security_getselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h]h)}(heint security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_getselfattrh]j)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hM(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j5)}(hunsigned int attrh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct lsm_ctx __user *uctxh](j;)}(hj>h]hstruct}(hj-hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_getselfattrasbuh1hhj)ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh__user}(hj)hhhNhNubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(huctxh]huctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hu32 __user *sizeh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jgc.security_getselfattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jgc.security_getselfattrasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to return ``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL ``u32 __user *size`` pointer to the size of space available to receive the data ``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. **Description** A NULL value for **uctx** can be used to get both the number of attributes and the size of the data. Returns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h0``unsigned int attr`` which attribute to return h](j()}(h``unsigned int attr``h]j.)}(hjh]hunsigned int attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hwhich attribute to returnh]hwhich attribute to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hX``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL h](j()}(h``struct lsm_ctx __user *uctx``h]j.)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h7the user-space destination for the information, or NULLh]h7the user-space destination for the information, or NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j()}(h``u32 __user *size``h]j.)}(hj$h]hu32 __user *size}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h:pointer to the size of space available to receive the datah]h:pointer to the size of space available to receive the data}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj9hMhjubj")}(h``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. h](j()}(h ``u32 flags``h]j.)}(hj]h]h u32 flags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjWubjD)}(hhh]j)}(hspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported.h](hzspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed }(hjvhhhNhNubj)}(h**ctx**h]hctx}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh be reported.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjsubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjrhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hdA NULL value for **uctx** can be used to get both the number of attributes and the size of the data.h](hA NULL value for }(hjhhhNhNubj)}(h**uctx**h]huctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK can be used to get both the number of attributes and the size of the data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hReturns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](hLReturns the number of attributes found on success, negative value on error. }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, is reset to the total size of the data. If }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 is insufficient to contain the data -E2BIG is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_setselfattr (C function)c.security_setselfattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h^int security_setselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h]h)}(h]int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](h)}(hinth]hint}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhjChMUubj)}(hsecurity_setselfattrh]j)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChMUubj/)}(hE(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j5)}(hunsigned int attrh](h)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct lsm_ctx __user *uctxh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjXsbc.security_setselfattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh__user}(hjhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huctxh]huctx}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hu32 sizeh](h)}(hhh]j)}(hu32h]hu32}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjLmodnameN classnameNjwjz)}j}]jc.security_setselfattrasbuh1hhjCubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hsizeh]hsize}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_setselfattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhjChMUubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhjChMUubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChMUhj*hhubj)}(hhh]j)}(h,Set an LSM attribute on the current process.h]h,Set an LSM attribute on the current process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMUubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubj)}(hhh](j")}(h-``unsigned int attr`` which attribute to set h](j()}(h``unsigned int attr``h]j.)}(hj)h]hunsigned int attr}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj'ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhj#ubjD)}(hhh]j)}(hwhich attribute to seth]hwhich attribute to set}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMVhj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMVhj ubj")}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j()}(h``struct lsm_ctx __user *uctx``h]j.)}(hjbh]hstruct lsm_ctx __user *uctx}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhj\ubjD)}(hhh]j)}(h)the user-space source for the informationh]h)the user-space source for the information}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMWhjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMWhj ubj")}(h"``u32 size`` the size of the data h](j()}(h ``u32 size``h]j.)}(hjh]hu32 size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjubjD)}(hhh]j)}(hthe size of the datah]hthe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhj ubj")}(h1``u32 flags`` reserved for future use, must be 0 h](j()}(h ``u32 flags``h]j.)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubjD)}(hhh]j)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMYhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMYhj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjubj)}(hhSet an LSM attribute for the current process. The LSM, attribute and new value are included in **uctx**.h](h_Set an LSM attribute for the current process. The LSM, attribute and new value are included in }(hj%hhhNhNubj)}(h**uctx**h]huctx}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjubj)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_getprocattr (C function)c.security_getprocattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h[int security_getprocattr (struct task_struct *p, int lsmid, const char *name, char **value)h]h)}(hZint security_getprocattr(struct task_struct *p, int lsmid, const char *name, char **value)h](h)}(hinth]hint}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjhMubj)}(hsecurity_getprocattrh]j)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjqhhhjhMubj/)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j5)}(hstruct task_struct *ph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_getprocattrasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int lsmidh](h)}(hinth]hint}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlsmidh]hlsmid}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hcharh]hchar}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h char **valueh](h)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjqhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(hhh]j)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-jj-jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1ubj)}(hhh](j")}(h#``struct task_struct *p`` the task h](j()}(h``struct task_struct *p``h]j.)}(hjVh]hstruct task_struct *p}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjPubjD)}(hhh]j)}(hthe taskh]hthe task}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhMhjMubj")}(h!``int lsmid`` LSM identification h](j()}(h ``int lsmid``h]j.)}(hjh]h int lsmid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hLSM identificationh]hLSM identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjMubj")}(h$``const char *name`` attribute name h](j()}(h``const char *name``h]j.)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hattribute nameh]hattribute name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjMubj")}(h!``char **value`` attribute value h](j()}(h``char **value``h]j.)}(hjh]h char **value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hattribute valueh]hattribute value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubj)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1ubj)}(hNRead attribute **name** for task **p** and store it into **value** if allowed.h](hRead attribute }(hjRhhhNhNubj)}(h**name**h]hname}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh for task }(hjRhhhNhNubj)}(h**p**h]hp}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh and store it into }(hjRhhhNhNubj)}(h **value**h]hvalue}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh if allowed.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1ubj)}(hGReturns the length of **value** on success, a negative value otherwise.h](hReturns the length of }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( on success, a negative value otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_setprocattr (C function)c.security_setprocattrhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_setprocattr (int lsmid, const char *name, void *value, size_t size)h]h)}(hOint security_setprocattr(int lsmid, const char *name, void *value, size_t size)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_setprocattrh]j)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h7(int lsmid, const char *name, void *value, size_t size)h](j5)}(h int lsmidh](h)}(hinth]hint}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hlsmidh]hlsmid}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hcharh]hchar}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(h void *valueh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_setprocattrasbuh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hSet an attribute for a taskh]hSet an attribute for a task}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubj)}(hhh](j")}(h!``int lsmid`` LSM identification h](j()}(h ``int lsmid``h]j.)}(hjh]h int lsmid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hLSM identificationh]hLSM identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h$``const char *name`` attribute name h](j()}(h``const char *name``h]j.)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hattribute nameh]hattribute name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h ``void *value`` attribute value h](j()}(h``void *value``h]j.)}(hjh]h void *value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubjD)}(hhh]j)}(hattribute valueh]hattribute value}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhjubj")}(h%``size_t size`` attribute value size h](j()}(h``size_t size``h]j.)}(hjHh]h size_t size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjBubjD)}(hhh]j)}(hattribute value sizeh]hattribute value size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubj)}(hYWrite (set) the current task's attribute **name** to **value**, size **size** if allowed.h](h+Write (set) the current task’s attribute }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, size }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubj)}(h=Returns bytes written on success, a negative value otherwise.h]h=Returns bytes written on success, a negative value otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_post_notification (C function)c.security_post_notificationhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hqint security_post_notification (const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h]h)}(hpint security_post_notification(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](h)}(hinth]hint}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj3hMRubj)}(hsecurity_post_notificationh]j)}(hsecurity_post_notificationh]hsecurity_post_notification}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj3hMRubj/)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j5)}(hconst struct cred *w_credh](j;)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj;)}(hj>h]hstruct}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjHsbc.security_post_notificationasbuh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hw_credh]hw_cred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubj5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]jc.security_post_notificationasbuh1hhjubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubj5)}(hstruct watch_notification *nh](j;)}(hj>h]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(hwatch_notificationh]hwatch_notification}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_post_notificationasbuh1hhjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj3hMRubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj3hMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMRhjhhubj)}(hhh]j)}(h+Check if a watch notification can be postedh]h+Check if a watch notification can be posted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMRubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjubj)}(hhh](j")}(hI``const struct cred *w_cred`` credentials of the task that set the watch h](j()}(h``const struct cred *w_cred``h]j.)}(hj;h]hconst struct cred *w_cred}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShj5ubjD)}(hhh]j)}(h*credentials of the task that set the watchh]h*credentials of the task that set the watch}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMShjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhMShj2ubj")}(hN``const struct cred *cred`` credentials of the task which triggered the watch h](j()}(h``const struct cred *cred``h]j.)}(hjth]hconst struct cred *cred}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThjnubjD)}(hhh]j)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhMThj2ubj")}(h2``struct watch_notification *n`` the notification h](j()}(h ``struct watch_notification *n``h]j.)}(hjh]hstruct watch_notification *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMUhjubjD)}(hhh]j)}(hthe notificationh]hthe notification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMUhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h(int security_watch_key (struct key *key)h]h)}(h'int security_watch_key(struct key *key)h](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMeubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhMeubj)}(hsecurity_watch_keyh]j)}(hsecurity_watch_keyh]hsecurity_watch_key}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPhhhjbhMeubj/)}(h(struct key *key)h]j5)}(hstruct key *keyh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjwsbc.security_watch_keyasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjPhhhjbhMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjbhMeubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMehjIhhubj)}(hhh]j)}(h2Check if a task is allowed to watch for key eventsh]h2Check if a task is allowed to watch for key events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMehjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihj0ubj)}(hhh]j")}(h%``struct key *key`` the key to watch h](j()}(h``struct key *key``h]j.)}(hjUh]hstruct key *key}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhjOubjD)}(hhh]j)}(hthe key to watchh]hthe key to watch}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMfhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhMfhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj0ubj)}(h\Check to see if a process is allowed to watch for event notifications from a key or keyring.h]h\Check to see if a process is allowed to watch for event notifications from a key or keyring.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj0ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhj0ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMkhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h@int security_netlink_send (struct sock *sk, struct sk_buff *skb)h]h)}(h?int security_netlink_send(struct sock *sk, struct sk_buff *skb)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMuubj)}(hsecurity_netlink_sendh]j)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMuubj/)}(h&(struct sock *sk, struct sk_buff *skb)h](j5)}(hstruct sock *skh](j;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hsockh]hsock}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_netlink_sendasbuh1hhj5ubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hstruct sk_buff *skbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jsc.security_netlink_sendasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMuubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMuhjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMuubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjHubj)}(hhh](j")}(h#``struct sock *sk`` sending socket h](j()}(h``struct sock *sk``h]j.)}(hjmh]hstruct sock *sk}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjgubjD)}(hhh]j)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhMvhjdubj")}(h(``struct sk_buff *skb`` netlink message h](j()}(h``struct sk_buff *skb``h]j.)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjubjD)}(hhh]j)}(hnetlink messageh]hnetlink message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMwhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMwhjdubeh}(h]h ]h"]h$]h&]uh1jhjHubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjHubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhjHubj)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~hjHubj)}(hhh]j")}(h]Returns 0 if the information was successfully saved and message is allowed to be transmitted.h](j()}(hBReturns 0 if the information was successfully saved and message ish]hBReturns 0 if the information was successfully saved and message is}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM~hj!ubjD)}(hhh]j)}(hallowed to be transmitted.h]hallowed to be transmitted.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj3hM~hjubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_create (C function)c.security_socket_createhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hIint security_socket_create (int family, int type, int protocol, int kern)h]h)}(hHint security_socket_create(int family, int type, int protocol, int kern)h](h)}(hinth]hint}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjhMubj)}(hsecurity_socket_createh]j)}(hsecurity_socket_createh]hsecurity_socket_create}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhhjhMubj/)}(h.(int family, int type, int protocol, int kern)h](j5)}(h int familyh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint typeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int protocolh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hprotocolh]hprotocol}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint kernh](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hkernh]hkern}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjthhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjmhhubj)}(hhh]j)}(h)Check if creating a new socket is allowedh]h)Check if creating a new socket is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h``int family`` protocol family h](j()}(h``int family``h]j.)}(hjh]h int family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h!``int type`` communications type h](j()}(h ``int type``h]j.)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hcommunications typeh]hcommunications type}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hMhjubj")}(h$``int protocol`` requested protocol h](j()}(h``int protocol``h]j.)}(hjMh]h int protocol}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjGubjD)}(hhh]j)}(hrequested protocolh]hrequested protocol}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h1Check permissions prior to creating a new socket.h]h1Check permissions prior to creating a new socket.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hcint security_socket_post_create (struct socket *sock, int family, int type, int protocol, int kern)h]h)}(hbint security_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern)h](h)}(hinth]hint}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj;hMubj)}(hsecurity_socket_post_createh]j)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj;hMubj/)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjPsbc.security_socket_post_createasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(h int familyh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hint typeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(htypeh]htype}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(h int protocolh](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hprotocolh]hprotocol}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubj5)}(hint kernh](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj;hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj;hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMhj"hhubj)}(hhh]j)}(h!Initialize a newly created socketh]h!Initialize a newly created socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``int family`` protocol family h](j()}(h``int family``h]j.)}(hj;h]h int family}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj5ubjD)}(hhh]j)}(hprotocol familyh]hprotocol family}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhMhjubj")}(h!``int type`` communications type h](j()}(h ``int type``h]j.)}(hjth]hint type}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjnubjD)}(hhh]j)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h$``int protocol`` requested protocol h](j()}(h``int protocol``h]j.)}(hjh]h int protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hrequested protocolh]hrequested protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!security_socket_bind (C function)c.security_socket_bindhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hUint security_socket_bind (struct socket *sock, struct sockaddr *address, int addrlen)h]h)}(hTint security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_socket_bindh]j)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_bindasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sockaddr *addressh](j;)}(hj>h]hstruct}(hj<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj8ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hsockaddrh]hsockaddr}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]jc.security_socket_bindasbuh1hhj8ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int addrlenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(haddrlenh]haddrlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h+Check if a socket bind operation is allowedh]h+Check if a socket bind operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hj3h]hstruct socket *sock}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj-ubjD)}(hhh]j)}(hsocketh]hsocket}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhj*ubj")}(h4``struct sockaddr *address`` requested bind address h](j()}(h``struct sockaddr *address``h]j.)}(hjlh]hstruct sockaddr *address}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjfubjD)}(hhh]j)}(hrequested bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubj")}(h"``int addrlen`` length of address h](j()}(h``int addrlen``h]j.)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hlength of addressh]hlength of address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hCheck permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter.h](hYCheck permission before socket protocol layer bind operation is performed and the socket }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* is bound to the address specified in the }(hjhhhNhNubj)}(h **address**h]haddress}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh parameter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj+h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_connect (C function)c.security_socket_connecthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hXint security_socket_connect (struct socket *sock, struct sockaddr *address, int addrlen)h]h)}(hWint security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)h](h)}(hinth]hint}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhj~hMubj)}(hsecurity_socket_connecth]j)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlhhhj~hMubj/)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_connectasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sockaddr *addressh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockaddrh]hsockaddr}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]jc.security_socket_connectasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int addrlenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(haddrlenh]haddrlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhj~hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhjehhubj)}(hhh]j)}(h.Check if a socket connect operation is allowedh]h.Check if a socket connect operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hsocketh]hsocket}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hM hj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hM hj ubj")}(h@``struct sockaddr *address`` address of remote connection point h](j()}(h``struct sockaddr *address``h]j.)}(hjOh]hstruct sockaddr *address}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjIubjD)}(hhh]j)}(h"address of remote connection pointh]h"address of remote connection point}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhM hjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhM hj ubj")}(h"``int addrlen`` length of address h](j()}(h``int addrlen``h]j.)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubjD)}(hhh]j)}(hlength of addressh]hlength of address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(hCheck permission before socket protocol layer connect operation attempts to connect socket **sock** to a remote address, **address**.h](h[Check permission before socket protocol layer connect operation attempts to connect socket }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to a remote address, }(hjhhhNhNubj)}(h **address**h]haddress}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_listen (C function)c.security_socket_listenhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h=int security_socket_listen (struct socket *sock, int backlog)h]h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjvsbc.security_socket_listenasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int backlogh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hbacklogh]hbacklog}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjOhhhjahMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj)}(hhh]j)}(h&Check if a socket is allowed to listenh]h&Check if a socket is allowed to listen}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct socket *sock`` socket ``int backlog`` connection queue size **Description** Check permission before socket protocol layer listen operation. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h&``int backlog`` connection queue size h](j()}(h``int backlog``h]j.)}(hjh]h int backlog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hconnection queue sizeh]hconnection queue size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(h?Check permission before socket protocol layer listen operation.h]h?Check permission before socket protocol layer listen operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(h **Return**h]j)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_socket_accept (C function)c.security_socket_accepthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hHint security_socket_accept (struct socket *sock, struct socket *newsock)h]h)}(hGint security_socket_accept(struct socket *sock, struct socket *newsock)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhM'ubj)}(hsecurity_socket_accepth]j)}(hsecurity_socket_accepth]hsecurity_socket_accept}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjwhM'ubj/)}(h-(struct socket *sock, struct socket *newsock)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_acceptasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct socket *newsockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]jc.security_socket_acceptasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewsockh]hnewsock}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjwhM'ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjwhM'ubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhM'hj^hhubj)}(hhh]j)}(h2Check if a socket is allowed to accept connectionsh]h2Check if a socket is allowed to accept connections}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhM'ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct socket *sock`` listening socket ``struct socket *newsock`` newly creation connection socket **Description** Check permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjubj)}(hhh](j")}(h)``struct socket *sock`` listening socket h](j()}(h``struct socket *sock``h]j.)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM(hjubjD)}(hhh]j)}(hlistening socketh]hlistening socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM(hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM(hjubj")}(h<``struct socket *newsock`` newly creation connection socket h](j()}(h``struct socket *newsock``h]j.)}(hjh]hstruct socket *newsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hj ubjD)}(hhh]j)}(h newly creation connection socketh]h newly creation connection socket}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hM)hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM)hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjubj)}(hCheck permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed.h](hOCheck permission before accepting a new connection. Note that the new socket, }(hjdhhhNhNubj)}(h **newsock**h]hnewsock}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubho, has been created and some information copied to it, but the accept operation has not actually been performed.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_sendmsg (C function)c.security_socket_sendmsghNtauh1hhjwhhhNhNubh)}(hhh](h)}(hOint security_socket_sendmsg (struct socket *sock, struct msghdr *msg, int size)h]h)}(hNint security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM7ubj)}(hsecurity_socket_sendmsgh]j)}(hsecurity_socket_sendmsgh]hsecurity_socket_sendmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM7ubj/)}(h3(struct socket *sock, struct msghdr *msg, int size)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_sendmsgasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct msghdr *msgh](j;)}(hj>h]hstruct}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hhh]j)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jCc.security_socket_sendmsgasbuh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint sizeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM7hjhhubj)}(hhh]j)}(h%Check if sending a message is allowedh]h%Check if sending a message is allowed}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7hj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIjjIjjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct socket *sock`` sending socket ``struct msghdr *msg`` message to send ``int size`` size of message **Description** Check permission before transmitting a message to another socket. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;hjMubj)}(hhh](j")}(h'``struct socket *sock`` sending socket h](j()}(h``struct socket *sock``h]j.)}(hjrh]hstruct socket *sock}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM8hjlubjD)}(hhh]j)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM8hjubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjhM8hjiubj")}(h'``struct msghdr *msg`` message to send h](j()}(h``struct msghdr *msg``h]j.)}(hjh]hstruct msghdr *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM9hjubjD)}(hhh]j)}(hmessage to sendh]hmessage to send}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM9hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM9hjiubj")}(h``int size`` size of message h](j()}(h ``int size``h]j.)}(hjh]hint size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM:hjubjD)}(hhh]j)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM:hjiubeh}(h]h ]h"]h$]h&]uh1jhjMubj)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjMubj)}(hACheck permission before transmitting a message to another socket.h]hACheck permission before transmitting a message to another socket.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjMubj)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hjMubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhjwhhhNhNubh)}(hhh](h)}(hZint security_socket_recvmsg (struct socket *sock, struct msghdr *msg, int size, int flags)h]h)}(hYint security_socket_recvmsg(struct socket *sock, struct msghdr *msg, int size, int flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMFubj)}(hsecurity_socket_recvmsgh]j)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMFubj/)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_recvmsgasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct msghdr *msgh](j;)}(hj>h]hstruct}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hmsghdrh]hmsghdr}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]jc.security_socket_recvmsgasbuh1hhj6ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint sizeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int flagsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMFubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]j)}(h'Check if receiving a message is allowedh]h'Check if receiving a message is allowed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMFhj"hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhjAubj)}(hhh](j")}(h)``struct socket *sock`` receiving socket h](j()}(h``struct socket *sock``h]j.)}(hjfh]hstruct socket *sock}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhj`ubjD)}(hhh]j)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hMGhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMGhj]ubj")}(h*``struct msghdr *msg`` message to receive h](j()}(h``struct msghdr *msg``h]j.)}(hjh]hstruct msghdr *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMHhjubjD)}(hhh]j)}(hmessage to receiveh]hmessage to receive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhj]ubj")}(h``int size`` size of message h](j()}(h ``int size``h]j.)}(hjh]hint size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhjubjD)}(hhh]j)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhj]ubj")}(h ``int flags`` operational flags h](j()}(h ``int flags``h]j.)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMJhj ubjD)}(hhh]j)}(hoperational flagsh]hoperational flags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMJhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMJhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMLhjAubj)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMLhjAubj)}(h **Return**h]j)}(hjsh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjAubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h5int security_socket_getsockname (struct socket *sock)h]h)}(h4int security_socket_getsockname(struct socket *sock)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMWubj)}(hsecurity_socket_getsocknameh]j)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMWubj/)}(h(struct socket *sock)h]j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_getsocknameasbuh1hhjubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMWubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjhhubj)}(hhh]j)}(h+Check if reading the socket addr is allowedh]h+Check if reading the socket addr is allowed}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMWubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM[hjubj)}(hhh]j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjubj)}(hNCheck permission before reading the local address (name) of the socket object.h]hNCheck permission before reading the local address (name) of the socket object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h5int security_socket_getpeername (struct socket *sock)h]h)}(h4int security_socket_getpeername(struct socket *sock)h](h)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMeubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhjnhMeubj)}(hsecurity_socket_getpeernameh]j)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhjnhMeubj/)}(h(struct socket *sock)h]j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_getpeernameasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj\hhhjnhMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjnhMeubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMehjUhhubj)}(hhh]j)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMehjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8jj8jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihj<ubj)}(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&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMfhj[ubjD)}(hhh]j)}(hsocketh]hsocket}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMfhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhMfhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj<ubj)}(hECheck permission before the remote address (name) of a socket object.h]hECheck permission before the remote address (name) of a socket object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhhj<ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhj<ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hLint security_socket_getsockopt (struct socket *sock, int level, int optname)h]h)}(hKint security_socket_getsockopt(struct socket *sock, int level, int optname)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMrubj)}(hsecurity_socket_getsockopth]j)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMrubj/)}(h-(struct socket *sock, int level, int optname)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjEhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j)}(hsocketh]hsocket}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjemodnameN classnameNjwjz)}j}]j)}jsj+sbc.security_socket_getsockoptasbuh1hhjAubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=ubj5)}(h int levelh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=ubj5)}(h int optnameh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMrubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMrhjhhubj)}(hhh]j)}(h+Check if reading a socket option is allowedh]h+Check if reading a socket option is allowed}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMrhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJjjJjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjNubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjsh]hstruct socket *sock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMshjmubjD)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhMshjjubj")}(h&``int level`` option's protocol level h](j()}(h ``int level``h]j.)}(hjh]h int level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjubjD)}(hhh]j)}(hoption's protocol levelh]hoption’s protocol level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMthjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMthjjubj")}(h``int optname`` option name h](j()}(h``int optname``h]j.)}(hjh]h int optname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhjubjD)}(hhh]j)}(h option nameh]h option name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMuhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMuhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjNubj)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hj6hhhNhNubj)}(h**sock**h]hsock}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjNubj)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhjNubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhjwhhhNhNubh)}(hhh](h)}(hLint security_socket_setsockopt (struct socket *sock, int level, int optname)h]h)}(hKint security_socket_setsockopt(struct socket *sock, int level, int optname)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_socket_setsockopth]j)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h-(struct socket *sock, int level, int optname)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_socket_setsockoptasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj' hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj4 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int levelh](h)}(hinth]hint}(hjM hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI ubh)}(h h]h }(hj[ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI ubj)}(hlevelh]hlevel}(hji hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int optnameh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ ubj)}(hoptnameh]hoptname}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h+Check if setting a socket option is allowedh]h+Check if setting a socket option is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubjD)}(hhh]j)}(hsocketh]hsocket}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(h&``int level`` option's protocol level h](j()}(h ``int level``h]j.)}(hjB h]h int level}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj< ubjD)}(hhh]j)}(hoption's protocol levelh]hoption’s protocol level}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW hMhjX ubah}(h]h ]h"]h$]h&]uh1jChj< ubeh}(h]h ]h"]h$]h&]uh1j!hjW hMhj ubj")}(h``int optname`` option name h](j()}(h``int optname``h]j.)}(hj{ h]h int optname}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjy ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhju ubjD)}(hhh]j)}(h option nameh]h option name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChju ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting the options associated with socket }(hj hhhNhNubj)}(h**sock**h]hsock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h;int security_socket_shutdown (struct socket *sock, int how)h]h)}(h:int security_socket_shutdown(struct socket *sock, int how)h](h)}(hinth]hint}(hj4 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0 hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0 hhhjB hMubj)}(hsecurity_socket_shutdownh]j)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hjU hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQ ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0 hhhjB hMubj/)}(h(struct socket *sock, int how)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hjq hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjm ubh)}(h h]h }(hj~ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm ubh)}(hhh]j)}(hsocketh]hsocket}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjW sbc.security_socket_shutdownasbuh1hhjm ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm ubj)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubj5)}(hint howh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hhowh]hhow}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0 hhhjB hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj, hhhjB hMubah}(h]j' ah ](jjeh"]h$]h&]jj)jhuh1hhjB hMhj) hhubj)}(hhh]j)}(h-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket is allowed}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj& hhubah}(h]h ]h"]h$]h&]uh1jhj) hhhjB hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjA jjA jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjK h]h Parameters}(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:287: ./security/security.chMhjE ubj)}(hhh](j")}(h``struct socket *sock`` socket h](j()}(h``struct socket *sock``h]j.)}(hjj h]hstruct socket *sock}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjh ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjd ubjD)}(hhh]j)}(hsocketh]hsocket}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjd ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhja ubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj ubjD)}(hhh]j)}(h2flag indicating how sends and receives are handledh]h2flag indicating how sends and receives are handled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhja ubeh}(h]h ]h"]h$]h&]uh1jhjE ubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is shut down.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE ubj)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hqint security_socket_getpeersec_stream (struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h]h)}(hpint security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](h)}(hinth]hint}(hj\ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjk hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjX hhhjj hMubj)}(h!security_socket_getpeersec_streamh]j)}(h!security_socket_getpeersec_streamh]h!security_socket_getpeersec_stream}(hj} hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjX hhhjj hMubj/)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j5)}(hstruct socket *sockh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hsocketh]hsocket}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sb#c.security_socket_getpeersec_streamasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hsockptr_t optvalh](h)}(hhh]j)}(h sockptr_th]h sockptr_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j #c.security_socket_getpeersec_streamasbuh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoptvalh]hoptval}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hsockptr_t optlenh](h)}(hhh]j)}(h sockptr_th]h sockptr_t}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j #c.security_socket_getpeersec_streamasbuh1hhjOubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hoptlenh]hoptlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hunsigned int lenh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjX hhhjj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjT hhhjj hMubah}(h]jO ah ](jjeh"]h$]h&]jj)jhuh1hhjj hMhjQ hhubj)}(hhh]j)}(hGet the remote peer labelh]hGet the remote peer label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQ hhhjj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(hX7**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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8ubjD)}(hhh]j)}(hsocketh]hsocket}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhj5ubj")}(h(``sockptr_t optval`` destination buffer h](j()}(h``sockptr_t optval``h]j.)}(hjwh]hsockptr_t optval}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjqubjD)}(hhh]j)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj5ubj")}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j()}(h``sockptr_t optlen``h]j.)}(hjh]hsockptr_t optlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h)size of peer label copied into the bufferh]h)size of peer label copied into the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj5ubj")}(h<``unsigned int len`` maximum size of the destination buffer h](j()}(h``unsigned int len``h]j.)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h](j()}(h>Returns 0 if all is well, otherwise, typical getsockopt returnh]h>Returns 0 if all is well, otherwise, typical getsockopt return}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdubjD)}(hhh]j)}(hvalues.h]hvalues.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjwubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjaubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h1int lsm_sock_alloc (struct sock *sock, gfp_t gfp)h]h)}(h0int lsm_sock_alloc(struct sock *sock, gfp_t gfp)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hlsm_sock_alloch]j)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct sock *sock, gfp_t gfp)h](j5)}(hstruct sock *sockh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.lsm_sock_allocasbuh1hhjubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j2c.lsm_sock_allocasbuh1hhjfubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hallocate a composite sock blobh]hallocate a composite sock blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h1``struct sock *sock`` the sock that needs a blob h](j()}(h``struct sock *sock``h]j.)}(hjh]hstruct sock *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h``gfp_t gfp`` allocation mode h](j()}(h ``gfp_t gfp``h]j.)}(hj=h]h gfp_t gfp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7ubjD)}(hhh]j)}(hallocation modeh]hallocation mode}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h*Allocate the sock blob for all the modulesh]h*Allocate the sock blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(hCint security_sk_alloc (struct sock *sk, int family, gfp_t priority)h]h)}(hBint security_sk_alloc(struct sock *sk, int family, gfp_t priority)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_sk_alloch]j)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h-(struct sock *sk, int family, gfp_t priority)h](j5)}(hstruct sock *skh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsjsbc.security_sk_allocasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int familyh](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hgfp_t priorityh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jCc.security_sk_allocasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj!jj!jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(hhh](j")}(h``struct sock *sk`` sock h](j()}(h``struct sock *sk``h]j.)}(hjJh]hstruct sock *sk}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjDubjD)}(hhh]j)}(hsockh]hsock}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hMhjAubj")}(h``int family`` protocol family h](j()}(h``int family``h]j.)}(hjh]h int family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj}ubjD)}(hhh]j)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjAubj")}(h``gfp_t priority`` gfp flags h](j()}(h``gfp_t priority``h]j.)}(hjh]hgfp_t priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_sk_free (C function)c.security_sk_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h'void security_sk_free (struct sock *sk)h]h)}(h&void security_sk_free(struct sock *sk)h](h)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhjqhMubj)}(hsecurity_sk_freeh]j)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhhjqhMubj/)}(h(struct sock *sk)h]j5)}(hstruct sock *skh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_sk_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj_hhhjqhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhjqhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjXhhubj)}(hhh]j)}(hFree the sock's LSM blobh]hFree the sock’s LSM blob}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhjwhNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.h](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?ubj)}(hhh]j")}(h``struct sock *sk`` sock h](j()}(h``struct sock *sk``h]j.)}(hjdh]hstruct sock *sk}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubjD)}(hhh]j)}(hsockh]hsock}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?ubj)}(hDeallocate security structure.h]hDeallocate security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hQvoid security_inet_csk_clone (struct sock *newsk, const struct request_sock *req)h]h)}(hPvoid security_inet_csk_clone(struct sock *newsk, const struct request_sock *req)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMVubj)}(hsecurity_inet_csk_cloneh]j)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMVubj/)}(h4(struct sock *newsk, const struct request_sock *req)h](j5)}(hstruct sock *newskh](j;)}(hj>h]hstruct}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_inet_csk_cloneasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewskh]hnewsk}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct request_sock *reqh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j[c.security_inet_csk_cloneasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMVubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMVhjhhubj)}(hhh]j)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjKubj)}(hhh](j")}(h ``struct sock *newsk`` new sock h](j()}(h``struct sock *newsk``h]j.)}(hjph]hstruct sock *newsk}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMWhjjubjD)}(hhh]j)}(hnew sockh]hnew sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMWhjgubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMXhjubjD)}(hhh]j)}(hconnection request_sockh]hconnection request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjKubj)}(h@Set that LSM state of **sock** using the LSM state from **req**.h](hSet that LSM state of }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh using the LSM state from }(hjhhhNhNubj)}(h**req**h]hreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMZhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hBint security_mptcp_add_subflow (struct sock *sk, struct sock *ssk)h]h)}(hAint security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)h](h)}(hinth]hint}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhj[hM<ubj)}(hsecurity_mptcp_add_subflowh]j)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhj[hM<ubj/)}(h#(struct sock *sk, struct sock *ssk)h](j5)}(hstruct sock *skh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjpsbc.security_mptcp_add_subflowasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct sock *sskh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.security_mptcp_add_subflowasbuh1hhjubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsskh]hssk}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhj[hM<ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjEhhhj[hM<ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM<hjBhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjzhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM<ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hjubjD)}(hhh]j)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM=hjubj")}(h%``struct sock *ssk`` the new subflow h](j()}(h``struct sock *ssk``h]j.)}(hjh]hstruct sock *ssk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hjubjD)}(hhh]j)}(hthe new subflowh]hthe new subflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM>hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM>hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@hjubj)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@hjubj)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjubj)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h]int security_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h]h)}(h\int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsecurity_xfrm_policy_cloneh]j)}(hsecurity_xfrm_policy_cloneh]hsecurity_xfrm_policy_clone}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j5)}(hstruct xfrm_sec_ctx *old_ctxh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_xfrm_policy_cloneasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_ctxh]hold_ctx}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct xfrm_sec_ctx **new_ctxph](j;)}(hj>h]hstruct}(hjMhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmmodnameN classnameNjwjz)}j}]jc.security_xfrm_policy_cloneasbuh1hhjIubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh](j")}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j()}(h ``struct xfrm_sec_ctx *old_ctx``h]j.)}(hjh]hstruct xfrm_sec_ctx *old_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hxfrm security contexth]hxfrm security context}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhjubj")}(h@``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context h](j()}(h"``struct xfrm_sec_ctx **new_ctxp``h]j.)}(hjUh]hstruct xfrm_sec_ctx **new_ctxp}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjOubjD)}(hhh]j)}(htarget xfrm security contexth]htarget xfrm security context}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h:int security_xfrm_policy_delete (struct xfrm_sec_ctx *ctx)h]h)}(h9int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hsecurity_xfrm_policy_deleteh]j)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMubj/)}(h(struct xfrm_sec_ctx *ctx)h]j5)}(hstruct xfrm_sec_ctx *ctxh](j;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]j)}jsjsbc.security_xfrm_policy_deleteasbuh1hhj5ubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]j)}(h*Check if deleting a xfrm policy is allowedh]h*Check if deleting a xfrm policy is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(hhh]j")}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j()}(h``struct xfrm_sec_ctx *ctx``h]j.)}(hjh]hstruct xfrm_sec_ctx *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubjD)}(hhh]j)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h"Authorize deletion of a SPD entry.h]h"Authorize deletion of a SPD entry.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h **Return**h]j)}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hdint security_xfrm_state_alloc_acquire (struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h]h)}(hcint security_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h!security_xfrm_state_alloc_acquireh]j)}(h!security_xfrm_state_alloc_acquireh]h!security_xfrm_state_alloc_acquire}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j5)}(hstruct xfrm_state *xh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsb#c.security_xfrm_state_alloc_acquireasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj- hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjzAh]hx}(hj: hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct xfrm_sec_ctx *polsech](j;)}(hj>h]hstruct}(hjR hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjN ubh)}(h h]h }(hj_ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjN ubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjp hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjr modnameN classnameNjwjz)}j}]j #c.security_xfrm_state_alloc_acquireasbuh1hhjN ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjN ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubj)}(hpolsech]hpolsec}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j #c.security_xfrm_state_alloc_acquireasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hsecidh]hsecid}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj3!jj3!jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj=!h]h Parameters}(hj?!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7!ubj)}(hhh](j")}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j()}(h``struct xfrm_state *x``h]j.)}(hj\!h]hstruct xfrm_state *x}(hj^!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZ!ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjV!ubjD)}(hhh]j)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hju!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq!hMhjr!ubah}(h]h ]h"]h$]h&]uh1jChjV!ubeh}(h]h ]h"]h$]h&]uh1j!hjq!hMhjS!ubj")}(hE``struct xfrm_sec_ctx *polsec`` associated policy's security context h](j()}(h``struct xfrm_sec_ctx *polsec``h]j.)}(hj!h]hstruct xfrm_sec_ctx *polsec}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj!ubjD)}(hhh]j)}(h$associated policy's security contexth]h&associated policy’s security context}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhjS!ubj")}(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&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj!ubjD)}(hhh]j)}(hsecid from the flowh]hsecid from the flow}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1jChj!ubeh}(h]h ]h"]h$]h&]uh1j!hj!hMhjS!ubeh}(h]h ]h"]h$]h&]uh1jhj7!ubj)}(h**Description**h]j)}(hj "h]h Description}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7!ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7!ubj)}(h **Return**h]j)}(hj0"h]hReturn}(hj2"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj."ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7!ubj)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjF"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj7!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4void security_xfrm_state_free (struct xfrm_state *x)h]h)}(h3void security_xfrm_state_free(struct xfrm_state *x)h](h)}(hvoidh]hvoid}(hju"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjq"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjq"hhhj"hMubj)}(hsecurity_xfrm_state_freeh]j)}(hsecurity_xfrm_state_freeh]hsecurity_xfrm_state_free}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjq"hhhj"hMubj/)}(h(struct xfrm_state *x)h]j5)}(hstruct xfrm_state *xh](j;)}(hj>h]hstruct}(hj"hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj"modnameN classnameNjwjz)}j}]j)}jsj"sbc.security_xfrm_state_freeasbuh1hhj"ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hjzAh]hx}(hj #hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjq"hhhj"hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjm"hhhj"hMubah}(h]jh"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hMhjj"hhubj)}(hhh]j)}(hFree a xfrm stateh]hFree a xfrm state}(hj4#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1#hhubah}(h]h ]h"]h$]h&]uh1jhjj"hhhj"hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjL#jjL#jjjuh1hhhhjwhNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.h](j)}(h**Parameters**h]j)}(hjV#h]h Parameters}(hjX#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjP#ubj)}(hhh]j")}(h$``struct xfrm_state *x`` xfrm state h](j()}(h``struct xfrm_state *x``h]j.)}(hju#h]hstruct xfrm_state *x}(hjw#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjs#ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjo#ubjD)}(hhh]j)}(h xfrm stateh]h xfrm state}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jChjo#ubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhjl#ubah}(h]h ]h"]h$]h&]uh1jhjP#ubj)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjP#ubj)}(hDeallocate x->security.h]hDeallocate x->security.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjP#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhjwhhhNhNubh)}(hhh](h)}(hHint security_xfrm_policy_lookup (struct xfrm_sec_ctx *ctx, u32 fl_secid)h]h)}(hGint security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid)h](h)}(hinth]hint}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj$hMubj)}(hsecurity_xfrm_policy_lookuph]j)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj$hMubj/)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j5)}(hstruct xfrm_sec_ctx *ctxh](j;)}(hj>h]hstruct}(hj2$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.$ubh)}(h h]h }(hj?$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.$ubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjP$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjR$modnameN classnameNjwjz)}j}]j)}jsj$sbc.security_xfrm_policy_lookupasbuh1hhj.$ubh)}(h h]h }(hjp$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.$ubj)}(hjh]h*}(hj~$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.$ubj)}(hctxh]hctx}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*$ubj5)}(h u32 fl_secidh](h)}(hhh]j)}(hu32h]hu32}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$modnameN classnameNjwjz)}j}]jl$c.security_xfrm_policy_lookupasbuh1hhj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hfl_secidh]hfl_secid}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*$ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj$hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj$hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj#hhubj)}(hhh]j)}(h'Check if using a xfrm policy is allowedh]h'Check if using a xfrm policy is allowed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj!%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(hhh](j")}(h:``struct xfrm_sec_ctx *ctx`` target xfrm security context h](j()}(h``struct xfrm_sec_ctx *ctx``h]j.)}(hj>%h]hstruct xfrm_sec_ctx *ctx}(hj@%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<%ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8%ubjD)}(hhh]j)}(htarget xfrm security contexth]htarget xfrm security context}(hjW%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS%hMhjT%ubah}(h]h ]h"]h$]h&]uh1jChj8%ubeh}(h]h ]h"]h$]h&]uh1j!hjS%hMhj5%ubj")}(h5``u32 fl_secid`` flow secid used to authorize access h](j()}(h``u32 fl_secid``h]j.)}(hjw%h]h u32 fl_secid}(hjy%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hju%ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjq%ubjD)}(hhh]j)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jChjq%ubeh}(h]h ]h"]h$]h&]uh1j!hj%hMhj5%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubj)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubj)}(hhh]j")}(hOReturn 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h](j()}(hAReturn 0 if permission is granted, -ESRCH otherwise, or -errno onh]hAReturn 0 if permission is granted, -ESRCH otherwise, or -errno on}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%ubjD)}(hhh]j)}(h other errors.h]h other errors.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&ubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hvint security_xfrm_state_pol_flow_match (struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h]h)}(huint security_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](h)}(hinth]hint}(hjI&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE&hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"ubh)}(h h]h }(hjX&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE&hhhjW&hM"ubj)}(h"security_xfrm_state_pol_flow_matchh]j)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hjj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf&ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjE&hhhjW&hM"ubj/)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j5)}(hstruct xfrm_state *xh](j;)}(hj>h]hstruct}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&modnameN classnameNjwjz)}j}]j)}jsjl&sb$c.security_xfrm_state_pol_flow_matchasbuh1hhj&ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hjzAh]hx}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~&ubj5)}(hstruct xfrm_policy *xph](j;)}(hj>h]hstruct}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h xfrm_policyh]h xfrm_policy}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j&$c.security_xfrm_state_pol_flow_matchasbuh1hhj&ubh)}(h h]h }(hj3'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjA'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hxph]hxp}(hjN'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~&ubj5)}(hconst struct flowi_common *flich](j;)}(hjh]hconst}(hjg'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjc'ubh)}(h h]h }(hjt'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc'ubj;)}(hj>h]hstruct}(hj'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjc'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc'ubh)}(hhh]j)}(h flowi_commonh]h flowi_common}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]j&$c.security_xfrm_state_pol_flow_matchasbuh1hhjc'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc'ubj)}(hflich]hflic}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~&ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjE&hhhjW&hM"ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjA&hhhjW&hM"ubah}(h]j<&ah ](jjeh"]h$]h&]jj)jhuh1hhjW&hM"hj>&hhubj)}(hhh]j)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM"hj(hhubah}(h]h ]h"]h$]h&]uh1jhj>&hhhjW&hM"ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj%(h]h Parameters}(hj'(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hj(ubj)}(hhh](j")}(h-``struct xfrm_state *x`` xfrm state to match h](j()}(h``struct xfrm_state *x``h]j.)}(hjD(h]hstruct xfrm_state *x}(hjF(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjB(ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM#hj>(ubjD)}(hhh]j)}(hxfrm state to matchh]hxfrm state to match}(hj](hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY(hM#hjZ(ubah}(h]h ]h"]h$]h&]uh1jChj>(ubeh}(h]h ]h"]h$]h&]uh1j!hjY(hM#hj;(ubj")}(h<``struct xfrm_policy *xp`` xfrm policy to check for a match h](j()}(h``struct xfrm_policy *xp``h]j.)}(hj}(h]hstruct xfrm_policy *xp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{(ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM$hjw(ubjD)}(hhh]j)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hM$hj(ubah}(h]h ]h"]h$]h&]uh1jChjw(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM$hj;(ubj")}(h?``const struct flowi_common *flic`` flow to check for a match. h](j()}(h#``const struct flowi_common *flic``h]j.)}(hj(h]hconst struct flowi_common *flic}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM%hj(ubjD)}(hhh]j)}(hflow to check for a match.h]hflow to check for a match.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hM%hj(ubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM%hj;(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hj(ubj)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hj)hhhNhNubj)}(h**xp**h]hxp}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh and }(hj)hhhNhNubj)}(h**flic**h]hflic}(hj!)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh for a match with }(hj)hhhNhNubj)}(h**x**h]hx}(hj3)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hj(ubj)}(h **Return**h]j)}(hjN)h]hReturn}(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:287: ./security/security.chM)hj(ubj)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(hjd)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hBint security_xfrm_decode_session (struct sk_buff *skb, u32 *secid)h]h)}(hAint security_xfrm_decode_session(struct sk_buff *skb, u32 *secid)h](h)}(hinth]hint}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMCubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj)hMCubj)}(hsecurity_xfrm_decode_sessionh]j)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj)hMCubj/)}(h!(struct sk_buff *skb, u32 *secid)h](j5)}(hstruct sk_buff *skbh](j;)}(hj>h]hstruct}(hj)hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsj)sbc.security_xfrm_decode_sessionasbuh1hhj)ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hskbh]hskb}(hj)*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj)ubj5)}(h u32 *secidh](h)}(hhh]j)}(hu32h]hu32}(hjE*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjB*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjG*modnameN classnameNjwjz)}j}]j *c.security_xfrm_decode_sessionasbuh1hhj>*ubh)}(h h]h }(hjc*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>*ubj)}(hjh]h*}(hjq*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>*ubj)}(hsecidh]hsecid}(hj~*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj)ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj)hMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj)hhhj)hMCubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMChj)hhubj)}(hhh]j)}(h%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMChj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhj*ubj)}(hhh](j")}(h$``struct sk_buff *skb`` xfrm packet h](j()}(h``struct sk_buff *skb``h]j.)}(hj*h]hstruct sk_buff *skb}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhj*ubjD)}(hhh]j)}(h xfrm packeth]h xfrm packet}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMDhj*ubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hMDhj*ubj")}(h``u32 *secid`` secid h](j()}(h``u32 *secid``h]j.)}(hj"+h]h u32 *secid}(hj$+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj +ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhj+ubjD)}(hhh]j)}(hsecidh]hsecid}(hj;+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7+hMEhj8+ubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hj7+hMEhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubj)}(h**Description**h]j)}(hj]+h]h Description}(hj_+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhj*ubj)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hjs+hhhNhNubj)}(h**skb**h]hskb}(hj{+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs+ubh" and return the security label in }(hjs+hhhNhNubj)}(h **secid**h]hsecid}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs+ubh.}(hjs+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMGhj*ubj)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhj*ubj)}(h/Return 0 if all xfrms used have the same secid.h]h/Return 0 if all xfrms used have the same secid.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMIhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_key_alloc (C function)c.security_key_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(hVint security_key_alloc (struct key *key, const struct cred *cred, unsigned long flags)h]h)}(hUint security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags)h](h)}(hinth]hint}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM\ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hM\ubj)}(hsecurity_key_alloch]j)}(hsecurity_key_alloch]hsecurity_key_alloc}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ,ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+hhhj+hM\ubj/)}(h?(struct key *key, const struct cred *cred, unsigned long flags)h](j5)}(hstruct key *keyh](j;)}(hj>h]hstruct}(hj*,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&,ubh)}(h h]h }(hj7,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&,ubh)}(hhh]j)}(hkeyh]hkey}(hjH,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjE,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJ,modnameN classnameNjwjz)}j}]j)}jsj,sbc.security_key_allocasbuh1hhj&,ubh)}(h h]h }(hjh,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&,ubj)}(hjh]h*}(hjv,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&,ubj)}(hkeyh]hkey}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj",ubj5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj;)}(hj>h]hstruct}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(hcredh]hcred}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]jd,c.security_key_allocasbuh1hhj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hcredh]hcred}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj",ubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hj'-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#-ubh)}(h h]h }(hj5-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#-ubh)}(hlongh]hlong}(hjC-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#-ubh)}(h h]h }(hjQ-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#-ubj)}(hflagsh]hflags}(hj_-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj",ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+hhhj+hM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhj+hM\ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hM\hj+hhubj)}(hhh]j)}(h-Allocate and initialize a kernel key LSM blobh]h-Allocate and initialize a kernel key LSM blob}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM\hj-hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-jj-jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hj-ubj)}(hhh](j")}(h``struct key *key`` key h](j()}(h``struct key *key``h]j.)}(hj-h]hstruct key *key}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hj-ubjD)}(hhh]j)}(hkeyh]hkey}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hM]hj-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj-hM]hj-ubj")}(h(``const struct cred *cred`` credentials h](j()}(h``const struct cred *cred``h]j.)}(hj.h]hconst struct cred *cred}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM^hj-ubjD)}(hhh]j)}(h credentialsh]h credentials}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hM^hj.ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj.hM^hj-ubj")}(h)``unsigned long flags`` allocation flags h](j()}(h``unsigned long flags``h]j.)}(hj<.h]hunsigned long flags}(hj>.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:.ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_hj6.ubjD)}(hhh]j)}(hallocation flagsh]hallocation flags}(hjU.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ.hM_hjR.ubah}(h]h ]h"]h$]h&]uh1jChj6.ubeh}(h]h ]h"]h$]h&]uh1j!hjQ.hM_hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj)}(h**Description**h]j)}(hjw.h]h Description}(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:287: ./security/security.chMahj-ubj)}(hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.h]hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahj-ubj)}(h **Return**h]j)}(hj.h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj-ubj)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_key_free (C function)c.security_key_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h(void security_key_free (struct key *key)h]h)}(h'void security_key_free(struct key *key)h](h)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMtubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj.hMtubj)}(hsecurity_key_freeh]j)}(hsecurity_key_freeh]hsecurity_key_free}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj.hMtubj/)}(h(struct key *key)h]j5)}(hstruct key *keyh](j;)}(hj>h]hstruct}(hj /hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ubh)}(h h]h }(hj-/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(hkeyh]hkey}(hj>/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@/modnameN classnameNjwjz)}j}]j)}jsj/sbc.security_key_freeasbuh1hhj/ubh)}(h h]h }(hj^/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hjl/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hkeyh]hkey}(hjy/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj.hhhj.hMtubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhj.hMtubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hMthj.hhubj)}(hhh]j)}(hFree a kernel key LSM blobh]hFree a kernel key LSM blob}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMtubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhjwhNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.h](j)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMxhj/ubj)}(hhh]j")}(h``struct key *key`` key h](j()}(h``struct key *key``h]j.)}(hj/h]hstruct key *key}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMuhj/ubjD)}(hhh]j)}(hkeyh]hkey}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMuhj/ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hMuhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h**Description**h]j)}(hj0h]h Description}(hj!0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj/ubj)}(h0Notification of destruction; free security data.h]h0Notification of destruction; free security data.}(hj50hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_key_permission (C function)c.security_key_permissionhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hfint security_key_permission (key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h]h)}(heint security_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](h)}(hinth]hint}(hjd0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjs0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`0hhhjr0hMubj)}(hsecurity_key_permissionh]j)}(hsecurity_key_permissionh]hsecurity_key_permission}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`0hhhjr0hMubj/)}(hJ(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](j5)}(hkey_ref_t key_refh](h)}(hhh]j)}(h key_ref_th]h key_ref_t}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j)}jsj0sbc.security_key_permissionasbuh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hkey_refh]hkey_ref}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hconst struct cred *credh](j;)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj;)}(hj>h]hstruct}(hj1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(hcredh]hcred}(hj$1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&1modnameN classnameNjwjz)}j}]j0c.security_key_permissionasbuh1hhj0ubh)}(h h]h }(hjB1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hjP1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hcredh]hcred}(hj]1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(henum key_need_perm need_permh](j;)}(hjh]henum}(hjv1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjr1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr1ubh)}(hhh]j)}(h key_need_permh]h key_need_perm}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j0c.security_key_permissionasbuh1hhjr1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr1ubj)}(h need_permh]h need_perm}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj`0hhhjr0hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\0hhhjr0hMubah}(h]jW0ah ](jjeh"]h$]h&]jj)jhuh1hhjr0hMhjY0hhubj)}(hhh]j)}(h*Check if a kernel key operation is allowedh]h*Check if a kernel key operation is allowed}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjY0hhhjr0hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj 2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubj)}(hhh](j")}(h$``key_ref_t key_ref`` key reference h](j()}(h``key_ref_t key_ref``h]j.)}(hj+2h]hkey_ref_t key_ref}(hj-2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj%2ubjD)}(hhh]j)}(h key referenceh]h key reference}(hjD2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@2hMhjA2ubah}(h]h ]h"]h$]h&]uh1jChj%2ubeh}(h]h ]h"]h$]h&]uh1j!hj@2hMhj"2ubj")}(hC``const struct cred *cred`` credentials of actor requesting access h](j()}(h``const struct cred *cred``h]j.)}(hjd2h]hconst struct cred *cred}(hjf2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjb2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^2ubjD)}(hhh]j)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2hMhjz2ubah}(h]h ]h"]h$]h&]uh1jChj^2ubeh}(h]h ]h"]h$]h&]uh1j!hjy2hMhj"2ubj")}(h7``enum key_need_perm need_perm`` requested permissions h](j()}(h ``enum key_need_perm need_perm``h]j.)}(hj2h]henum key_need_perm need_perm}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubjD)}(hhh]j)}(hrequested permissionsh]hrequested permissions}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhj"2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubj)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubj)}(h **Return**h]j)}(hj2h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubj)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]h)}(hh]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}3ubh)}(hhh]j)}(hkeyh]hkey}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsjg3sbc.security_key_getsecurityasbuh1hhj}3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}3ubj)}(hkeyh]hkey}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjy3ubj5)}(h char **bufferh](h)}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hbufferh]hbuffer}(hj)4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjy3ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@3hhhjR3hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj<3hhhjR3hMubah}(h]j73ah ](jjeh"]h$]h&]jj)jhuh1hhjR3hMhj93hhubj)}(hhh]j)}(hGet the key's security labelh]hGet the key’s security label}(hjS4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjP4hhubah}(h]h ]h"]h$]h&]uh1jhj93hhhjR3hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjk4jjk4jjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct key *key`` key ``char **buffer`` security label buffer **Description** Get a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it. **Return** Returns the length of **buffer** (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h](j)}(h**Parameters**h]j)}(hju4h]h Parameters}(hjw4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjo4ubj)}(hhh](j")}(h``struct key *key`` key h](j()}(h``struct key *key``h]j.)}(hj4h]hstruct key *key}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubjD)}(hhh]j)}(hkeyh]hkey}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhj4ubj")}(h(``char **buffer`` security label buffer h](j()}(h``char **buffer``h]j.)}(hj4h]h char **buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj4ubjD)}(hhh]j)}(hsecurity label bufferh]hsecurity label buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhjo4ubj)}(h**Description**h]j)}(hj5h]h Description}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjo4ubj)}(hGet a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it.h]hGet a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjo4ubj)}(h **Return**h]j)}(hj/5h]hReturn}(hj15hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjo4ubj)}(hhh]j")}(hReturns the length of **buffer** (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h](j()}(hFReturns the length of **buffer** (including terminating NUL) or -ve ifh](hReturns the length of }(hjL5hhhNhNubj)}(h **buffer**h]hbuffer}(hjT5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL5ubh& (including terminating NUL) or -ve if}(hjL5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjH5ubjD)}(hhh]j)}(hran error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h]hran error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.}(hjp5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl5hMhjm5ubah}(h]h ]h"]h$]h&]uh1jChjH5ubeh}(h]h ]h"]h$]h&]uh1j!hjl5hMhjE5ubah}(h]h ]h"]h$]h&]uh1jhjo4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hvoid security_key_post_create_or_update (struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h]h)}(hvoid security_key_post_create_or_update(struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h](h)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5hhhj5hMubj)}(h"security_key_post_create_or_updateh]j)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj5hhhj5hMubj/)}(hq(struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h](j5)}(hstruct key *keyringh](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hkeyh]hkey}(hj 6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj 6modnameN classnameNjwjz)}j}]j)}jsj5sb$c.security_key_post_create_or_updateasbuh1hhj5ubh)}(h h]h }(hj+6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hj96hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hkeyringh]hkeyring}(hjF6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hstruct key *keyh](j;)}(hj>h]hstruct}(hj_6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[6ubh)}(h h]h }(hjl6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[6ubh)}(hhh]j)}(hkeyh]hkey}(hj}6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz6ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj6modnameN classnameNjwjz)}j}]j'6$c.security_key_post_create_or_updateasbuh1hhj[6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[6ubj)}(hkeyh]hkey}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hconst void *payloadh](j;)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hpayloadh]hpayload}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hsize_t payload_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj/7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj17modnameN classnameNjwjz)}j}]j'6$c.security_key_post_create_or_updateasbuh1hhj(7ubh)}(h h]h }(hjM7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(7ubj)}(h payload_lenh]h payload_len}(hj[7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjt7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp7ubh)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp7ubj)}(hflagsh]hflags}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjp7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubj5)}(h bool createh](h)}(hjoh]hbool}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hcreateh]hcreate}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj5hhhj5hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhj5hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhj5hhubj)}(hhh]j)}(h$Notification of key create or updateh]h$Notification of key create or update}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"8jj"8jjjuh1hhhhjwhNhNubj)}(hX**Parameters** ``struct key *keyring`` keyring to which the key is linked to ``struct key *key`` created or updated key ``const void *payload`` data used to instantiate or update the key ``size_t payload_len`` length of payload ``unsigned long flags`` key flags ``bool create`` flag indicating whether the key was created or updated **Description** Notify the caller of a key creation or update.h](j)}(h**Parameters**h]j)}(hj,8h]h Parameters}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&8ubj)}(hhh](j")}(h>``struct key *keyring`` keyring to which the key is linked to h](j()}(h``struct key *keyring``h]j.)}(hjK8h]hstruct key *keyring}(hjM8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjI8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE8ubjD)}(hhh]j)}(h%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hjd8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`8hMhja8ubah}(h]h ]h"]h$]h&]uh1jChjE8ubeh}(h]h ]h"]h$]h&]uh1j!hj`8hMhjB8ubj")}(h+``struct key *key`` created or updated key h](j()}(h``struct key *key``h]j.)}(hj8h]hstruct key *key}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj~8ubjD)}(hhh]j)}(hcreated or updated keyh]hcreated or updated key}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jChj~8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhjB8ubj")}(hC``const void *payload`` data used to instantiate or update the key h](j()}(h``const void *payload``h]j.)}(hj8h]hconst void *payload}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8ubjD)}(hhh]j)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj8hMhjB8ubj")}(h)``size_t payload_len`` length of payload h](j()}(h``size_t payload_len``h]j.)}(hj8h]hsize_t payload_len}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj8ubjD)}(hhh]j)}(hlength of payloadh]hlength of payload}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9hMhj 9ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj 9hMhjB8ubj")}(h"``unsigned long flags`` key flags h](j()}(h``unsigned long flags``h]j.)}(hj/9h]hunsigned long flags}(hj19hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj)9ubjD)}(hhh]j)}(h key flagsh]h key flags}(hjH9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD9hMhjE9ubah}(h]h ]h"]h$]h&]uh1jChj)9ubeh}(h]h ]h"]h$]h&]uh1j!hjD9hMhjB8ubj")}(hG``bool create`` flag indicating whether the key was created or updated h](j()}(h``bool create``h]j.)}(hjh9h]h bool create}(hjj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjf9ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjb9ubjD)}(hhh]j)}(h6flag indicating whether the key was created or updatedh]h6flag indicating whether the key was created or updated}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}9hMhj~9ubah}(h]h ]h"]h$]h&]uh1jChjb9ubeh}(h]h ]h"]h$]h&]uh1j!hj}9hMhjB8ubeh}(h]h ]h"]h$]h&]uh1jhj&8ubj)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&8ubj)}(h.Notify the caller of a key creation or update.h]h.Notify the caller of a key creation or update.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhjwhhhNhNubh)}(hhh](h)}(hZint security_audit_rule_init (u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h]h)}(hYint security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](h)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhj9hMubj)}(hsecurity_audit_rule_inith]j)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hj :hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhj9hMubj/)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j5)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hj(:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%:ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*:modnameN classnameNjwjz)}j}]j)}jsj :sbc.security_audit_rule_initasbuh1hhj!:ubh)}(h h]h }(hjH:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!:ubj)}(hfieldh]hfield}(hjV:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hjr:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjo:ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjt:modnameN classnameNjwjz)}j}]jD:c.security_audit_rule_initasbuh1hhjk:ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk:ubj)}(hoph]hop}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(h char *rulestrh](h)}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hrulestrh]hrulestr}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(hvoid **lsmruleh](h)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hj";hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hlsmruleh]hlsmrule}(hj/;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjK;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjM;modnameN classnameNjwjz)}j}]jD:c.security_audit_rule_initasbuh1hhjD;ubh)}(h h]h }(hji;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD;ubj)}(hgfph]hgfp}(hjw;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhj9hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhj9hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj9hhubj)}(hhh]j)}(h*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubj)}(hhh](j")}(h``u32 field`` audit action h](j()}(h ``u32 field``h]j.)}(hj;h]h u32 field}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubjD)}(hhh]j)}(h audit actionh]h audit action}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhj;ubj")}(h``u32 op`` rule operator h](j()}(h ``u32 op``h]j.)}(hj<h]hu32 op}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj<ubjD)}(hhh]j)}(h rule operatorh]h rule operator}(hj4<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0<hMhj1<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj0<hMhj;ubj")}(h``char *rulestr`` rule context h](j()}(h``char *rulestr``h]j.)}(hjT<h]h char *rulestr}(hjV<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjR<ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjN<ubjD)}(hhh]j)}(h rule contexth]h rule context}(hjm<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji<hMhjj<ubah}(h]h ]h"]h$]h&]uh1jChjN<ubeh}(h]h ]h"]h$]h&]uh1j!hji<hMhj;ubj")}(h8``void **lsmrule`` receive buffer for audit rule struct h](j()}(h``void **lsmrule``h]j.)}(hj<h]hvoid **lsmrule}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj<ubjD)}(hhh]j)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMhj;ubj")}(h(``gfp_t gfp`` GFP flag used for kmalloc h](j()}(h ``gfp_t gfp``h]j.)}(hj<h]h gfp_t gfp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj<ubjD)}(hhh]j)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hMhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubj)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubj)}(h4Allocate and initialize an LSM audit rule structure.h]h4Allocate and initialize an LSM audit rule structure.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubj)}(h **Return**h]j)}(hj(=h]hReturn}(hj*=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj;ubj)}(hhh]j")}(hVReturn 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](j()}(hEReturn 0 if **lsmrule** has been successfully set, -EINVAL in case ofh](h Return 0 if }(hjE=hhhNhNubj)}(h **lsmrule**h]hlsmrule}(hjM=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE=ubh. has been successfully set, -EINVAL in case of}(hjE=hhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjA=ubjD)}(hhh]j)}(han invalid rule.h]han invalid rule.}(hji=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf=ubah}(h]h ]h"]h$]h&]uh1jChjA=ubeh}(h]h ]h"]h$]h&]uh1j!hje=hMhj>=ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h9int security_audit_rule_known (struct audit_krule *krule)h]h)}(h8int security_audit_rule_known(struct audit_krule *krule)h](h)}(hinth]hint}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhj=hMubj)}(hsecurity_audit_rule_knownh]j)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhhj=hMubj/)}(h(struct audit_krule *krule)h]j5)}(hstruct audit_krule *kruleh](j;)}(hj>h]hstruct}(hj=hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(h audit_kruleh]h audit_krule}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]j)}jsj=sbc.security_audit_rule_knownasbuh1hhj=ubh)}(h h]h }(hj%>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hj3>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hkruleh]hkrule}(hj@>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj=ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj=hhhj=hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhj=hMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhj=hhubj)}(hhh]j)}(h*Check if an audit rule contains LSM fieldsh]h*Check if an audit rule contains LSM fields}(hjj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjg>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(hhh]j")}(h)``struct audit_krule *krule`` audit rule h](j()}(h``struct audit_krule *krule``h]j.)}(hj>h]hstruct audit_krule *krule}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubjD)}(hhh]j)}(h audit ruleh]h audit rule}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubj)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hj>hhhNhNubj)}(h **krule**h]hkrule}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh0 contains any fields related to the current LSM.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(h **Return**h]j)}(hj?h]hReturn}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubj)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hj5?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-void security_audit_rule_free (void *lsmrule)h]h)}(h,void security_audit_rule_free(void *lsmrule)h](h)}(hvoidh]hvoid}(hjd?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjs?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`?hhhjr?hMubj)}(hsecurity_audit_rule_freeh]j)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`?hhhjr?hMubj/)}(h(void *lsmrule)h]j5)}(h void *lsmruleh](h)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hlsmruleh]hlsmrule}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj`?hhhjr?hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj\?hhhjr?hMubah}(h]jW?ah ](jjeh"]h$]h&]jj)jhuh1hhjr?hMhjY?hhubj)}(hhh]j)}(hFree an LSM audit rule structh]hFree an LSM audit rule struct}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjY?hhhjr?hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj @jj @jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``void *lsmrule`` audit rule struct **Description** Deallocate the LSM audit rule structure previously allocated by audit_rule_init().h](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj@ubj)}(hhh]j")}(h$``void *lsmrule`` audit rule struct h](j()}(h``void *lsmrule``h]j.)}(hj5@h]h void *lsmrule}(hj7@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3@ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj/@ubjD)}(hhh]j)}(haudit rule structh]haudit rule struct}(hjN@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ@hMhjK@ubah}(h]h ]h"]h$]h&]uh1jChj/@ubeh}(h]h ]h"]h$]h&]uh1j!hjJ@hMhj,@ubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h**Description**h]j)}(hjp@h]h Description}(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:287: ./security/security.chMhj@ubj)}(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().}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hWint security_audit_rule_match (struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h]h)}(hVint security_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](h)}(hinth]hint}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj@hMubj)}(hsecurity_audit_rule_matchh]j)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhj@hMubj/)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j5)}(hstruct lsm_prop *proph](j;)}(hj>h]hstruct}(hj@hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsj@sbc.security_audit_rule_matchasbuh1hhj@ubh)}(h h]h }(hj0AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hj>AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hproph]hprop}(hjKAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hjgAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjiAmodnameN classnameNjwjz)}j}]j,Ac.security_audit_rule_matchasbuh1hhj`Aubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`Aubj)}(hfieldh]hfield}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`Aubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j,Ac.security_audit_rule_matchasbuh1hhjAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hoph]hop}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubj5)}(h void *lsmruleh](h)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hlsmruleh]hlsmrule}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@hhhj@hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhj@hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj@hhubj)}(hhh]j)}(h&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hjGBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjDBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_Bjj_Bjjjuh1hhhhjwhNhNubj)}(hXl**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](j)}(h**Parameters**h]j)}(hjiBh]h Parameters}(hjkBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjcBubj)}(hhh](j")}(h)``struct lsm_prop *prop`` security label h](j()}(h``struct lsm_prop *prop``h]j.)}(hjBh]hstruct lsm_prop *prop}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjBubjD)}(hhh]j)}(hsecurity labelh]hsecurity label}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhjBubj")}(h``u32 field`` LSM audit field h](j()}(h ``u32 field``h]j.)}(hjBh]h u32 field}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjBubjD)}(hhh]j)}(hLSM audit fieldh]hLSM audit field}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjBhMhjBubj")}(h``u32 op`` matching operator h](j()}(h ``u32 op``h]j.)}(hjBh]hu32 op}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjBubjD)}(hhh]j)}(hmatching operatorh]hmatching operator}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjCubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjBubj")}(h``void *lsmrule`` audit rule h](j()}(h``void *lsmrule``h]j.)}(hj3Ch]h void *lsmrule}(hj5ChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1Cubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj-CubjD)}(hhh]j)}(h audit ruleh]h audit rule}(hjLChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHChMhjICubah}(h]h ]h"]h$]h&]uh1jChj-Cubeh}(h]h ]h"]h$]h&]uh1j!hjHChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjcBubj)}(h**Description**h]j)}(hjnCh]h Description}(hjpChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjcBubj)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjChhhNhNubj)}(h **secid**h]hsecid}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhC matches a rule previously approved by security_audit_rule_known().}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjcBubj)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjcBubj)}(hhh]j")}(hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h](j()}(h@Returns 1 if secid matches the rule, 0 if it does not, -ERRNO onh]h@Returns 1 if secid matches the rule, 0 if it does not, -ERRNO on}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubjD)}(hhh]j)}(hfailure.h]hfailure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjcBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf (C function)c.security_bpfhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hPint security_bpf (int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h]h)}(hOint security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](h)}(hinth]hint}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj&DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhj%DhMubj)}(h security_bpfh]j)}(h security_bpfh]h security_bpf}(hj8DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Dubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhj%DhMubj/)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j5)}(hint cmdh](h)}(hinth]hint}(hjTDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPDubh)}(h h]h }(hjbDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPDubj)}(hcmdh]hcmd}(hjpDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLDubj5)}(hunion bpf_attr *attrh](j;)}(hunionh]hunion}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjDmodnameN classnameNjwjz)}j}]j)}jsj:Dsbc.security_bpfasbuh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hattrh]hattr}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLDubj5)}(hunsigned int sizeh](h)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hj EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hinth]hint}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hj&EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hsizeh]hsize}(hj4EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLDubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjMEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIEubh)}(h h]h }(hjZEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIEubj)}(hkernelh]hkernel}(hjhEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIEubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLDubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhj%DhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhj%DhMubah}(h]j Dah ](jjeh"]h$]h&]jj)jhuh1hhj%DhMhj Dhhubj)}(hhh]j)}(h-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhj Dhhhj%DhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(hhh](j")}(h``int cmd`` command h](j()}(h ``int cmd``h]j.)}(hjEh]hint cmd}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubjD)}(hhh]j)}(hcommandh]hcommand}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhjEubj")}(h'``union bpf_attr *attr`` bpf attribute h](j()}(h``union bpf_attr *attr``h]j.)}(hj Fh]hunion bpf_attr *attr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Fubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjFubjD)}(hhh]j)}(h bpf attributeh]h bpf attribute}(hj%FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!FhMhj"Fubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hj!FhMhjEubj")}(h``unsigned int size`` size h](j()}(h``unsigned int size``h]j.)}(hjEFh]hunsigned int size}(hjGFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCFubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj?FubjD)}(hhh]j)}(hsizeh]hsize}(hj^FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZFhMhj[Fubah}(h]h ]h"]h$]h&]uh1jChj?Fubeh}(h]h ]h"]h$]h&]uh1j!hjZFhMhjEubj")}(h;``bool kernel`` whether or not call originated from kernel h](j()}(h``bool kernel``h]j.)}(hj~Fh]h bool kernel}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|Fubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjxFubjD)}(hhh]j)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jChjxFubeh}(h]h ]h"]h$]h&]uh1j!hjFhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(h **Return**h]j)}(hjFh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhjwhhhNhNubh)}(hhh](h)}(h9int security_bpf_map (struct bpf_map *map, fmode_t fmode)h]h)}(h8int security_bpf_map(struct bpf_map *map, fmode_t fmode)h](h)}(hinth]hint}(hj%GhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!GhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hj4GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!Ghhhj3GhM ubj)}(hsecurity_bpf_maph]j)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjFGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBGubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!Ghhhj3GhM ubj/)}(h$(struct bpf_map *map, fmode_t fmode)h](j5)}(hstruct bpf_map *maph](j;)}(hj>h]hstruct}(hjbGhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^Gubh)}(h h]h }(hjoGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^Gubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Gubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGmodnameN classnameNjwjz)}j}]j)}jsjHGsbc.security_bpf_mapasbuh1hhj^Gubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^Gubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Gubj)}(hmaph]hmap}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^Gubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZGubj5)}(h fmode_t fmodeh](h)}(hhh]j)}(hfmode_th]hfmode_t}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGmodnameN classnameNjwjz)}j}]jGc.security_bpf_mapasbuh1hhjGubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hfmodeh]hfmode}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZGubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!Ghhhj3GhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhj3GhM ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhj3GhM hjGhhubj)}(hhh]j)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hj-HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj*Hhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj3GhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEHjjEHjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjOHh]h Parameters}(hjQHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIHubj)}(hhh](j")}(h ``struct bpf_map *map`` bpf map h](j()}(h``struct bpf_map *map``h]j.)}(hjnHh]hstruct bpf_map *map}(hjpHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hjhHubjD)}(hhh]j)}(hbpf maph]hbpf map}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhM hjHubah}(h]h ]h"]h$]h&]uh1jChjhHubeh}(h]h ]h"]h$]h&]uh1j!hjHhM hjeHubj")}(h``fmode_t fmode`` mode h](j()}(h``fmode_t fmode``h]j.)}(hjHh]h fmode_t fmode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjHubjD)}(hhh]j)}(hmodeh]hmode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjHhMhjeHubeh}(h]h ]h"]h$]h&]uh1jhjIHubj)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIHubj)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIHubj)}(h **Return**h]j)}(hj Ih]hReturn}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIHubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhjwhhhNhNubh)}(hhh](h)}(h-int security_bpf_prog (struct bpf_prog *prog)h]h)}(h,int security_bpf_prog(struct bpf_prog *prog)h](h)}(hinth]hint}(hjNIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj]IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJIhhhj\IhMubj)}(hsecurity_bpf_progh]j)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjoIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkIubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJIhhhj\IhMubj/)}(h(struct bpf_prog *prog)h]j5)}(hstruct bpf_prog *progh](j;)}(hj>h]hstruct}(hjIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsjqIsbc.security_bpf_progasbuh1hhjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hprogh]hprog}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubah}(h]h ]h"]h$]h&]j,j-uh1j.hjJIhhhj\IhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjFIhhhj\IhMubah}(h]jAIah ](jjeh"]h$]h&]jj)jhuh1hhj\IhMhjCIhhubj)}(hhh]j)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj Jhhubah}(h]h ]h"]h$]h&]uh1jhjCIhhhj\IhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj&Jjj&Jjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj0Jh]h Parameters}(hj2JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj*Jubj)}(hhh]j")}(h&``struct bpf_prog *prog`` bpf program h](j()}(h``struct bpf_prog *prog``h]j.)}(hjOJh]hstruct bpf_prog *prog}(hjQJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMJubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjIJubjD)}(hhh]j)}(h bpf programh]h bpf program}(hjhJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdJhMhjeJubah}(h]h ]h"]h$]h&]uh1jChjIJubeh}(h]h ]h"]h$]h&]uh1j!hjdJhMhjFJubah}(h]h ]h"]h$]h&]uh1jhj*Jubj)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj*Jubj)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj*Jubj)}(h **Return**h]j)}(hjJh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM!hj*Jubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM!hj*Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hmint security_bpf_map_create (struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]h)}(hlint security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhhhjKhM)ubj)}(hsecurity_bpf_map_createh]j)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjJhhhjKhM)ubj/)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j5)}(hstruct bpf_map *maph](j;)}(hj>h]hstruct}(hj3KhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/Kubh)}(h h]h }(hj@KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/Kubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjQKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSKmodnameN classnameNjwjz)}j}]j)}jsjKsbc.security_bpf_map_createasbuh1hhj/Kubh)}(h h]h }(hjqKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Kubj)}(hmaph]hmap}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/Kubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+Kubj5)}(hunion bpf_attr *attrh](j;)}(hjDh]hunion}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jmKc.security_bpf_map_createasbuh1hhjKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hattrh]hattr}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+Kubj5)}(hstruct bpf_token *tokenh](j;)}(hj>h]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLubh)}(h h]h }(hj"LhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hj3LhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0Lubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5LmodnameN classnameNjwjz)}j}]jmKc.security_bpf_map_createasbuh1hhjLubh)}(h h]h }(hjQLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hj_LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(htokenh]htoken}(hjlLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+Kubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hkernelh]hkernel}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+Kubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjJhhhjKhM)ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjJhhhjKhM)ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjKhM)hjJhhubj)}(hhh]j)}(h$Check if BPF map creation is allowedh]h$Check if BPF map creation is allowed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjKhM)ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjLjjLjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjLubj)}(hhh](j")}(h'``struct bpf_map *map`` BPF map object h](j()}(h``struct bpf_map *map``h]j.)}(hj Mh]hstruct bpf_map *map}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Mubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjMubjD)}(hhh]j)}(hBPF map objecth]hBPF map object}(hj$MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj MhM*hj!Mubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hj MhM*hjMubj")}(hG``union bpf_attr *attr`` BPF syscall attributes used to create BPF map h](j()}(h``union bpf_attr *attr``h]j.)}(hjDMh]hunion bpf_attr *attr}(hjFMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBMubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM+hj>MubjD)}(hhh]j)}(h-BPF syscall attributes used to create BPF maph]h-BPF syscall attributes used to create BPF map}(hj]MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYMhM+hjZMubah}(h]h ]h"]h$]h&]uh1jChj>Mubeh}(h]h ]h"]h$]h&]uh1j!hjYMhM+hjMubj")}(h@``struct bpf_token *token`` BPF token used to grant user access h](j()}(h``struct bpf_token *token``h]j.)}(hj}Mh]hstruct bpf_token *token}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{Mubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM,hjwMubjD)}(hhh]j)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhM,hjMubah}(h]h ]h"]h$]h&]uh1jChjwMubeh}(h]h ]h"]h$]h&]uh1j!hjMhM,hjMubj")}(h;``bool kernel`` whether or not call originated from kernel h](j()}(h``bool kernel``h]j.)}(hjMh]h bool kernel}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM-hjMubjD)}(hhh]j)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhM-hjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhM-hjMubeh}(h]h ]h"]h$]h&]uh1jhjLubj)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjLubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM/hjLubj)}(h **Return**h]j)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjLubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj.NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hnint security_bpf_prog_load (struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]h)}(hmint security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](h)}(hinth]hint}(hj]NhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;ubh)}(h h]h }(hjlNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYNhhhjkNhM;ubj)}(hsecurity_bpf_prog_loadh]j)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hj~NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzNubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYNhhhjkNhM;ubj/)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j5)}(hstruct bpf_prog *progh](j;)}(hj>h]hstruct}(hjNhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjNsbc.security_bpf_prog_loadasbuh1hhjNubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hprogh]hprog}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hunion bpf_attr *attrh](j;)}(hjDh]hunion}(hj OhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hj*OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'Oubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,OmodnameN classnameNjwjz)}j}]jNc.security_bpf_prog_loadasbuh1hhjOubh)}(h h]h }(hjHOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjVOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hattrh]hattr}(hjcOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hstruct bpf_token *tokenh](j;)}(hj>h]hstruct}(hj|OhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxOubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjOmodnameN classnameNjwjz)}j}]jNc.security_bpf_prog_loadasbuh1hhjxOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxOubj)}(htokenh]htoken}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(h bool kernelh](h)}(hjoh]hbool}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hkernelh]hkernel}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjYNhhhjkNhM;ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUNhhhjkNhM;ubah}(h]jPNah ](jjeh"]h$]h&]jj)jhuh1hhjkNhM;hjRNhhubj)}(hhh]j)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hj1PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM;hj.Phhubah}(h]h ]h"]h$]h&]uh1jhjRNhhhjkNhM;ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjIPjjIPjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSPh]h Parameters}(hjUPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjMPubj)}(hhh](j")}(h-``struct bpf_prog *prog`` BPF program object h](j()}(h``struct bpf_prog *prog``h]j.)}(hjrPh]hstruct bpf_prog *prog}(hjtPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM<hjlPubjD)}(hhh]j)}(hBPF program objecth]hBPF program object}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM<hjPubah}(h]h ]h"]h$]h&]uh1jChjlPubeh}(h]h ]h"]h$]h&]uh1j!hjPhM<hjiPubj")}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program h](j()}(h``union bpf_attr *attr``h]j.)}(hjPh]hunion bpf_attr *attr}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM=hjPubjD)}(hhh]j)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM=hjPubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjPhM=hjiPubj")}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j()}(h``struct bpf_token *token``h]j.)}(hjPh]hstruct bpf_token *token}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM>hjPubjD)}(hhh]j)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhM>hjPubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjPhM>hjiPubj")}(h;``bool kernel`` whether or not call originated from kernel h](j()}(h``bool kernel``h]j.)}(hjQh]h bool kernel}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjQubjD)}(hhh]j)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hj6QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2QhM?hj3Qubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hj2QhM?hjiPubeh}(h]h ]h"]h$]h&]uh1jhjMPubj)}(h**Description**h]j)}(hjXQh]h Description}(hjZQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjMPubj)}(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.}(hjnQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMAhjMPubj)}(h **Return**h]j)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Qubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjMPubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMEhjMPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hfint security_bpf_token_create (struct bpf_token *token, union bpf_attr *attr, const struct path *path)h]h)}(heint security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](h)}(hinth]hint}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhjQhMNubj)}(hsecurity_bpf_token_createh]j)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQhhhjQhMNubj/)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j5)}(hstruct bpf_token *tokenh](j;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjQubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!RmodnameN classnameNjwjz)}j}]j)}jsjQsbc.security_bpf_token_createasbuh1hhjQubh)}(h h]h }(hj?RhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjMRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(htokenh]htoken}(hjZRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hunion bpf_attr *attrh](j;)}(hjDh]hunion}(hjsRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoRubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]j;Rc.security_bpf_token_createasbuh1hhjoRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoRubj)}(hattrh]hattr}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hconst struct path *pathh](j;)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hj ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(hpathh]hpath}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j;Rc.security_bpf_token_createasbuh1hhjRubh)}(h h]h }(hj:ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjHShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hpathh]hpath}(hjUShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjQhhhjQhMNubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjQhMNubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjQhMNhjQhhubj)}(hhh]j)}(h)Check if creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhj|Shhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMNubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRhjSubj)}(hhh](j")}(h-``struct bpf_token *token`` BPF token object h](j()}(h``struct bpf_token *token``h]j.)}(hjSh]hstruct bpf_token *token}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMOhjSubjD)}(hhh]j)}(hBPF token objecth]hBPF token object}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMOhjSubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjShMOhjSubj")}(hI``union bpf_attr *attr`` BPF syscall attributes used to create BPF token h](j()}(h``union bpf_attr *attr``h]j.)}(hjSh]hunion bpf_attr *attr}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMPhjSubjD)}(hhh]j)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMPhjTubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjThMPhjSubj")}(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.)}(hj2Th]hconst struct path *path}(hj4ThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0Tubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhj,TubjD)}(hhh]j)}(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}(hjKThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGThMQhjHTubah}(h]h ]h"]h$]h&]uh1jChj,Tubeh}(h]h ]h"]h$]h&]uh1j!hjGThMQhjSubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjmTh]h Description}(hjoThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjSubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMShjSubj)}(h **Return**h]j)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjSubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMVhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hLint security_bpf_token_cmd (const struct bpf_token *token, enum bpf_cmd cmd)h]h)}(hKint security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)h](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_ubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThM_ubj)}(hsecurity_bpf_token_cmdh]j)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThM_ubj/)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j5)}(hconst struct bpf_token *tokenh](j;)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hj#UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj;)}(hj>h]hstruct}(hj1UhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hj>UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjOUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjQUmodnameN classnameNjwjz)}j}]j)}jsjTsbc.security_bpf_token_cmdasbuh1hhjUubh)}(h h]h }(hjoUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hj}UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(htokenh]htoken}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(henum bpf_cmd cmdh](j;)}(hjh]henum}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hbpf_cmdh]hbpf_cmd}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]jkUc.security_bpf_token_cmdasbuh1hhjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hcmdh]hcmd}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjThM_ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjThM_ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjThM_hjThhubj)}(hhh]j)}(hGCheck if BPF token is allowed to delegate requested BPF syscall commandh]hGCheck if BPF token is allowed to delegate requested BPF syscall command}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM_hjVhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThM_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/Vjj/Vjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj9Vh]h Parameters}(hj;VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMchj3Vubj)}(hhh](j")}(h3``const struct bpf_token *token`` BPF token object h](j()}(h!``const struct bpf_token *token``h]j.)}(hjXVh]hconst struct bpf_token *token}(hjZVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahjRVubjD)}(hhh]j)}(hBPF token objecth]hBPF token object}(hjqVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmVhMahjnVubah}(h]h ]h"]h$]h&]uh1jChjRVubeh}(h]h ]h"]h$]h&]uh1j!hjmVhMahjOVubj")}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j()}(h``enum bpf_cmd cmd``h]j.)}(hjVh]henum bpf_cmd cmd}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMbhjVubjD)}(hhh]j)}(h:BPF syscall command requested to be delegated by BPF tokenh]h:BPF syscall command requested to be delegated by BPF token}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMbhjVubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjVhMbhjOVubeh}(h]h ]h"]h$]h&]uh1jhj3Vubj)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj3Vubj)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMdhj3Vubj)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghj3Vubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMghj3Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hGint security_bpf_token_capable (const struct bpf_token *token, int cap)h]h)}(hFint security_bpf_token_capable(const struct bpf_token *token, int cap)h](h)}(hinth]hint}(hj8WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4WhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMoubh)}(h h]h }(hjGWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4WhhhjFWhMoubj)}(hsecurity_bpf_token_capableh]j)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hjYWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4WhhhjFWhMoubj/)}(h((const struct bpf_token *token, int cap)h](j5)}(hconst struct bpf_token *tokenh](j;)}(hjh]hconst}(hjuWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqWubj;)}(hj>h]hstruct}(hjWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqWubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsj[Wsbc.security_bpf_token_capableasbuh1hhjqWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqWubj)}(htokenh]htoken}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmWubj5)}(hint caph](h)}(hinth]hint}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hcaph]hcap}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmWubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4WhhhjFWhMoubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0WhhhjFWhMoubah}(h]j+Wah ](jjeh"]h$]h&]jj)jhuh1hhjFWhMohj-Whhubj)}(hhh]j)}(hJCheck if BPF token is allowed to delegate requested BPF-related capabilityh]hJCheck if BPF token is allowed to delegate requested BPF-related capability}(hjHXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMohjEXhhubah}(h]h ]h"]h$]h&]uh1jhj-WhhhjFWhMoubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`Xjj`Xjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjjXh]h Parameters}(hjlXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMshjdXubj)}(hhh](j")}(h3``const struct bpf_token *token`` BPF token object h](j()}(h!``const struct bpf_token *token``h]j.)}(hjXh]hconst struct bpf_token *token}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMqhjXubjD)}(hhh]j)}(hBPF token objecth]hBPF token object}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMqhjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhMqhjXubj")}(h@``int cap`` capabilities requested to be delegated by BPF token h](j()}(h ``int cap``h]j.)}(hjXh]hint cap}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMrhjXubjD)}(hhh]j)}(h3capabilities requested to be delegated by BPF tokenh]h3capabilities requested to be delegated by BPF token}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMrhjXubah}(h]h ]h"]h$]h&]uh1jChjXubeh}(h]h ]h"]h$]h&]uh1j!hjXhMrhjXubeh}(h]h ]h"]h$]h&]uh1jhjdXubj)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjdXubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMthjdXubj)}(h **Return**h]j)}(hj$Yh]hReturn}(hj&YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Yubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjdXubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj:YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhjdXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h0void security_bpf_map_free (struct bpf_map *map)h]h)}(h/void security_bpf_map_free(struct bpf_map *map)h](h)}(hvoidh]hvoid}(hjiYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjxYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeYhhhjwYhMubj)}(hsecurity_bpf_map_freeh]j)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjeYhhhjwYhMubj/)}(h(struct bpf_map *map)h]j5)}(hstruct bpf_map *maph](j;)}(hj>h]hstruct}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]j)}jsjYsbc.security_bpf_map_freeasbuh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hmaph]hmap}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubah}(h]h ]h"]h$]h&]j,j-uh1j.hjeYhhhjwYhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjaYhhhjwYhMubah}(h]j\Yah ](jjeh"]h$]h&]jj)jhuh1hhjwYhMhj^Yhhubj)}(hhh]j)}(hFree a bpf map's LSM blobh]hFree a bpf map’s LSM blob}(hj)ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj&Zhhubah}(h]h ]h"]h$]h&]uh1jhj^YhhhjwYhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAZjjAZjjjuh1hhhhjwhNhNubj)}(h|**Parameters** ``struct bpf_map *map`` bpf map **Description** Clean up the security information stored inside bpf map.h](j)}(h**Parameters**h]j)}(hjKZh]h Parameters}(hjMZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEZubj)}(hhh]j")}(h ``struct bpf_map *map`` bpf map h](j()}(h``struct bpf_map *map``h]j.)}(hjjZh]hstruct bpf_map *map}(hjlZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhZubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjdZubjD)}(hhh]j)}(hbpf maph]hbpf map}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jChjdZubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhjaZubah}(h]h ]h"]h$]h&]uh1jhjEZubj)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEZubj)}(h8Clean up the security information stored inside bpf map.h]h8Clean up the security information stored inside bpf map.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjEZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h3void security_bpf_prog_free (struct bpf_prog *prog)h]h)}(h2void security_bpf_prog_free(struct bpf_prog *prog)h](h)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhMubj)}(hsecurity_bpf_prog_freeh]j)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hj [hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjZhMubj/)}(h(struct bpf_prog *prog)h]j5)}(hstruct bpf_prog *progh](j;)}(hj>h]hstruct}(hj'[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj#[ubh)}(h h]h }(hj4[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#[ubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjE[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjB[ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjG[modnameN classnameNjwjz)}j}]j)}jsj [sbc.security_bpf_prog_freeasbuh1hhj#[ubh)}(h h]h }(hje[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#[ubj)}(hjh]h*}(hjs[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#[ubj)}(hprogh]hprog}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjZhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZhhhjZhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjZhhubj)}(hhh]j)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` BPF program struct **Description** Clean up the security information stored inside BPF program.h](j)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj[ubj)}(hhh]j")}(h-``struct bpf_prog *prog`` BPF program struct h](j()}(h``struct bpf_prog *prog``h]j.)}(hj[h]hstruct bpf_prog *prog}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj[ubjD)}(hhh]j)}(hBPF program structh]hBPF program struct}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hj\hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubj)}(h**Description**h]j)}(hj&\h]h Description}(hj(\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj[ubj)}(hh]hstruct}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj\modnameN classnameNjwjz)}j}]j)}jsj\sbc.security_bpf_token_freeasbuh1hhj\ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(htokenh]htoken}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjg\hhhjy\hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjc\hhhjy\hMubah}(h]j^\ah ](jjeh"]h$]h&]jj)jhuh1hhjy\hMhj`\hhubj)}(hhh]j)}(hFree a BPF token's LSM blobh]hFree a BPF token’s LSM blob}(hj+]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj(]hhubah}(h]h ]h"]h$]h&]uh1jhj`\hhhjy\hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjC]jjC]jjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct bpf_token *token`` BPF token struct **Description** Clean up the security information stored inside BPF token.h](j)}(h**Parameters**h]j)}(hjM]h]h Parameters}(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:287: ./security/security.chMhjG]ubj)}(hhh]j")}(h-``struct bpf_token *token`` BPF token struct h](j()}(h``struct bpf_token *token``h]j.)}(hjl]h]hstruct bpf_token *token}(hjn]hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjj]ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjf]ubjD)}(hhh]j)}(hBPF token structh]hBPF token struct}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jChjf]ubeh}(h]h ]h"]h$]h&]uh1j!hj]hMhjc]ubah}(h]h ]h"]h$]h&]uh1jhjG]ubj)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjG]ubj)}(h:Clean up the security information stored inside BPF token.h]h:Clean up the security information stored inside BPF token.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjG]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_open (C function)c.security_perf_event_openhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h'int security_perf_event_open (int type)h]h)}(h&int security_perf_event_open(int type)h](h)}(hinth]hint}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhj]hMubj)}(hsecurity_perf_event_openh]j)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hj ^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj]hhhj]hMubj/)}(h (int type)h]j5)}(hint typeh](h)}(hinth]hint}(hj)^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%^ubh)}(h h]h }(hj7^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%^ubj)}(htypeh]htype}(hjE^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj!^ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj]hhhj]hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhj]hMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhj]hMhj]hhubj)}(hhh]j)}(h%Check if a perf event open is allowedh]h%Check if a perf event open is allowed}(hjo^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjl^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubj)}(hhh]j")}(h``int type`` type of event h](j()}(h ``int type``h]j.)}(hj^h]hint type}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubjD)}(hhh]j)}(h type of eventh]h type of event}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubj)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubj)}(hACheck whether the **type** of perf_event_open syscall is allowed.h](hCheck whether the }(hj_hhhNhNubj)}(h**type**h]htype}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh' of perf_event_open syscall is allowed.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubj)}(h **Return**h]j)}(hj$_h]hReturn}(hj&_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj:_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_perf_event_alloc (struct perf_event *event)h]h)}(h7int security_perf_event_alloc(struct perf_event *event)h](h)}(hinth]hint}(hji_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhje_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM ubh)}(h h]h }(hjx_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhje_hhhjw_hM ubj)}(hsecurity_perf_event_alloch]j)}(hsecurity_perf_event_alloch]hsecurity_perf_event_alloc}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hje_hhhjw_hM ubj/)}(h(struct perf_event *event)h]j5)}(hstruct perf_event *eventh](j;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh)}(hhh]j)}(h perf_eventh]h perf_event}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj_modnameN classnameNjwjz)}j}]j)}jsj_sbc.security_perf_event_allocasbuh1hhj_ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(heventh]hevent}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj_ubah}(h]h ]h"]h$]h&]j,j-uh1j.hje_hhhjw_hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhja_hhhjw_hM ubah}(h]j\_ah ](jjeh"]h$]h&]jj)jhuh1hhjw_hM hj^_hhubj)}(hhh]j)}(hAllocate a perf event LSM blobh]hAllocate a perf event LSM blob}(hj)`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM hj&`hhubah}(h]h ]h"]h$]h&]uh1jhj^_hhhjw_hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjA`jjA`jjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjK`h]h Parameters}(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:287: ./security/security.chMhjE`ubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hjj`h]hstruct perf_event *event}(hjl`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjh`ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjd`ubjD)}(hhh]j)}(h perf eventh]h perf event}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jChjd`ubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhja`ubah}(h]h ]h"]h$]h&]uh1jhjE`ubj)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE`ubj)}(h+Allocate and save perf_event security info.h]h+Allocate and save perf_event security info.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE`ubj)}(h **Return**h]j)}(hj`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE`ubj)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjE`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8void security_perf_event_free (struct perf_event *event)h]h)}(h7void security_perf_event_free(struct perf_event *event)h](h)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&ubh)}(h h]h }(hj ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ahhhjahM&ubj)}(hsecurity_perf_event_freeh]j)}(hsecurity_perf_event_freeh]hsecurity_perf_event_free}(hj2ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.aubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj ahhhjahM&ubj/)}(h(struct perf_event *event)h]j5)}(hstruct perf_event *eventh](j;)}(hj>h]hstruct}(hjNahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJaubh)}(h h]h }(hj[ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJaubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjlahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiaubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnamodnameN classnameNjwjz)}j}]j)}jsj4asbc.security_perf_event_freeasbuh1hhjJaubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJaubj)}(heventh]hevent}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFaubah}(h]h ]h"]h$]h&]j,j-uh1j.hj ahhhjahM&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj ahhhjahM&ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahM&hjahhubj)}(hhh]j)}(hFree a perf event LSM blobh]hFree a perf event LSM blob}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM&hjahhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjajjajjjuh1hhhhjwhNhNubj)}(ht**Parameters** ``struct perf_event *event`` perf event **Description** Release (free) perf_event security info.h](j)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM*hjaubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hjbh]hstruct perf_event *event}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM'hj bubjD)}(hhh]j)}(h perf eventh]h perf event}(hj+bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'bhM'hj(bubah}(h]h ]h"]h$]h&]uh1jChj bubeh}(h]h ]h"]h$]h&]uh1j!hj'bhM'hj bubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(h**Description**h]j)}(hjMbh]h Description}(hjObhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjaubj)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hjcbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM)hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h7int security_perf_event_read (struct perf_event *event)h]h)}(h6int security_perf_event_read(struct perf_event *event)h](h)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2ubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjbhM2ubj)}(hsecurity_perf_event_readh]j)}(hsecurity_perf_event_readh]hsecurity_perf_event_read}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjbhhhjbhM2ubj/)}(h(struct perf_event *event)h]j5)}(hstruct perf_event *eventh](j;)}(hj>h]hstruct}(hjbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsjbsbc.security_perf_event_readasbuh1hhjbubh)}(h h]h }(hj chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(heventh]hevent}(hj(chhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjbubah}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjbhM2ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhjbhM2ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhM2hjbhhubj)}(hhh]j)}(h.Check if reading a perf event label is allowedh]h.Check if reading a perf event label is allowed}(hjRchhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM2hjOchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM2ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjcjjjcjjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Read perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjtch]h Parameters}(hjvchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM6hjncubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hjch]hstruct perf_event *event}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM3hjcubjD)}(hhh]j)}(h perf eventh]h perf event}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchM3hjcubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hjchM3hjcubah}(h]h ]h"]h$]h&]uh1jhjncubj)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjncubj)}(h)Read perf_event security info if allowed.h]h)Read perf_event security info if allowed.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM5hjncubj)}(h **Return**h]j)}(hjch]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7hjncubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM7hjncubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8int security_perf_event_write (struct perf_event *event)h]h)}(h7int security_perf_event_write(struct perf_event *event)h](h)}(hinth]hint}(hj:dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6dhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?ubh)}(h h]h }(hjIdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6dhhhjHdhM?ubj)}(hsecurity_perf_event_writeh]j)}(hsecurity_perf_event_writeh]hsecurity_perf_event_write}(hj[dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6dhhhjHdhM?ubj/)}(h(struct perf_event *event)h]j5)}(hstruct perf_event *eventh](j;)}(hj>h]hstruct}(hjwdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjsdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsdubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsj]dsbc.security_perf_event_writeasbuh1hhjsdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsdubj)}(heventh]hevent}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjodubah}(h]h ]h"]h$]h&]j,j-uh1j.hj6dhhhjHdhM?ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2dhhhjHdhM?ubah}(h]j-dah ](jjeh"]h$]h&]jj)jhuh1hhjHdhM?hj/dhhubj)}(hhh]j)}(h.Check if writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM?hjdhhubah}(h]h ]h"]h$]h&]uh1jhj/dhhhjHdhM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjwhNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Write perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](j)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMChjeubj)}(hhh]j")}(h(``struct perf_event *event`` perf event h](j()}(h``struct perf_event *event``h]j.)}(hj;eh]hstruct perf_event *event}(hj=ehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9eubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM@hj5eubjD)}(hhh]j)}(h perf eventh]h perf event}(hjTehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPehM@hjQeubah}(h]h ]h"]h$]h&]uh1jChj5eubeh}(h]h ]h"]h$]h&]uh1j!hjPehM@hj2eubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(h**Description**h]j)}(hjveh]h Description}(hjxehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjteubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhjeubj)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMBhjeubj)}(h **Return**h]j)}(hjeh]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhjeubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMDhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhjwhhhNhNubh)}(hhh](h)}(h:int security_uring_override_creds (const struct cred *new)h]h)}(h9int security_uring_override_creds(const struct cred *new)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjehMNubj)}(hsecurity_uring_override_credsh]j)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjehMNubj/)}(h(const struct cred *new)h]j5)}(hconst struct cred *newh](j;)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hj,fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj;)}(hj>h]hstruct}(hj:fhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjGfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(hcredh]hcred}(hjXfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZfmodnameN classnameNjwjz)}j}]j)}jsjfsbc.security_uring_override_credsasbuh1hhjfubh)}(h h]h }(hjxfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hnewh]hnew}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubah}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjehMNubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhjehMNubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMNhjehhubj)}(hhh]j)}(h$Check if overriding creds is allowedh]h$Check if overriding creds is allowed}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMNhjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMNubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjfjjfjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMRhjfubj)}(hhh]j")}(h+``const struct cred *new`` new credentials h](j()}(h``const struct cred *new``h]j.)}(hjfh]hconst struct cred *new}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjfubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMOhjfubjD)}(hhh]j)}(hnew credentialsh]hnew credentials}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghMOhjgubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjghMOhjfubah}(h]h ]h"]h$]h&]uh1jhjfubj)}(h**Description**h]j)}(hj9gh]h Description}(hj;ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7gubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhjfubj)}(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 }(hjOghhhNhNubj)}(h**new**h]hnew}(hjWghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOgubh.}(hjOghhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMQhjfubj)}(h **Return**h]j)}(hjrgh]hReturn}(hjtghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThjfubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMThjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h int security_uring_sqpoll (void)h]h)}(hint security_uring_sqpoll(void)h](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM\ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhhjghM\ubj)}(hsecurity_uring_sqpollh]j)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhhjghM\ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjgubah}(h]h ]h"]h$]h&]j,j-uh1j.hjghhhjghM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhjghM\ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghM\hjghhubj)}(hhh]j)}(h'Check if IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM\hjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6hjj6hjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj@hh]h Parameters}(hjBhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hj:hubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj_hh]hvoid}(hjahhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]hubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhjYhubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjxhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthhKhjuhubah}(h]h ]h"]h$]h&]uh1jChjYhubeh}(h]h ]h"]h$]h&]uh1j!hjthhKhjVhubah}(h]h ]h"]h$]h&]uh1jhj:hubj)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhj:hubj)}(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).}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM]hj:hubj)}(h **Return**h]j)}(hjhh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chM`hj:hubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMahj:hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurity_uring_cmd (C function)c.security_uring_cmdhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h4int security_uring_cmd (struct io_uring_cmd *ioucmd)h]h)}(h3int security_uring_cmd(struct io_uring_cmd *ioucmd)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMiubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihMiubj)}(hsecurity_uring_cmdh]j)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hj'ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#iubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihMiubj/)}(h(struct io_uring_cmd *ioucmd)h]j5)}(hstruct io_uring_cmd *ioucmdh](j;)}(hj>h]hstruct}(hjCihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?iubh)}(h h]h }(hjPihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?iubh)}(hhh]j)}(h io_uring_cmdh]h io_uring_cmd}(hjaihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^iubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcimodnameN classnameNjwjz)}j}]j)}jsj)isbc.security_uring_cmdasbuh1hhj?iubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?iubj)}(hioucmdh]hioucmd}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?iubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;iubah}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihMiubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhjihMiubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjihMihjhhhubj)}(hhh]j)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command is allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMihjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjihMiubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjijjijjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMmhjiubj)}(hhh]j")}(h(``struct io_uring_cmd *ioucmd`` command h](j()}(h``struct io_uring_cmd *ioucmd``h]j.)}(hjjh]hstruct io_uring_cmd *ioucmd}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMjhjjubjD)}(hhh]j)}(hcommandh]hcommand}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMjhjjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjjhMjhjiubah}(h]h ]h"]h$]h&]uh1jhjiubj)}(h**Description**h]j)}(hjBjh]h Description}(hjDjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlhjiubj)}(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.}(hjXjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMlhjiubj)}(h **Return**h]j)}(hjijh]hReturn}(hjkjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMnhjiubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMnhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h!int security_uring_allowed (void)h]h)}(h int security_uring_allowed(void)h](h)}(hinth]hint}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhjjhMvubj)}(hsecurity_uring_allowedh]j)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhjjhMvubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhjjhMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjjhMvubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMvhjjhhubj)}(hhh]j)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() is allowed}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMvhjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMvubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-kjj-kjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj7kh]h Parameters}(hj9khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5kubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhj1kubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjVkh]hvoid}(hjXkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhjPkubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjokhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkkhKhjlkubah}(h]h ]h"]h$]h&]uh1jChjPkubeh}(h]h ]h"]h$]h&]uh1j!hjkkhKhjMkubah}(h]h ]h"]h$]h&]uh1jhj1kubj)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhj1kubj)}(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().}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMwhj1kubj)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMyhj1kubj)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMzhj1kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h(void security_initramfs_populated (void)h]h)}(h'void security_initramfs_populated(void)h](h)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMubh)}(h h]h }(hj lhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhj lhMubj)}(hsecurity_initramfs_populatedh]j)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhj lhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj:lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6lubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2lubah}(h]h ]h"]h$]h&]j,j-uh1j.hjkhhhj lhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhj lhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhj lhMhjkhhubj)}(hhh]j)}(h*Notify LSMs that initramfs has been loadedh]h*Notify LSMs that initramfs has been loaded}(hjdlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjalhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhj lhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|ljj|ljjjuh1hhhhjwhNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.h](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjlubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjlh]hvoid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhjlubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jChjlubeh}(h]h ]h"]h$]h&]uh1j!hjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chKhjlubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:287: ./security/security.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hstruct dentry * securityfs_create_file (const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h]h)}(hstruct dentry *securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h](j;)}(hj>h]hstruct}(hj%mhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!mhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKubh)}(h h]h }(hj3mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!mhhhj2mhKubh)}(hhh]j)}(hdentryh]hdentry}(hjDmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_filesbc.securityfs_create_fileasbuh1hhj!mhhhj2mhKubh)}(h h]h }(hjemhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!mhhhj2mhKubj)}(hjh]h*}(hjsmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!mhhhj2mhKubj)}(hsecurityfs_create_fileh]j)}(hjbmh]hsecurityfs_create_file}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!mhhhj2mhKubj/)}(hg(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h](j5)}(hconst char *nameh](j;)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hnameh]hname}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j`mc.securityfs_create_fileasbuh1hhjmubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hmodeh]hmode}(hj+nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(hstruct dentry *parenth](j;)}(hj>h]hstruct}(hjDnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj@nubh)}(h h]h }(hjQnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@nubh)}(hhh]j)}(hdentryh]hdentry}(hjbnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_nubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdnmodnameN classnameNjwjz)}j}]j`mc.securityfs_create_fileasbuh1hhj@nubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@nubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@nubj)}(hparenth]hparent}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@nubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(h void *datah](h)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hdatah]hdata}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj;)}(hj>h]hstruct}(hjohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hj/ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,oubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1omodnameN classnameNjwjz)}j}]j`mc.securityfs_create_fileasbuh1hhjnubh)}(h h]h }(hjMohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hj[ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hfopsh]hfops}(hjhohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!mhhhj2mhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhj2mhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhj2mhKhjmhhubj)}(hhh]j)}(h*create a file in the securityfs filesystemh]h*create a file in the securityfs filesystem}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjohhubah}(h]h ]h"]h$]h&]uh1jhjmhhhj2mhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjojjojjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubj)}(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.)}(hjoh]hconst char *name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubjD)}(hhh]j)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKhjoubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohKhjoubj")}(h:``umode_t mode`` the permission that the file should have h](j()}(h``umode_t mode``h]j.)}(hj ph]h umode_t mode}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj pubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjpubjD)}(hhh]j)}(h(the permission that the file should haveh]h(the permission that the file should have}(hj%phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!phKhj"pubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hj!phKhjoubj")}(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.)}(hjEph]hstruct dentry *parent}(hjGphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCpubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj?pubjD)}(hhh]j)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hj^phhhNhNubj.)}(h``NULL``h]hNULL}(hjfphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj^pubhI, then the file will be created in the root of the securityfs filesystem.}(hj^phhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj[pubah}(h]h ]h"]h$]h&]uh1jChj?pubeh}(h]h ]h"]h$]h&]uh1j!hjZphKhjoubj")}(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.)}(hjph]h void *data}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjpubjD)}(hhh]j)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphKhjoubj")}(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.)}(hjph]h"const struct file_operations *fops}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjpubjD)}(hhh]j)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphKhjoubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjqh]h Description}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubj)}(hCThis function creates a file in securityfs with the given **name**.h](h:This function creates a file in securityfs with the given }(hjqhhhNhNubj)}(h**name**h]hname}(hj%qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubj)}(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>qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubj)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjMqhhhNhNubj.)}(h ``-ENODEV``h]h-ENODEV}(hjUqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMqubh is returned.}(hjMqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hOstruct dentry * securityfs_create_dir (const char *name, struct dentry *parent)h]h)}(hMstruct dentry *securityfs_create_dir(const char *name, struct dentry *parent)h](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjqhKubh)}(hhh]j)}(hdentryh]hdentry}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_dirsbc.securityfs_create_dirasbuh1hhjqhhhjqhKubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjqhKubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhKubj)}(hsecurityfs_create_dirh]j)}(hjqh]hsecurityfs_create_dir}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjqhhhjqhKubj/)}(h)(const char *name, struct dentry *parent)h](j5)}(hconst char *nameh](j;)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hcharh]hchar}(hj#rhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hj1rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hj?rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hnameh]hname}(hjLrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubj5)}(hstruct dentry *parenth](j;)}(hj>h]hstruct}(hjerhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjarubh)}(h h]h }(hjrrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjarubh)}(hhh]j)}(hdentryh]hdentry}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jqc.securityfs_create_dirasbuh1hhjarubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjarubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjarubj)}(hparenth]hparent}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjarubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjqhhhjqhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjqhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhKhjqhhubj)}(hhh]j)}(h/create a directory in the securityfs filesystemh]h/create a directory in the securityfs filesystem}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjsh]h Parameters}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjsubj)}(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'sh]hconst char *name}(hj)shhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%subah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj!subjD)}(hhh]j)}(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@shhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj=subah}(h]h ]h"]h$]h&]uh1jChj!subeh}(h]h ]h"]h$]h&]uh1j!hjh]hstruct}(hj6thhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2thhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKubh)}(h h]h }(hjDthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2thhhjCthKubh)}(hhh]j)}(hdentryh]hdentry}(hjUthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWtmodnameN classnameNjwjz)}j}]j)}jssecurityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhj2thhhjCthKubh)}(h h]h }(hjvthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2thhhjCthKubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2thhhjCthKubj)}(hsecurityfs_create_symlinkh]j)}(hjsth]hsecurityfs_create_symlink}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2thhhjCthKubj/)}(hb(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j5)}(hconst char *nameh](j;)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hcharh]hchar}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnameh]hname}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(hstruct dentry *parenth](j;)}(hj>h]hstruct}(hj uhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj uubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj uubh)}(hhh]j)}(hdentryh]hdentry}(hj+uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(uubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-umodnameN classnameNjwjz)}j}]jqtc.securityfs_create_symlinkasbuh1hhj uubh)}(h h]h }(hjIuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj uubj)}(hjh]h*}(hjWuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj uubj)}(hparenth]hparent}(hjduhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj uubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(hconst char *targeth](j;)}(hjh]hconst}(hj}uhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyuubh)}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyuubj)}(htargeth]htarget}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubj5)}(h#const struct inode_operations *iopsh](j;)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj;)}(hj>h]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(hinode_operationsh]hinode_operations}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]jqtc.securityfs_create_symlinkasbuh1hhjuubh)}(h h]h }(hj1vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hj?vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hiopsh]hiops}(hjLvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjtubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj2thhhjCthKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.thhhjCthKubah}(h]j)tah ](jjeh"]h$]h&]jj)jhuh1hhjCthKhj+thhubj)}(hhh]j)}(h-create a symlink in the securityfs filesystemh]h-create a symlink in the securityfs filesystem}(hjvvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjsvhhubah}(h]h ]h"]h$]h&]uh1jhj+thhhjCthKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhjwhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubj)}(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.)}(hjvh]hconst char *name}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubjD)}(hhh]j)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjvhKhjvubj")}(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.)}(hjvh]hstruct dentry *parent}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubjD)}(hhh]j)}(ha pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hqa pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is }(hj whhhNhNubj.)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj wubhN, then the directory will be created in the root of the securityfs filesystem.}(hj whhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjwubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjwhKhjvubj")}(h``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. h](j()}(h``const char *target``h]j.)}(hj=wh]hconst char *target}(hj?whhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;wubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhj7wubjD)}(hhh]j)}(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 }(hjVwhhhNhNubj.)}(h``NULL``h]hNULL}(hj^whhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVwubh , then the }(hjVwhhhNhNubj)}(h**iops**h]hiops}(hjpwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVwubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hjVwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjSwubah}(h]h ]h"]h$]h&]uh1jChj7wubeh}(h]h ]h"]h$]h&]uh1j!hjRwhKhjvubj")}(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.)}(hjwh]h#const struct inode_operations *iops}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjwubjD)}(hhh]j)}(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 }(hjwhhhNhNubj.)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubh@, then the default simple_symlink_inode operations will be used.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhKhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubj)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubj)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hjwhhhNhNubj)}(h**name**h]hname}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubj)}(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 xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chKhjvubj)}(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/xhhhNhNubj.)}(h ``-ENODEV``h]h-ENODEV}(hj7xhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/xubh is returned.}(hj/xhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsecurityfs_remove (C function)c.securityfs_removehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h.void securityfs_remove (struct dentry *dentry)h]h)}(h-void securityfs_remove(struct dentry *dentry)h](h)}(hvoidh]hvoid}(hjpxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlxhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlxhhhj~xhMubj)}(hsecurityfs_removeh]j)}(hsecurityfs_removeh]hsecurityfs_remove}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlxhhhj~xhMubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j)}(hdentryh]hdentry}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjxmodnameN classnameNjwjz)}j}]j)}jsjxsbc.securityfs_removeasbuh1hhjxubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hdentryh]hdentry}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjxubah}(h]h ]h"]h$]h&]j,j-uh1j.hjlxhhhj~xhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhxhhhj~xhMubah}(h]jcxah ](jjeh"]h$]h&]jj)jhuh1hhj~xhMhjexhhubj)}(hhh]j)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hj0yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhj-yhhubah}(h]h ]h"]h$]h&]uh1jhjexhhhj~xhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHyjjHyjjjuh1hhhhjwhNhNubj)}(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.h](j)}(h**Parameters**h]j)}(hjRyh]h Parameters}(hjTyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjLyubj)}(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.)}(hjqyh]hstruct dentry *dentry}(hjsyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoyubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjkyubjD)}(hhh]j)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jChjkyubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhjhyubah}(h]h ]h"]h$]h&]uh1jhjLyubj)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjLyubj)}(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.)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMhjLyubj)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chM#hjLyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(securityfs_recursive_remove (C function)c.securityfs_recursive_removehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h8void securityfs_recursive_remove (struct dentry *dentry)h]h)}(h7void securityfs_recursive_remove(struct dentry *dentry)h](h)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMBubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjzhMBubj)}(hsecurityfs_recursive_removeh]j)}(hsecurityfs_recursive_removeh]hsecurityfs_recursive_remove}(hj!zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjyhhhjzhMBubj/)}(h(struct dentry *dentry)h]j5)}(hstruct dentry *dentryh](j;)}(hj>h]hstruct}(hj=zhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj9zubh)}(h h]h }(hjJzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9zubh)}(hhh]j)}(hdentryh]hdentry}(hj[zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]zmodnameN classnameNjwjz)}j}]j)}jsj#zsbc.securityfs_recursive_removeasbuh1hhj9zubh)}(h h]h }(hj{zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9zubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9zubj)}(hdentryh]hdentry}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9zubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5zubah}(h]h ]h"]h$]h&]j,j-uh1j.hjyhhhjzhMBubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjyhhhjzhMBubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjzhMBhjyhhubj)}(hhh]j)}(h'recursively removes a file or directoryh]h'recursively removes a file or directory}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMBhjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjzhMBubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjwhNhNubj)}(hX?**Parameters** ``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. **Description** This function recursively 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](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMFhjzubj)}(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&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMDhjzubjD)}(hhh]j)}(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&]uh1jhj{hMDhj{ubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hj{hMDhjzubah}(h]h ]h"]h$]h&]uh1jhjzubj)}(h**Description**h]j)}(hj<{h]h Description}(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:290: ./security/inode.chMFhjzubj)}(hThis function recursively 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 recursively 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.)}(hjR{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:290: ./security/inode.chMFhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hjs{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp{hhhhhM&ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_start (C function)c.audit_log_starthNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h[struct audit_buffer * audit_log_start (struct audit_context *ctx, gfp_t gfp_mask, int type)h]h)}(hYstruct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j;)}(hj>h]hstruct}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM5ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hM5ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsaudit_log_startsbc.audit_log_startasbuh1hhj{hhhj{hM5ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hM5ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hM5ubj)}(haudit_log_starth]j)}(hj{h]haudit_log_start}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhj{hM5ubj/)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|ubh)}(h h]h }(hj!|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hj2|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4|modnameN classnameNjwjz)}j}]j{c.audit_log_startasbuh1hhj|ubh)}(h h]h }(hjP|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hjh]h*}(hj^|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hctxh]hctx}(hjk|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj |ubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j{c.audit_log_startasbuh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(hgfp_maskh]hgfp_mask}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj |ubj5)}(hint typeh](h)}(hinth]hint}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(htypeh]htype}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj |ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj{hhhj{hM5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj{hM5ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hM5hj{hhubj)}(hhh]j)}(hobtain an audit bufferh]hobtain an audit buffer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM5hj}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*}jj*}jjjuh1hhhhjp{hNhNubj)}(hXV**Parameters** ``struct audit_context *ctx`` audit_context (may be NULL) ``gfp_t gfp_mask`` type of allocation ``int type`` audit message type **Description** Returns audit_buffer pointer on success or NULL on error. Obtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h](j)}(h**Parameters**h]j)}(hj4}h]h Parameters}(hj6}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2}ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM9hj.}ubj)}(hhh](j")}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j()}(h``struct audit_context *ctx``h]j.)}(hjS}h]hstruct audit_context *ctx}(hjU}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQ}ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM6hjM}ubjD)}(hhh]j)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hjl}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh}hM6hji}ubah}(h]h ]h"]h$]h&]uh1jChjM}ubeh}(h]h ]h"]h$]h&]uh1j!hjh}hM6hjJ}ubj")}(h&``gfp_t gfp_mask`` type of allocation h](j()}(h``gfp_t gfp_mask``h]j.)}(hj}h]hgfp_t gfp_mask}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM7hj}ubjD)}(hhh]j)}(htype of allocationh]htype of allocation}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hM7hj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hM7hjJ}ubj")}(h ``int type`` audit message type h](j()}(h ``int type``h]j.)}(hj}h]hint type}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM8hj}ubjD)}(hhh]j)}(haudit message typeh]haudit message type}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}hM8hj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hM8hjJ}ubeh}(h]h ]h"]h$]h&]uh1jhj.}ubj)}(h**Description**h]j)}(hj~h]h Description}(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:296: ./kernel/audit.chM:hj.}ubj)}(h9Returns audit_buffer pointer on success or NULL on error.h]h9Returns audit_buffer pointer on success or NULL on error.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM:hj.}ubj)}(hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h]hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.}(hj%~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM<hj.}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_format (C function)c.audit_log_formathNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hEvoid audit_log_format (struct audit_buffer *ab, const char *fmt, ...)h]h)}(hDvoid audit_log_format(struct audit_buffer *ab, const char *fmt, ...)h](h)}(hvoidh]hvoid}(hjT~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP~hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMubh)}(h h]h }(hjc~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP~hhhjb~hMubj)}(haudit_log_formath]j)}(haudit_log_formath]haudit_log_format}(hju~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjq~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjP~hhhjb~hMubj/)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j5)}(hstruct audit_buffer *abh](j;)}(hj>h]hstruct}(hj~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j)}jsjw~sbc.audit_log_formatasbuh1hhj~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(habh]hab}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hfmth]hfmt}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubj5)}(h...h]j)}(hjh]h...}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjP~hhhjb~hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjL~hhhjb~hMubah}(h]jG~ah ](jjeh"]h$]h&]jj)jhuh1hhjb~hMhjI~hhubj)}(hhh]j)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjI~hhhjb~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct audit_buffer *ab`` audit_buffer ``const char *fmt`` format string ``...`` optional parameters matching **fmt** string **Description** All the work is done in audit_log_vformat.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjubj)}(hhh](j")}(h)``struct audit_buffer *ab`` audit_buffer h](j()}(h``struct audit_buffer *ab``h]j.)}(hjh]hstruct audit_buffer *ab}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjubjD)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h"``const char *fmt`` format string h](j()}(h``const char *fmt``h]j.)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjubjD)}(hhh]j)}(h format stringh]h format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h4``...`` optional parameters matching **fmt** string h](j()}(h``...``h]j.)}(hj<h]h...}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhj6ubjD)}(hhh]j)}(h+optional parameters matching **fmt** stringh](hoptional parameters matching }(hjUhhhNhNubj)}(h**fmt**h]hfmt}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh string}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_end (C function)c.audit_log_endhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h,void audit_log_end (struct audit_buffer *ab)h]h)}(h+void audit_log_end(struct audit_buffer *ab)h](h)}(hvoidh]hvoid}(hj΀hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʀhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMn ubh)}(h h]h }(hj݀hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjʀhhhj܀hMn ubj)}(h audit_log_endh]j)}(h audit_log_endh]h audit_log_end}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjʀhhhj܀hMn ubj/)}(h(struct audit_buffer *ab)h]j5)}(hstruct audit_buffer *abh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j)}jsjsbc.audit_log_endasbuh1hhjubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(habh]hab}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjʀhhhj܀hMn ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjƀhhhj܀hMn ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj܀hMn hjÀhhubj)}(hhh]j)}(hend one audit recordh]hend one audit record}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMn hjhhubah}(h]h ]h"]h$]h&]uh1jhjÀhhhj܀hMn ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX^**Parameters** ``struct audit_buffer *ab`` the audit_buffer **Description** We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMr hjubj)}(hhh]j")}(h-``struct audit_buffer *ab`` the audit_buffer h](j()}(h``struct audit_buffer *ab``h]j.)}(hjρh]hstruct audit_buffer *ab}(hjсhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj́ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMo hjɁubjD)}(hhh]j)}(hthe audit_bufferh]hthe audit_buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMo hjubah}(h]h ]h"]h$]h&]uh1jChjɁubeh}(h]h ]h"]h$]h&]uh1j!hjhMo hjƁubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMq hjubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chMq hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log (C function) c.audit_loghNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hZvoid audit_log (struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h]h)}(hYvoid audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](h)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj]hM ubj)}(h audit_logh]j)}(h audit_logh]h audit_log}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjKhhhj]hM ubj/)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjrsb c.audit_logasbuh1hhjubh)}(h h]h }(hjʂhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj؂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jƂ c.audit_logasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hgfp_maskh]hgfp_mask}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint typeh](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(htypeh]htype}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *fmth](j;)}(hjh]hconst}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h...h]j)}(hjh]h...}(hj؃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԃubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjKhhhj]hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjGhhhj]hM ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj]hM hjDhhubj)}(hhh]j)}(hLog an audit recordh]hLog an audit record}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``struct audit_context *ctx`` audit context ``gfp_t gfp_mask`` type of allocation ``int type`` audit message type ``const char *fmt`` format string to use ``...`` variable parameters matching the format string **Description** This is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.h](j)}(h**Parameters**h]j)}(hj#h]h Parameters}(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:296: ./kernel/audit.chM hjubj)}(hhh](j")}(h,``struct audit_context *ctx`` audit context h](j()}(h``struct audit_context *ctx``h]j.)}(hjBh]hstruct audit_context *ctx}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hj<ubjD)}(hhh]j)}(h audit contexth]h audit context}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhM hjXubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hjWhM hj9ubj")}(h&``gfp_t gfp_mask`` type of allocation h](j()}(h``gfp_t gfp_mask``h]j.)}(hj{h]hgfp_t gfp_mask}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjuubjD)}(hhh]j)}(htype of allocationh]htype of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj9ubj")}(h ``int type`` audit message type h](j()}(h ``int type``h]j.)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjubjD)}(hhh]j)}(haudit message typeh]haudit message type}(hj̈́hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɄhM hjʄubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjɄhM hj9ubj")}(h)``const char *fmt`` format string to use h](j()}(h``const char *fmt``h]j.)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjubjD)}(hhh]j)}(hformat string to useh]hformat string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj9ubj")}(h7``...`` variable parameters matching the format string h](j()}(h``...``h]j.)}(hj&h]h...}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hj ubjD)}(hhh]j)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hM hj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hM hj9ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:296: ./kernel/audit.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hint __audit_filter_op (struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h]h)}(hint __audit_filter_op(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM.ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM.ubj)}(h__audit_filter_oph]j)}(h__audit_filter_oph]h__audit_filter_op}(hjDžhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjÅubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM.ubj/)}(hx(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj߅ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߅ubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjɅsbc.__audit_filter_opasbuh1hhj߅ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߅ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߅ubj)}(htskh]htsk}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj߅ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjۅubj5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjQubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]jc.__audit_filter_opasbuh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjۅubj5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hjņhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj҆hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__audit_filter_opasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjۅubj5)}(hstruct audit_names *nameh](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j)}(h audit_namesh]h audit_names}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]jc.__audit_filter_opasbuh1hhj1ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjۅubj5)}(hunsigned long oph](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjχhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoph]hop}(hj݇hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjۅubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM.ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM.hjhhubj)}(hhh]j)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM.hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM.ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hXq**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit context ``struct list_head *list`` audit filter list ``struct audit_names *name`` audit_name (can be NULL) ``unsigned long op`` current syscall/uring_op **Description** Run the udit filters specified in **list** against **tsk** using **ctx**, **name**, and **op**, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The **name** parameter can be NULL, but all others must be specified. Returns 1/true if the filter finds a match, 0/false if none are found.h](j)}(h**Parameters**h]j)}(hj)h]h Parameters}(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:299: ./kernel/auditsc.chM2hj#ubj)}(hhh](j")}(h,``struct task_struct *tsk`` associated task h](j()}(h``struct task_struct *tsk``h]j.)}(hjHh]hstruct task_struct *tsk}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM/hjBubjD)}(hhh]j)}(hassociated taskh]hassociated task}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hM/hj^ubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj]hM/hj?ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM0hj{ubjD)}(hhh]j)}(h audit contexth]h audit context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhM0hj?ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM1hjubjD)}(hhh]j)}(haudit filter listh]haudit filter list}(hjӈhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjψhM1hjЈubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjψhM1hj?ubj")}(h6``struct audit_names *name`` audit_name (can be NULL) h](j()}(h``struct audit_names *name``h]j.)}(hjh]hstruct audit_names *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM2hjubjD)}(hhh]j)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM2hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM2hj?ubj")}(h.``unsigned long op`` current syscall/uring_op h](j()}(h``unsigned long op``h]j.)}(hj,h]hunsigned long op}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM3hj&ubjD)}(hhh]j)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhM3hjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhM3hj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubj)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM5hj#ubj)}(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 }(hj}hhhNhNubj)}(h**list**h]hlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh against }(hj}hhhNhNubj)}(h**tsk**h]htsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh using }(hj}hhhNhNubj)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, }(hj}hhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, and }(hj}hhhNhNubj)}(h**op**h]hop}(hj͉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hj}hhhNhNubj)}(h**name**h]hname}(hj߉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh parameter can be NULL, but all others must be specified. Returns 1/true if the filter finds a match, 0/false if none are found.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM5hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hLvoid audit_filter_uring (struct task_struct *tsk, struct audit_context *ctx)h]h)}(hKvoid audit_filter_uring(struct task_struct *tsk, struct audit_context *ctx)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMPubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hMPubj)}(haudit_filter_uringh]j)}(haudit_filter_uringh]haudit_filter_uring}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj&hMPubj/)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjQubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubh)}(hhh]j)}(h task_structh]h task_struct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsj;sbc.audit_filter_uringasbuh1hhjQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubj5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hjNJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjÊubh)}(h h]h }(hjԊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjÊubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.audit_filter_uringasbuh1hhjÊubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjÊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjÊubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjMubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj&hMPubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj&hMPubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMPhj hhubj)}(hhh]j)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMPhjEhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMPubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjp{hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMThjdubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMQhjubjD)}(hhh]j)}(hassociated taskh]hassociated task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMQhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMShjubjD)}(hhh]j)}(h audit contexth]h audit context}(hjۋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMRhj؋ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj׋hMShjubeh}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ audit_reset_context (C function)c.audit_reset_contexthNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h4void audit_reset_context (struct audit_context *ctx)h]h)}(h3void audit_reset_context(struct audit_context *ctx)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hMubj)}(haudit_reset_contexth]j)}(haudit_reset_contexth]haudit_reset_context}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj*hMubj/)}(h(struct audit_context *ctx)h]j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j)}jsj?sbc.audit_reset_contextasbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj*hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj)}(hhh]j)}(hreset a audit_context structureh]hreset a audit_context structure}(hj܌hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjٌhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX{**Parameters** ``struct audit_context *ctx`` the audit_context to reset **Description** All fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(hhh]j")}(h9``struct audit_context *ctx`` the audit_context to reset h](j()}(h``struct audit_context *ctx``h]j.)}(hjh]hstruct audit_context *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hthe audit_context to reseth]hthe audit_context to reset}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_alloc (C function) c.audit_allochNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h)int audit_alloc (struct task_struct *tsk)h]h)}(h(int audit_alloc(struct task_struct *tsk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h audit_alloch]j)}(h audit_alloch]h audit_alloc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct task_struct *tsk)h]j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hjڍhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj֍ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj֍ubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.audit_allocasbuh1hhj֍ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj֍ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֍ubj)}(htskh]htsk}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj֍ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjҍubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjujjujjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``struct task_struct *tsk`` task **Description** Filter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjyubj)}(hhh]j")}(h!``struct task_struct *tsk`` task h](j()}(h``struct task_struct *tsk``h]j.)}(hjh]hstruct task_struct *tsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(htaskh]htask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubj)}(h**Description**h]j)}(hjَh]h Description}(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:299: ./kernel/auditsc.chMhjyubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_log_uring (C function)c.audit_log_uringhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h0void audit_log_uring (struct audit_context *ctx)h]h)}(h/void audit_log_uring(struct audit_context *ctx)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMeubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMeubj)}(haudit_log_uringh]j)}(haudit_log_uringh]haudit_log_uring}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj,hMeubj/)}(h(struct audit_context *ctx)h]j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsjAsbc.audit_log_uringasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj,hMeubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj,hMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMehjhhubj)}(hhh]j)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hjޏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMehjۏhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMeubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMihjubj)}(hhh]j")}(h/``struct audit_context *ctx`` the audit contexth](j()}(h``struct audit_context *ctx``h]j.)}(hjh]hstruct audit_context *ctx}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMkhjubjD)}(hhh]j)}(hthe audit contexth]hthe audit context}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMfhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_free (C function)c.__audit_freehNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h+void __audit_free (struct task_struct *tsk)h]h)}(h*void __audit_free(struct task_struct *tsk)h](h)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMubj)}(h __audit_freeh]j)}(h __audit_freeh]h __audit_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjhMubj/)}(h(struct task_struct *tsk)h]j5)}(hstruct task_struct *tskh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjÐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hjԐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjѐubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj֐modnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_freeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htskh]htsk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(hhh]j)}(hfree a per-task audit contexth]hfree a per-task audit context}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjQjjQjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct task_struct *tsk`` task whose audit context block to free **Description** Called from copy_process, do_exit, and the io_uring codeh](j)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjUubj)}(hhh]j")}(hC``struct task_struct *tsk`` task whose audit context block to free h](j()}(h``struct task_struct *tsk``h]j.)}(hjzh]hstruct task_struct *tsk}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjtubjD)}(hhh]j)}(h&task whose audit context block to freeh]h&task whose audit context block to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjUubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_return_fixup (C function)c.audit_return_fixuphNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hKvoid audit_return_fixup (struct audit_context *ctx, int success, long code)h]h)}(hJvoid audit_return_fixup(struct audit_context *ctx, int success, long code)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMEubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMEubj)}(haudit_return_fixuph]j)}(haudit_return_fixuph]haudit_return_fixup}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMEubj/)}(h3(struct audit_context *ctx, int success, long code)h](j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_return_fixupasbuh1hhj3ubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(h int successh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsuccessh]hsuccess}(hjŒhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubj5)}(h long codeh](h)}(hlongh]hlong}(hjޒhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjڒubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjڒubj)}(hcodeh]hcode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjڒubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj/ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMEubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj)}(hhh]j)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMEhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjp{hNhNubj)}(hX\**Parameters** ``struct audit_context *ctx`` the audit_context ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** We need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.h](j)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMIhj@ubj)}(hhh](j")}(h0``struct audit_context *ctx`` the audit_context h](j()}(h``struct audit_context *ctx``h]j.)}(hjeh]hstruct audit_context *ctx}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMFhj_ubjD)}(hhh]j)}(hthe audit_contexth]hthe audit_context}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhMFhj{ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hjzhMFhj\ubj")}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j()}(h``int success``h]j.)}(hjh]h int success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMGhjubjD)}(hhh]j)}(h>true/false value to indicate if the operation succeeded or noth]h>true/false value to indicate if the operation succeeded or not}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhj\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&]uh1j-hjՓubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMHhjѓubjD)}(hhh]j)}(hoperation return codeh]hoperation return code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jChjѓubeh}(h]h ]h"]h$]h&]uh1j!hjhMHhj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJhj@ubj)}(hWe need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.h]hWe need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h void __audit_uring_entry (u8 op)h]h)}(hvoid __audit_uring_entry(u8 op)h](h)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMaubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjShhhjehMaubj)}(h__audit_uring_entryh]j)}(h__audit_uring_entryh]h__audit_uring_entry}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjShhhjehMaubj/)}(h(u8 op)h]j5)}(hu8 oph](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjzsbc.__audit_uring_entryasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoph]hop}(hjŔhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjShhhjehMaubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjOhhhjehMaubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMahjLhhubj)}(hhh]j)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMahjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMaubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX **Parameters** ``u8 op`` the io_uring opcode **Description** This is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMehj ubj)}(hhh]j")}(h``u8 op`` the io_uring opcode h](j()}(h ``u8 op``h]j.)}(hj0h]hu8 op}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMbhj*ubjD)}(hhh]j)}(hthe io_uring opcodeh]hthe io_uring opcode}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMbhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMbhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMdhj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMdhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h0void __audit_uring_exit (int success, long code)h]h)}(h/void __audit_uring_exit(int success, long code)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h__audit_uring_exith]j)}(h__audit_uring_exith]h__audit_uring_exit}(hjѕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͕ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(int success, long code)h](j5)}(h int successh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsuccessh]hsuccess}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h long codeh](h)}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcodeh]hcode}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hXv**Parameters** ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** This is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(hhh](j")}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j()}(h``int success``h]j.)}(hjh]h int success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h$``long code`` operation return code h](j()}(h ``long code``h]j.)}(hjh]h long code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjܖubjD)}(hhh]j)}(hoperation return codeh]hoperation return code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjܖubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hnvoid __audit_syscall_entry (int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h]h)}(hmvoid __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](h)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhjphMubj)}(h__audit_syscall_entryh]j)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^hhhjphMubj/)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j5)}(h int majorh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a1h](h)}(hunsignedh]hunsigned}(hjԗhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjЗubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЗubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjЗubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjЗubj)}(ha1h]ha1}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjЗubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a2h](h)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(ha2h]ha2}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a3h](h)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(ha3h]ha3}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long a4h](h)}(hunsignedh]hunsigned}(hjǘhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjØubh)}(h h]h }(hj՘hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjØubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjØubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjØubj)}(ha4h]ha4}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjØubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj^hhhjphMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZhhhjphMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjWhhubj)}(hhh]j)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``int major`` major syscall type (function) ``unsigned long a1`` additional syscall register 1 ``unsigned long a2`` additional syscall register 2 ``unsigned long a3`` additional syscall register 3 ``unsigned long a4`` additional syscall register 4 **Description** Fill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).h](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjEubj)}(hhh](j")}(h,``int major`` major syscall type (function) h](j()}(h ``int major``h]j.)}(hjjh]h int major}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjdubjD)}(hhh]j)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubj")}(h3``unsigned long a1`` additional syscall register 1 h](j()}(h``unsigned long a1``h]j.)}(hjh]hunsigned long a1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hadditional syscall register 1h]hadditional syscall register 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubj")}(h3``unsigned long a2`` additional syscall register 2 h](j()}(h``unsigned long a2``h]j.)}(hjܙh]hunsigned long a2}(hjޙhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjڙubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj֙ubjD)}(hhh]j)}(hadditional syscall register 2h]hadditional syscall register 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj֙ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjaubj")}(h3``unsigned long a3`` additional syscall register 3 h](j()}(h``unsigned long a3``h]j.)}(hjh]hunsigned long a3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hadditional syscall register 3h]hadditional syscall register 3}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj*hMhjaubj")}(h3``unsigned long a4`` additional syscall register 4 h](j()}(h``unsigned long a4``h]j.)}(hjNh]hunsigned long a4}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjHubjD)}(hhh]j)}(hadditional syscall register 4h]hadditional syscall register 4}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchMhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjEubj)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h9void __audit_syscall_exit (int success, long return_code)h]h)}(h8void __audit_syscall_exit(int success, long return_code)h](h)}(hvoidh]hvoid}(hjΚhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʚhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjݚhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjʚhhhjܚhMubj)}(h__audit_syscall_exith]j)}(h__audit_syscall_exith]h__audit_syscall_exit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjʚhhhjܚhMubj/)}(h(int success, long return_code)h](j5)}(h int successh](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsuccessh]hsuccess}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hlong return_codeh](h)}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(h return_codeh]h return_code}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjʚhhhjܚhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjƚhhhjܚhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjܚhMhjÚhhubj)}(hhh]j)}(h,deallocate audit context after a system callh]h,deallocate audit context after a system call}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjÚhhhjܚhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``int success`` success value of the syscall ``long return_code`` return value of the syscall **Description** Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(hhh](j")}(h-``int success`` success value of the syscall h](j()}(h``int success``h]j.)}(hjǛh]h int success}(hjɛhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjśubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hsuccess value of the syscallh]hsuccess value of the syscall}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܛhMhjݛubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjܛhMhjubj")}(h1``long return_code`` return value of the syscall h](j()}(h``long return_code``h]j.)}(hjh]hlong return_code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hreturn value of the syscallh]hreturn value of the syscall}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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().}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_reusename (C function)c.__audit_reusenamehNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h=struct filename * __audit_reusename (const __user char *uptr)h]h)}(h;struct filename *__audit_reusename(__user const char *uptr)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhjhMubh)}(hhh]j)}(hfilenameh]hfilename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}js__audit_reusenamesbc.__audit_reusenameasbuh1hhj|hhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhjhMubj)}(hjh]h*}(hjΜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubj)}(h__audit_reusenameh]j)}(hjh]h__audit_reusename}(hjߜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۜubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhhjhMubj/)}(h(__user const char *uptr)h]j5)}(h__user const char *uptrh](h__user}(hjhhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huptrh]huptr}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj|hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]j)}(h/fill out filename with info from existing entryh]h/fill out filename with info from existing entry}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``const __user char *uptr`` userland ptr to pathname **Description** Search the audit_names list for the current audit context. If there is an existing entry with a matching "uptr" then return the filename associated with that audit_name. If not, return NULL.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(hhh]j")}(h5``const __user char *uptr`` userland ptr to pathname h](j()}(h``const __user char *uptr``h]j.)}(hjh]hconst __user char *uptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(huserland ptr to pathnameh]huserland ptr to pathname}(hjԝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjНhMhjѝubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjНhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_getname (C function)c.__audit_getnamehNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h,void __audit_getname (struct filename *name)h]h)}(h+void __audit_getname(struct filename *name)h](h)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhjIhMubj)}(h__audit_getnameh]j)}(h__audit_getnameh]h__audit_getname}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7hhhjIhMubj/)}(h(struct filename *name)h]j5)}(hstruct filename *nameh](j;)}(hj>h]hstruct}(hjxhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(hfilenameh]hfilename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj^sbc.__audit_getnameasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjĞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnameh]hname}(hjўhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpubah}(h]h ]h"]h$]h&]j,j-uh1j.hj7hhhjIhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3hhhjIhMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhj0hhubj)}(hhh]j)}(hadd a name to the listh]hadd a name to the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct filename *name`` name to add **Description** Add a name to the list of audit names for this context. Called from fs/namei.c:getname().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(hhh]j")}(h&``struct filename *name`` name to add h](j()}(h``struct filename *name``h]j.)}(hj<h]hstruct filename *name}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj6ubjD)}(hhh]j)}(h name to addh]h name to add}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_inode (C function)c.__audit_inodehNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h[void __audit_inode (struct filename *name, const struct dentry *dentry, unsigned int flags)h]h)}(hZvoid __audit_inode(struct filename *name, const struct dentry *dentry, unsigned int flags)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMubh)}(h h]h }(hj˟hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjʟhMubj)}(h __audit_inodeh]j)}(h __audit_inodeh]h __audit_inode}(hjݟhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjٟubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjʟhMubj/)}(hH(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j5)}(hstruct filename *nameh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hfilenameh]hfilename}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjߟsbc.__audit_inodeasbuh1hhjubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct dentry *dentryh](j;)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j3c.__audit_inodeasbuh1hhjgubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjРhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hdentryh]hdentry}(hjݠhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjʟhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjʟhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjʟhMhjhhubj)}(hhh]j)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʟhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjpjjpjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct filename *name`` name being audited ``const struct dentry *dentry`` dentry being audited ``unsigned int flags`` attributes for this particular entryh](j)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjtubj)}(hhh](j")}(h-``struct filename *name`` name being audited h](j()}(h``struct filename *name``h]j.)}(hjh]hstruct filename *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(hname being auditedh]hname being audited}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h5``const struct dentry *dentry`` dentry being audited h](j()}(h``const struct dentry *dentry``h]j.)}(hjҡh]hconst struct dentry *dentry}(hjԡhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjСubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj̡ubjD)}(hhh]j)}(hdentry being auditedh]hdentry being audited}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj̡ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h;``unsigned int flags`` attributes for this particular entryh](j()}(h``unsigned int flags``h]j.)}(hj h]hunsigned int flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhjubjD)}(hhh]j)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMhj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌauditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h]int auditsc_get_stamp (struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h]h)}(h\int auditsc_get_stamp(struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshM ubj)}(hauditsc_get_stamph]j)}(hauditsc_get_stamph]hauditsc_get_stamp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshM ubj/)}(hG(struct audit_context *ctx, struct timespec64 *t, unsigned int *serial)h](j5)}(hstruct audit_context *ctxh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj¢modnameN classnameNjwjz)}j}]j)}jsjsbc.auditsc_get_stampasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct timespec64 *th](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h timespec64h]h timespec64}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]jܢc.auditsc_get_stampasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hth]ht}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int *serialh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hserialh]hserial}(hjɣhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjshM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhjshM ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshM hjZhhubj)}(hhh]j)}(h(get local copies of audit_context valuesh]h(get local copies of audit_context values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjp{hNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(h9``struct audit_context *ctx`` audit_context for the task h](j()}(h``struct audit_context *ctx``h]j.)}(hj4h]hstruct audit_context *ctx}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj.ubjD)}(hhh]j)}(haudit_context for the taskh]haudit_context for the task}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhM hjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhM hj+ubj")}(hP``struct timespec64 *t`` timespec64 to store time recorded in the audit_context h](j()}(h``struct timespec64 *t``h]j.)}(hjmh]hstruct timespec64 *t}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjgubjD)}(hhh]j)}(h6timespec64 to store time recorded in the audit_contexth]h6timespec64 to store time recorded in the audit_context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj+ubj")}(hL``unsigned int *serial`` serial value that is recorded in the audit_context h](j()}(h``unsigned int *serial``h]j.)}(hjh]hunsigned int *serial}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(h2serial value that is recorded in the audit_contexth]h2serial value that is recorded in the audit_context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߤubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_mq_open (C function)c.__audit_mq_openhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hDvoid __audit_mq_open (int oflag, umode_t mode, struct mq_attr *attr)h]h)}(hCvoid __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr)h](h)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj4hM ubj)}(h__audit_mq_openh]j)}(h__audit_mq_openh]h__audit_mq_open}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"hhhj4hM ubj/)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j5)}(h int oflagh](h)}(hinth]hint}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hoflagh]hoflag}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjIsbc.__audit_mq_openasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmodeh]hmode}(hjɥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubj5)}(hstruct mq_attr *attrh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjޥubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޥubh)}(hhh]j)}(hmq_attrh]hmq_attr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__audit_mq_openasbuh1hhjޥubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjޥubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޥubj)}(hattrh]hattr}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjޥubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj"hhhj4hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj4hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hM hjhhubj)}(hhh]j)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj{jj{jjjuh1hhhhjp{hNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(h``int oflag`` open flag h](j()}(h ``int oflag``h]j.)}(hjh]h int oflag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(h open flagh]h open flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(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&]uh1j-hjۦubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjצubjD)}(hhh]j)}(h mode bitsh]h mode bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjצubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h)``struct mq_attr *attr`` queue attributesh](j()}(h``struct mq_attr *attr``h]j.)}(hjh]hstruct mq_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hqueue attributesh]hqueue attributes}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hsvoid __audit_mq_sendrecv (mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h]h)}(hrvoid __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](h)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhj~hM ubj)}(h__audit_mq_sendrecvh]j)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjlhhhj~hM ubj/)}(hZ(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j5)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_mq_sendrecvasbuh1hhjubh)}(h h]h }(hjЧhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmqdesh]hmqdes}(hjާhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsize_t msg_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j̧c.__audit_mq_sendrecvasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmsg_lenh]hmsg_len}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int msg_prioh](h)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubh)}(hinth]hint}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hmsg_prioh]hmsg_prio}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h$const struct timespec64 *abs_timeouth](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h timespec64h]h timespec64}(hjɨhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjƨubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj˨modnameN classnameNjwjz)}j}]j̧c.__audit_mq_sendrecvasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h abs_timeouth]h abs_timeout}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhj~hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhhj~hM ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hM hjehhubj)}(hhh]j)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj)hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``mqd_t mqdes`` MQ descriptor ``size_t msg_len`` Message length ``unsigned int msg_prio`` Message priority ``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjHubj)}(hhh](j")}(h``mqd_t mqdes`` MQ descriptor h](j()}(h``mqd_t mqdes``h]j.)}(hjmh]h mqd_t mqdes}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjgubjD)}(hhh]j)}(h MQ descriptorh]h MQ descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(h"``size_t msg_len`` Message length h](j()}(h``size_t msg_len``h]j.)}(hjh]hsize_t msg_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hMessage lengthh]hMessage length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(h+``unsigned int msg_prio`` Message priority h](j()}(h``unsigned int msg_prio``h]j.)}(hjߩh]hunsigned int msg_prio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjݩubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj٩ubjD)}(hhh]j)}(hMessage priorityh]hMessage priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj٩ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjdubj")}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j()}(h(``const struct timespec64 *abs_timeout``h]j.)}(hjh]h$const struct timespec64 *abs_timeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj.ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj-hM hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hIvoid __audit_mq_notify (mqd_t mqdes, const struct sigevent *notification)h]h)}(hHvoid __audit_mq_notify(mqd_t mqdes, const struct sigevent *notification)h](h)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhjhM ubj)}(h__audit_mq_notifyh]j)}(h__audit_mq_notifyh]h__audit_mq_notify}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjnhhhjhM ubj/)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j5)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_mq_notifyasbuh1hhjubh)}(h h]h }(hjҪhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmqdesh]hmqdes}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h#const struct sigevent *notificationh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsigeventh]hsigevent}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]jΪc.__audit_mq_notifyasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h notificationh]h notification}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjnhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjjhhhjhM ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjghhubj)}(hhh]j)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(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&]uh1j-hjԫubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjЫubjD)}(hhh]j)}(h MQ descriptorh]h MQ descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjЫubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjͫubj")}(h:``const struct sigevent *notification`` Notification eventh](j()}(h'``const struct sigevent *notification``h]j.)}(hjh]h#const struct sigevent *notification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj ubjD)}(hhh]j)}(hNotification eventh]hNotification event}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hM hjͫubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h@void __audit_mq_getsetattr (mqd_t mqdes, struct mq_attr *mqstat)h]h)}(h?void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat)h](h)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM* ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhM* ubj)}(h__audit_mq_getsetattrh]j)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjehhhjwhM* ubj/)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j5)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.__audit_mq_getsetattrasbuh1hhjubh)}(h h]h }(hjɬhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmqdesh]hmqdes}(hj׬hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct mq_attr *mqstath](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hmq_attrh]hmq_attr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jŬc.__audit_mq_getsetattrasbuh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmqstath]hmqstat}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjehhhjwhM* ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjahhhjwhM* ubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhM* hj^hhubj)}(hhh]j)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM* hjnhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhM* ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM. hjubj)}(hhh](j")}(h``mqd_t mqdes`` MQ descriptor h](j()}(h``mqd_t mqdes``h]j.)}(hjh]h mqd_t mqdes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM+ hjubjD)}(hhh]j)}(h MQ descriptorh]h MQ descriptor}(hj˭hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǭhM+ hjȭubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjǭhM+ hjubj")}(h#``struct mq_attr *mqstat`` MQ flagsh](j()}(h``struct mq_attr *mqstat``h]j.)}(hjh]hstruct mq_attr *mqstat}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM- hjubjD)}(hhh]j)}(hMQ flagsh]hMQ flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM, hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM- hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h1void __audit_ipc_obj (struct kern_ipc_perm *ipcp)h]h)}(h0void __audit_ipc_obj(struct kern_ipc_perm *ipcp)h](h)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM9 ubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjShM9 ubj)}(h__audit_ipc_objh]j)}(h__audit_ipc_objh]h__audit_ipc_obj}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjAhhhjShM9 ubj/)}(h(struct kern_ipc_perm *ipcp)h]j5)}(hstruct kern_ipc_perm *ipcph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjhsbc.__audit_ipc_objasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjήhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hipcph]hipcp}(hjۮhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubah}(h]h ]h"]h$]h&]j,j-uh1j.hjAhhhjShM9 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhjShM9 ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShM9 hj:hhubj)}(hhh]j)}(h record audit data for ipc objecth]h record audit data for ipc object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM9 hjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShM9 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(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:299: ./kernel/auditsc.chM= hj!ubj)}(hhh]j")}(h.``struct kern_ipc_perm *ipcp`` ipc permissionsh](j()}(h``struct kern_ipc_perm *ipcp``h]j.)}(hjFh]hstruct kern_ipc_perm *ipcp}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjDubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM? hj@ubjD)}(hhh]j)}(hipc permissionsh]hipc permissions}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM: hj\ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj[hM? hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hTvoid __audit_ipc_set_perm (unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h]h)}(hSvoid __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJ ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMJ ubj)}(h__audit_ipc_set_permh]j)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMJ ubj/)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j5)}(hunsigned long qbytesh](h)}(hunsignedh]hunsigned}(hjݯhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjٯubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjٯubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjٯubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjٯubj)}(hqbytesh]hqbytes}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjٯubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjկubj5)}(h uid_t uidh](h)}(hhh]j)}(huid_th]huid_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj3modnameN classnameNjwjz)}j}]j)}jsjïsbc.__audit_ipc_set_permasbuh1hhj*ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(huidh]huid}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjկubj5)}(h gid_t gidh](h)}(hhh]j)}(hgid_th]hgid_t}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]jMc.__audit_ipc_set_permasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjկubj5)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjðhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjŰmodnameN classnameNjwjz)}j}]jMc.__audit_ipc_set_permasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjկubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMJ ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMJ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJ hjhhubj)}(hhh]j)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMJ hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJ ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``unsigned long qbytes`` msgq bytes ``uid_t uid`` msgq user id ``gid_t gid`` msgq group id ``umode_t mode`` msgq mode (permissions) **Description** Called only after audit_ipc_obj().h](j)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMN hj5ubj)}(hhh](j")}(h$``unsigned long qbytes`` msgq bytes h](j()}(h``unsigned long qbytes``h]j.)}(hjZh]hunsigned long qbytes}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMK hjTubjD)}(hhh]j)}(h msgq bytesh]h msgq bytes}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMK hjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohMK hjQubj")}(h``uid_t uid`` msgq user id h](j()}(h ``uid_t uid``h]j.)}(hjh]h uid_t uid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chML hjubjD)}(hhh]j)}(h msgq user idh]h msgq user id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhML hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhML hjQubj")}(h``gid_t gid`` msgq group id h](j()}(h ``gid_t gid``h]j.)}(hj̱h]h gid_t gid}(hjαhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjʱubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMM hjƱubjD)}(hhh]j)}(h msgq group idh]h msgq group id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMM hjubah}(h]h ]h"]h$]h&]uh1jChjƱubeh}(h]h ]h"]h$]h&]uh1j!hjhMM hjQubj")}(h)``umode_t mode`` msgq mode (permissions) h](j()}(h``umode_t mode``h]j.)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMN hjubjD)}(hhh]j)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMN hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMN hjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMP hj5ubj)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMP hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_socketcall (C function)c.__audit_socketcallhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h7int __audit_socketcall (int nargs, unsigned long *args)h]h)}(h6int __audit_socketcall(int nargs, unsigned long *args)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMg ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMg ubj)}(h__audit_socketcallh]j)}(h__audit_socketcallh]h__audit_socketcall}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMg ubj/)}(h (int nargs, unsigned long *args)h](j5)}(h int nargsh](h)}(hinth]hint}(hj²hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjвhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnargsh]hnargs}(hj޲hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long *argsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hargsh]hargs}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMg ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}hhhjhMg ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhMg hjzhhubj)}(hhh]j)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMg hjchhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMg ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. ``unsigned long *args`` args arrayh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMk hjubj)}(hhh](j")}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j()}(h ``int nargs``h]j.)}(hjh]h int nargs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMh hjubjD)}(hhh]j)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMh hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMh hjubj")}(h"``unsigned long *args`` args arrayh](j()}(h``unsigned long *args``h]j.)}(hjh]hunsigned long *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj޳ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMj hjڳubjD)}(hhh]j)}(h args arrayh]h args array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMi hjubah}(h]h ]h"]h$]h&]uh1jChjڳubeh}(h]h ]h"]h$]h&]uh1j!hjhMj hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h'void __audit_fd_pair (int fd1, int fd2)h]h)}(h&void __audit_fd_pair(int fd1, int fd2)h](h)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMy ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhjHhMy ubj)}(h__audit_fd_pairh]j)}(h__audit_fd_pairh]h__audit_fd_pair}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhjHhMy ubj/)}(h(int fd1, int fd2)h](j5)}(hint fd1h](h)}(hinth]hint}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hfd1h]hfd1}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjoubj5)}(hint fd2h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfd2h]hfd2}(hjȴhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjoubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhjHhMy ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj2hhhjHhMy ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhMy hj/hhubj)}(hhh]j)}(h)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMy hjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhMy ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjp{hNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM} hjubj)}(hhh](j")}(h&``int fd1`` the first file descriptor h](j()}(h ``int fd1``h]j.)}(hj3h]hint fd1}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chMz hj-ubjD)}(hhh]j)}(hthe first file descriptorh]hthe first file descriptor}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhMz hjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhMz hj*ubj")}(h&``int fd2`` the second file descriptorh](j()}(h ``int fd2``h]j.)}(hjlh]hint fd2}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM| hjfubjD)}(hhh]j)}(hthe second file descriptorh]hthe second file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM{ hjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhM| hj*ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h'int __audit_sockaddr (int len, void *a)h]h)}(h&int __audit_sockaddr(int len, void *a)h](h)}(hinth]hint}(hjƵhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjµhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjյhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjµhhhjԵhM ubj)}(h__audit_sockaddrh]j)}(h__audit_sockaddrh]h__audit_sockaddr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjµhhhjԵhM ubj/)}(h(int len, void *a)h](j5)}(hint lenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hvoid *ah](h)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hj6 h]ha}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjµhhhjԵhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjԵhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԵhM hjhhubj)}(hhh]j)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԵhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``int len`` data length in user space ``void *a`` data address in kernel space **Description** Returns 0 for success or NULL context or < 0 on error.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(h&``int len`` data length in user space h](j()}(h ``int len``h]j.)}(hj˶h]hint len}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjɶubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjŶubjD)}(hhh]j)}(hdata length in user spaceh]hdata length in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjŶubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj¶ubj")}(h)``void *a`` data address in kernel space h](j()}(h ``void *a``h]j.)}(hjh]hvoid *a}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hdata address in kernel spaceh]hdata address in kernel space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj¶ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(h6Returns 0 for success or NULL context or < 0 on error.h]h6Returns 0 for success or NULL context or < 0 on error.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h5int audit_signal_info_syscall (struct task_struct *t)h]h)}(h4int audit_signal_info_syscall(struct task_struct *t)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(haudit_signal_info_syscallh]j)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(h(struct task_struct *t)h]j5)}(hstruct task_struct *th](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjηhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h task_structh]h task_struct}(hj߷hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjܷubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_signal_info_syscallasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjmh]ht}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhjhM ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjyhhubj)}(hhh]j)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj@hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[jj[jjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct task_struct *t`` task being signaled **Description** If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.h](j)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj_ubj)}(hhh]j")}(h.``struct task_struct *t`` task being signaled h](j()}(h``struct task_struct *t``h]j.)}(hjh]hstruct task_struct *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj~ubjD)}(hhh]j)}(htask being signaledh]htask being signaled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj_ubj)}(h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.h]h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.}(hjոhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hfint __audit_log_bprm_fcaps (struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h]h)}(heint __audit_log_bprm_fcaps(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj)}(h__audit_log_bprm_fcapsh]j)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM ubj/)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j5)}(hstruct linux_binprm *bprmh](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsj'sbc.__audit_log_bprm_fcapsasbuh1hhj=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hbprmh]hbprm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hconst struct cred *newh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjιhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj۹hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j{c.__audit_log_bprm_fcapsasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj:ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj;)}(hj>h]hstruct}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj:ubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hhh]j)}(hcredh]hcred}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjymodnameN classnameNjwjz)}j}]j{c.__audit_log_bprm_fcapsasbuh1hhj:ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(hjںhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj׺hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hXp**Parameters** ``struct linux_binprm *bprm`` pointer to the bprm being processed ``const struct cred *new`` the proposed new credentials ``const struct cred *old`` the old credentials **Description** Simply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall -Erich](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j()}(h``struct linux_binprm *bprm``h]j.)}(hjh]hstruct linux_binprm *bprm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hM hj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hM hjubj")}(h8``const struct cred *new`` the proposed new credentials h](j()}(h``const struct cred *new``h]j.)}(hjTh]hconst struct cred *new}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjNubjD)}(hhh]j)}(hthe proposed new credentialsh]hthe proposed new credentials}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihM hjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihM hjubj")}(h/``const struct cred *old`` the old credentials h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hthe old credentialsh]hthe old credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjȻh]h Description}(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:299: ./kernel/auditsc.chM hjubj)}(hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscallh]hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall}(hj޻hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(h-Erich]h-Eric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__audit_log_capset (C function)c.__audit_log_capsethNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hHvoid __audit_log_capset (const struct cred *new, const struct cred *old)h]h)}(hGvoid __audit_log_capset(const struct cred *new, const struct cred *old)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hM ubj)}(h__audit_log_capseth]j)}(h__audit_log_capseth]h__audit_log_capset}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj*hM ubj/)}(h0(const struct cred *new, const struct cred *old)h](j5)}(hconst struct cred *newh](j;)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj;)}(hj>h]hstruct}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj?sbc.__audit_log_capsetasbuh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hnewh]hnew}(hjͼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubj5)}(hconst struct cred *oldh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!modnameN classnameNjwjz)}j}]jc.__audit_log_capsetasbuh1hhjubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj*hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj*hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hM hjhhubj)}(hhh]j)}(h;store information about the arguments to the capset syscallh]h;store information about the arguments to the capset syscall}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``const struct cred *new`` the new credentials ``const struct cred *old`` the old (current) credentials **Description** Record the arguments userspace sent to sys_capset for later printing by the audit system if applicableh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(h/``const struct cred *new`` the new credentials h](j()}(h``const struct cred *new``h]j.)}(hjýh]hconst struct cred *new}(hjŽhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hthe new credentialsh]hthe new credentials}(hjܽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjؽhM hjٽubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjؽhM hjubj")}(h9``const struct cred *old`` the old (current) credentials h](j()}(h``const struct cred *old``h]j.)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hthe old (current) credentialsh]hthe old (current) credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_core_dumps (C function)c.audit_core_dumpshNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h"void audit_core_dumps (long signr)h]h)}(h!void audit_core_dumps(long signr)h](h)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjhM ubj)}(haudit_core_dumpsh]j)}(haudit_core_dumpsh]haudit_core_dumps}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjhM ubj/)}(h (long signr)h]j5)}(h long signrh](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjǾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsignrh]hsignr}(hjվhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjhM ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjqhhubj)}(hhh]j)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``long signr`` signal value **Description** If a process ends with a core dump, something fishy is going on and we should record the event for investigation.h](j)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh]j")}(h``long signr`` signal value h](j()}(h``long signr``h]j.)}(hj@h]h long signr}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj:ubjD)}(hhh]j)}(h signal valueh]h signal value}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhM hjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhM hj7ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.h]hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_seccomp (C function)c.audit_seccomphNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h@void audit_seccomp (unsigned long syscall, long signr, int code)h]h)}(h?void audit_seccomp(unsigned long syscall, long signr, int code)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM ubh)}(h h]h }(hjϿhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjοhM ubj)}(h audit_seccomph]j)}(h audit_seccomph]h audit_seccomp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjݿubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjοhM ubj/)}(h-(unsigned long syscall, long signr, int code)h](j5)}(hunsigned long syscallh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsyscallh]hsyscall}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h long signrh](h)}(hlongh]hlong}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hsignrh]hsignr}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint codeh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcodeh]hcode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjοhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjοhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjοhM hjhhubj)}(hhh]j)}(h)record information about a seccomp actionh]h)record information about a seccomp action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjοhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX**Parameters** ``unsigned long syscall`` syscall number ``long signr`` signal value ``int code`` the seccomp action **Description** Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hhh](j")}(h)``unsigned long syscall`` syscall number h](j()}(h``unsigned long syscall``h]j.)}(hj h]hunsigned long syscall}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubjD)}(hhh]j)}(hsyscall numberh]hsyscall number}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(h``long signr`` signal value h](j()}(h``long signr``h]j.)}(hjCh]h long signr}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hj=ubjD)}(hhh]j)}(h signal valueh]h signal value}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhM hjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhM hjubj")}(h ``int code`` the seccomp action h](j()}(h ``int code``h]j.)}(hj|h]hint code}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjvubjD)}(hhh]j)}(hthe seccomp actionh]hthe seccomp action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubj)}(hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h]hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:299: ./kernel/auditsc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌaudit_rule_change (C function)c.audit_rule_changehNtauh1hhjp{hhhNhNubh)}(hhh](h)}(hDint audit_rule_change (int type, int seq, void *data, size_t datasz)h]h)}(hCint audit_rule_change(int type, int seq, void *data, size_t datasz)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMhubj)}(haudit_rule_changeh]j)}(haudit_rule_changeh]haudit_rule_change}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMhubj/)}(h.(int type, int seq, void *data, size_t datasz)h](j5)}(hint typeh](h)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(htypeh]htype}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(hint seqh](h)}(hinth]hint}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hseqh]hseq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(h void *datah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubj5)}(h size_t dataszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_rule_changeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdataszh]hdatasz}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhhjhhubj)}(hhh]j)}(h-apply all rules to the specified message typeh]h-apply all rules to the specified message type}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhhj=hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``int type`` audit message type ``int seq`` netlink audit message sequence (serial) number ``void *data`` payload data ``size_t datasz`` size of payload datah](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMlhj\ubj)}(hhh](j")}(h ``int type`` audit message type h](j()}(h ``int type``h]j.)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMihj{ubjD)}(hhh]j)}(haudit message typeh]haudit message type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhMihjxubj")}(h;``int seq`` netlink audit message sequence (serial) number h](j()}(h ``int seq``h]j.)}(hjh]hint seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMjhjubjD)}(hhh]j)}(h.netlink audit message sequence (serial) numberh]h.netlink audit message sequence (serial) number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMjhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMjhjxubj")}(h``void *data`` payload data h](j()}(h``void *data``h]j.)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMkhjubjD)}(hhh]j)}(h payload datah]h payload data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMkhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMkhjxubj")}(h&``size_t datasz`` size of payload datah](j()}(h``size_t datasz``h]j.)}(hj,h]h size_t datasz}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMmhj&ubjD)}(hhh]j)}(hsize of payload datah]hsize of payload data}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMlhjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMmhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"audit_list_rules_send (C function)c.audit_list_rules_sendhNtauh1hhjp{hhhNhNubh)}(hhh](h)}(h@int audit_list_rules_send (struct sk_buff *request_skb, int seq)h]h)}(h?int audit_list_rules_send(struct sk_buff *request_skb, int seq)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(haudit_list_rules_sendh]j)}(haudit_list_rules_sendh]haudit_list_rules_send}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h&(struct sk_buff *request_skb, int seq)h](j5)}(hstruct sk_buff *request_skbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.audit_list_rules_sendasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h request_skbh]h request_skb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint seqh](h)}(hinth]hint}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hseqh]hseq}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj{hhubj)}(hhh]j)}(hlist the audit rulesh]hlist the audit rules}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(h**Parameters** ``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) ``int seq`` netlink audit message sequence (serial) numberh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjubj)}(hhh](j")}(h]``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) h](j()}(h``struct sk_buff *request_skb``h]j.)}(hjh]hstruct sk_buff *request_skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjubjD)}(hhh]j)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hqstrh]hqstr}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.audit_compare_dname_pathasbuh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdnameh]hdname}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *pathh](j;)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int parentlenh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h parentlenh]h parentlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h[compare given dentry name with last component in given path. Return of 0 indicates a match.h]h[compare given dentry name with last component in given path. Return of 0 indicates a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjp{hNhNubj)}(hX **Parameters** ``const struct qstr *dname`` dentry name that we're comparing ``const char *path`` full pathname that we're comparing ``int parentlen`` length of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h](j)}(h**Parameters**h]j)}(hj$h]h Parameters}(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:302: ./kernel/auditfilter.chMhjubj)}(hhh](j")}(h>``const struct qstr *dname`` dentry name that we're comparing h](j()}(h``const struct qstr *dname``h]j.)}(hjCh]hconst struct qstr *dname}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhj=ubjD)}(hhh]j)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hjXhMhj: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&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjvubjD)}(hhh]j)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj: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.)}(hjh]h int parentlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:302: ./kernel/auditfilter.chMhjubjD)}(hhh]j)}(hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h]hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjp{hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM&ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM2ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsys_acct (C function) c.sys_accthNtauh1hhjhhhNhNubh)}(hhh](h)}(h(long sys_acct (const char __user * name)h]h)}(h&long sys_acct(const char __user *name)h](h)}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM0ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj5hM0ubj)}(hsys_accth]j)}(hsys_accth]hsys_acct}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj5hM0ubj/)}(h(const char __user *name)h]j5)}(hconst char __user *nameh](j;)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj`ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh__user}(hj`hhhNhNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj\ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj5hM0ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj5hM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hM0hjhhubj)}(hhh]j)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hM0ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``const char __user * name`` file name for accounting records or NULL to shutdown accounting **Description** sys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown. **Return** 0 for success or negative errno values for failure.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM4hjubj)}(hhh]j")}(h]``const char __user * name`` file name for accounting records or NULL to shutdown accounting h](j()}(h``const char __user * name``h]j.)}(hj%h]hconst char __user * name}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM1hjubjD)}(hhh]j)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hM1hj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hM1hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM3hjubj)}(hsys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown.h]hsys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM3hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM8hjubj)}(h30 for success or negative errno values for failure.h]h30 for success or negative errno values for failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌacct_collect (C function)c.acct_collecthNtauh1hhjhhhNhNubh)}(hhh](h)}(h1void acct_collect (long exitcode, int group_dead)h]h)}(h0void acct_collect(long exitcode, int group_dead)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMFubj)}(h acct_collecth]j)}(h acct_collecth]h acct_collect}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMFubj/)}(h(long exitcode, int group_dead)h](j5)}(h long exitcodeh](h)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hexitcodeh]hexitcode}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hint group_deadh](h)}(hinth]hint}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h group_deadh]h group_dead}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]j)}(h0collect accounting information into pacct_structh]h0collect accounting information into pacct_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h~**Parameters** ``long exitcode`` task exit code ``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMJhjubj)}(hhh](j")}(h!``long exitcode`` task exit code h](j()}(h``long exitcode``h]j.)}(hjh]h long exitcode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMGhjubjD)}(hhh]j)}(htask exit codeh]htask exit code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMGhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMGhjubj")}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j()}(h``int group_dead``h]j.)}(hjh]hint group_dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMIhjubjD)}(hhh]j)}(h5not 0, if this thread is the last one in the process.h]h5not 0, if this thread is the last one in the process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMHhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌacct_process (C function)c.acct_processhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid acct_process (void)h]h)}(hvoid acct_process(void)h](h)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhMubj)}(h acct_processh]j)}(h acct_processh]h acct_process}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjfhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjfhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjMhhubj)}(hhh]j)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMhjubj)}(hhh]j")}(h``void`` no argumentsh](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chMhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:308: ./kernel/acct.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM2ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhM8ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_advance (C function) c.bio_advancehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h7void bio_advance (struct bio *bio, unsigned int nbytes)h]h)}(h6void bio_advance(struct bio *bio, unsigned int nbytes)h](h)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhK|ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjhK|ubj)}(h bio_advanceh]j)}(h bio_advanceh]h bio_advance}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjhK|ubj/)}(h&(struct bio *bio, unsigned int nbytes)h](j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.bio_advanceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int nbytesh](h)}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnbytesh]hnbytes}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjhK|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjhK|ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhK|hjhhhubj)}(hhh]j)}(h0increment/complete a bio by some number of bytesh]h0increment/complete a bio by some number of bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhK|hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhK|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct bio *bio`` bio to advance ``unsigned int nbytes`` number of bytes to complete **Description** This updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well. **bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhKhjubj)}(hhh](j")}(h#``struct bio *bio`` bio to advance h](j()}(h``struct bio *bio``h]j.)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhK}hjubjD)}(hhh]j)}(hbio to advanceh]hbio to advance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK}hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK}hjubj")}(h4``unsigned int nbytes`` number of bytes to complete h](j()}(h``unsigned int nbytes``h]j.)}(hjh]hunsigned int nbytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhK~hjubjD)}(hhh]j)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK~hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK~hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhKhjubj)}(hThis updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.h]hThis updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn’t align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhKhjubj)}(hI**bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**bio**h]hbio}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhB will then represent the remaining, uncompleted portion of the io.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_iter (C struct) c.folio_iterhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h folio_iterh]h)}(hstruct folio_iterh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h folio_iterh]j)}(hjh]h folio_iter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h(State for iterating all folios in a bio.h]h(State for iterating all folios in a bio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqstructeh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hXY**Definition**:: struct folio_iter { struct folio *folio; size_t offset; size_t length; }; **Members** ``folio`` The current folio we're iterating. NULL after the last folio. ``offset`` The byte offset within the current folio. ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubjo)}(hUstruct folio_iter { struct folio *folio; size_t offset; size_t length; };h]hUstruct folio_iter { struct folio *folio; size_t offset; size_t length; };}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubj)}(h **Members**h]j)}(hj+h]hMembers}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubj)}(hhh](j")}(hI``folio`` The current folio we're iterating. NULL after the last folio. h](j()}(h ``folio``h]j.)}(hjJh]hfolio}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM hjDubjD)}(hhh]j)}(h>The current folio we're iterating. NULL after the last folio.h]h@The current folio we’re iterating. NULL after the last folio.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hM hj`ubah}(h]h ]h"]h$]h&]uh1jChjDubeh}(h]h ]h"]h$]h&]uh1j!hj_hM hjAubj")}(h5``offset`` The byte offset within the current folio. h](j()}(h ``offset``h]j.)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM hj}ubjD)}(hhh]j)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjAubj")}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j()}(h ``length``h]j.)}(hjh]hlength}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubjD)}(hhh]j)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjAubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hbio_for_each_folio_allh]h)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]j)}(hjh]hbio_for_each_folio_all}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM;ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj,hM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hM;hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj,hM;ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjEjjEjjjuh1hhhhjIhNhNubj)}(h$``bio_for_each_folio_all (fi, bio)``h]j.)}(hjKh]h bio_for_each_folio_all (fi, bio)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM=hjIhhubj<8)}(h"Iterate over each folio in a bio. h]j)}(h!Iterate over each folio in a bio.h]h!Iterate over each folio in a bio.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM;hjaubah}(h]h ]h"]h$]h&]uh1j;8hjshM;hjIhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM?hjzubj)}(hhh](j")}(h:``fi`` struct folio_iter which is updated for each folio. h](j()}(h``fi``h]j.)}(hjh]hfi}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM<hjubjD)}(hhh]j)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM<hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM<hjubj")}(h#``bio`` struct bio to iterate over.h](j()}(h``bio``h]j.)}(hjh]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM>hjubjD)}(hhh]j)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhM=hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM>hjubeh}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_next_split (C function)c.bio_next_splithNtauh1hhjIhhhNhNubh)}(hhh](h)}(hYstruct bio * bio_next_split (struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h]h)}(hWstruct bio *bio_next_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j;)}(hj>h]hstruct}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMIubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj?hMIubh)}(hhh]j)}(hbioh]hbio}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsbio_next_splitsbc.bio_next_splitasbuh1hhj.hhhj?hMIubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj?hMIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hMIubj)}(hbio_next_splith]j)}(hjoh]hbio_next_split}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj?hMIubj/)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jmc.bio_next_splitasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int sectorsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsectorsh]hsectors}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]jmc.bio_next_splitasbuh1hhjMubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct bio_set *bsh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbio_seth]hbio_set}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jmc.bio_next_splitasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbsh]hbs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj.hhhj?hMIubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj*hhhj?hMIubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMIhj'hhubj)}(hhh]j)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# from a bio, splitting if necessary}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMIhjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj?hMIubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMMhjHubj)}(hhh](j")}(h!``struct bio *bio`` bio to split h](j()}(h``struct bio *bio``h]j.)}(hjmh]hstruct bio *bio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMJhjgubjD)}(hhh]j)}(h bio to splith]h bio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMJhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhMJhjdubj")}(hE``int sectors`` number of sectors to split from the front of **bio** h](j()}(h``int sectors``h]j.)}(hjh]h int sectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMKhjubjD)}(hhh]j)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMKhjdubj")}(h``gfp_t gfp`` gfp mask h](j()}(h ``gfp_t gfp``h]j.)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMLhjubjD)}(hhh]j)}(hgfp maskh]hgfp mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjdubj")}(h0``struct bio_set *bs`` bio set to allocate from h](j()}(h``struct bio_set *bs``h]j.)}(hj&h]hstruct bio_set *bs}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMMhj ubjD)}(hhh]j)}(hbio set to allocate fromh]hbio set to allocate from}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMMhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMMhjdubeh}(h]h ]h"]h$]h&]uh1jhjHubj)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMOhjHubj)}(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 }(hjwhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh of }(hjwhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh - if the bio is smaller than }(hjwhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh%, returns the original bio unchanged.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMOhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjIhhhNhNubh)}(hhh](h)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]h)}(hh]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(hbioh]hbio}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjsbc.bio_is_zone_appendasbuh1hhj/ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(his this a zone append bio?h]his this a zone append bio?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hXD**Parameters** ``struct bio *bio`` bio to check **Description** Check if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubj)}(hhh]j")}(h!``struct bio *bio`` bio to check h](j()}(h``struct bio *bio``h]j.)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubjD)}(hhh]j)}(h bio to checkh]h bio to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubj)}(hCheck if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](h Check if }(hjHhhhNhNubj)}(h**bio**h]hbio}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_queue_flag_set (C function)c.blk_queue_flag_sethNtauh1hhjIhhhNhNubh)}(hhh](h)}(hDvoid blk_queue_flag_set (unsigned int flag, struct request_queue *q)h]h)}(hCvoid blk_queue_flag_set(unsigned int flag, struct request_queue *q)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKLubj)}(hblk_queue_flag_seth]j)}(hblk_queue_flag_seth]hblk_queue_flag_set}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKLubj/)}(h,(unsigned int flag, struct request_queue *q)h](j5)}(hunsigned int flagh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagh]hflag}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_queue_flag_setasbuh1hhjubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKLubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKLubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhKLhj~hhubj)}(hhh]j)}(hatomically set a queue flagh]hatomically set a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhKLubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hc**Parameters** ``unsigned int flag`` flag to be set ``struct request_queue *q`` request queueh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKPhjubj)}(hhh](j")}(h%``unsigned int flag`` flag to be set h](j()}(h``unsigned int flag``h]j.)}(hjh]hunsigned int flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKMhjubjD)}(hhh]j)}(hflag to be seth]hflag to be set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKMhjubj")}(h)``struct request_queue *q`` request queueh](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKOhj ubjD)}(hhh]j)}(h request queueh]h request queue}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKNhj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hKOhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hFvoid blk_queue_flag_clear (unsigned int flag, struct request_queue *q)h]h)}(hEvoid blk_queue_flag_clear(unsigned int flag, struct request_queue *q)h](h)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKWubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhj{hKWubj)}(hblk_queue_flag_clearh]j)}(hblk_queue_flag_clearh]hblk_queue_flag_clear}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhj{hKWubj/)}(h,(unsigned int flag, struct request_queue *q)h](j5)}(hunsigned int flagh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagh]hflag}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_queue_flag_clearasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhj{hKWubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjehhhj{hKWubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hKWhjbhhubj)}(hhh]j)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKWhjzhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hKWubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hg**Parameters** ``unsigned int flag`` flag to be cleared ``struct request_queue *q`` request queueh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chK[hjubj)}(hhh](j")}(h)``unsigned int flag`` flag to be cleared h](j()}(h``unsigned int flag``h]j.)}(hjh]hunsigned int flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKXhjubjD)}(hhh]j)}(hflag to be clearedh]hflag to be cleared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKXhjubj")}(h)``struct request_queue *q`` request queueh](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKZhjubjD)}(hhh]j)}(h request queueh]h request queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKYhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKZhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_op_str (C function) c.blk_op_strhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h(const char * blk_op_str (enum req_op op)h]h)}(h&const char *blk_op_str(enum req_op op)h](j;)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjMhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKuubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj^hKuubh)}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhj^hKuubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj^hKuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj^hKuubj)}(h blk_op_strh]j)}(h blk_op_strh]h blk_op_str}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMhhhj^hKuubj/)}(h(enum req_op op)h]j5)}(henum req_op oph](j;)}(hjh]henum}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hreq_oph]hreq_op}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.blk_op_strasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjMhhhj^hKuubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhj^hKuubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj^hKuhjFhhubj)}(hhh]j)}(h$Return string XXX in the REQ_OP_XXX.h]h$Return string XXX in the REQ_OP_XXX.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKuhj)hhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj^hKuubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKyhjHubj)}(hhh]j")}(h``enum req_op op`` REQ_OP_XXX. h](j()}(h``enum req_op op``h]j.)}(hjmh]henum req_op op}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKvhjgubjD)}(hhh]j)}(h REQ_OP_XXX.h]h REQ_OP_XXX.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKvhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhKvhjdubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKxhjHubj)}(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”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKxhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h-void blk_sync_queue (struct request_queue *q)h]h)}(h,void blk_sync_queue(struct request_queue *q)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hblk_sync_queueh]j)}(hblk_sync_queueh]hblk_sync_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h request_queueh]h request_queue}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_sync_queueasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h'cancel any pending callbacks on a queueh]h'cancel any pending callbacks on a queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct request_queue *q`` the queue **Description** The block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubj)}(hhh]j")}(h&``struct request_queue *q`` the queue h](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubjD)}(hhh]j)}(h the queueh]h the queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj(h]h Description}(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:315: ./block/blk-core.chKhjubj<8)}(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](j)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhj>ubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhj>ubeh}(h]h ]h"]h$]h&]uh1j;8hjPhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h.void blk_set_pm_only (struct request_queue *q)h]h)}(h-void blk_set_pm_only(struct request_queue *q)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hblk_set_pm_onlyh]j)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_set_pm_onlyasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhjhKubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhKhj{hhubj)}(hhh]j)}(hincrement pm_only counterh]hincrement pm_only counter}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjBhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhjIhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjaubj)}(hhh]j")}(h1``struct request_queue *q`` request queue pointerh](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubjD)}(hhh]j)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_put_queue (C function)c.blk_put_queuehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h,void blk_put_queue (struct request_queue *q)h]h)}(h+void blk_put_queue(struct request_queue *q)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h blk_put_queueh]j)}(h blk_put_queueh]h blk_put_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj=modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_put_queueasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubj)}(hhh]j")}(hV``struct request_queue *q`` the request_queue structure to decrement the refcount for h](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_get_queue (C function)c.blk_get_queuehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h,bool blk_get_queue (struct request_queue *q)h]h)}(h+bool blk_get_queue(struct request_queue *q)h](h)}(hjoh]hbool}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhjmhMubj)}(h blk_get_queueh]j)}(h blk_get_queueh]h blk_get_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhhjmhMubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_get_queueasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj\hhhjmhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjmhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjUhhubj)}(hhh]j)}(h$increment the request_queue refcounth]h$increment the request_queue refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjmhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj6jj6jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj: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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjYubjD)}(hhh]j)}(h9the request_queue structure to increment the refcount forh]h9the request_queue structure to increment the refcount for}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj:ubj)}(h4Increment the refcount of the request_queue kobject.h]h4Increment the refcount of the request_queue kobject.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj:ubj)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj:ubj)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjIhhhNhNubh)}(hhh](h)}(h(void submit_bio_noacct (struct bio *bio)h]h)}(h'void submit_bio_noacct(struct bio *bio)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsubmit_bio_noaccth]j)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct bio *bio)h]j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hbioh]hbio}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjcmodnameN classnameNjwjz)}j}]j)}jsj)sbc.submit_bio_noacctasbuh1hhj?ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj;ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h1re-submit a bio to the block device layer for I/Oh]h1re-submit a bio to the block device layer for I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubj)}(hhh]j")}(hQ``struct bio *bio`` The bio describing the location in memory and on the device. h](j()}(h``struct bio *bio``h]j.)}(hjh]hstruct bio *bio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.submit_bioasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM~ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM~ubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhM~hj|hhubj)}(hhh]j)}(h.submit a bio to the block device layer for I/Oh]h.submit a bio to the block device layer for I/O}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM~hjDhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhM~ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_jj_jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjcubj)}(hhh]j")}(hK``struct bio *bio`` The :c:type:`struct bio ` which describes the I/O h](j()}(h``struct bio *bio``h]j.)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hjhhhNhNubh)}(h:c:type:`struct bio `h]j.)}(hjh]h struct bio}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8biouh1hhjhMhjubh which describes the I/O}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjcubj)}(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 }(hjhhhNhNubh)}(h:c:type:`struct bio `h]j.)}(hjh]h struct bio}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8biouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubhr that describes the I/O that needs to be done. The bio will be send to the device described by the bi_bdev field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjcubj)}(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 }(hj.hhhNhNubj)}(h**bio**h]hbio}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubhQ. The bio must NOT be touched by the caller until ->bi_end_io() has been called.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_poll (C function) c.bio_pollhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hMint bio_poll (struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h]h)}(hLint bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](h)}(hinth]hint}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhj}hMubj)}(hbio_pollh]j)}(hbio_pollh]hbio_poll}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhj}hMubj/)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.bio_pollasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct io_comp_batch *iobh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h io_comp_batchh]h io_comp_batch}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]j c.bio_pollasbuh1hhjubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiobh]hiob}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjkhhhj}hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjdhhubj)}(hhh]j)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj ubj)}(hhh](j")}(h$``struct bio *bio`` bio to poll for h](j()}(h``struct bio *bio``h]j.)}(hj1h]hstruct bio *bio}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj+ubjD)}(hhh]j)}(hbio to poll forh]hbio to poll for}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhMhj(ubj")}(h,``struct io_comp_batch *iob`` batches of IO h](j()}(h``struct io_comp_batch *iob``h]j.)}(hjjh]hstruct io_comp_batch *iob}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjdubjD)}(hhh]j)}(h batches of IOh]h batches of IO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj(ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj ubj)}(haPoll for completions on queue associated with the bio. Returns number of completed entries found.h]haPoll for completions on queue associated with the bio. Returns number of completed entries found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj ubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj ubj)}(h|the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h5the caller must either be the context that submitted }(hjhhhNhNubj)}(h**bio**h]hbio}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8, or be in a RCU critical section to prevent freeing of }(hjhhhNhNubj)}(h**bio**h]hbio}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjIhhhNhNubh)}(hhh](h)}(h1unsigned long bio_start_io_acct (struct bio *bio)h]h)}(h0unsigned long bio_start_io_acct(struct bio *bio)h](h)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj|hMubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhj|hMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj|hMubj)}(hbio_start_io_accth]j)}(hbio_start_io_accth]hbio_start_io_acct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj|hMubj/)}(h(struct bio *bio)h]j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.bio_start_io_acctasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhj|hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhjchhubj)}(hhh]j)}(h*start I/O accounting for bio based driversh]h*start I/O accounting for bio based drivers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjfubj)}(hhh]j")}(h-``struct bio *bio`` bio to start account for h](j()}(h``struct bio *bio``h]j.)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(hbio to start account forh]hbio to start account for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjfubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h*int blk_lld_busy (struct request_queue *q)h]h)}(h)int blk_lld_busy(struct request_queue *q)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM7ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM7ubj)}(h blk_lld_busyh]j)}(h blk_lld_busyh]h blk_lld_busy}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM7ubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(h request_queueh]h request_queue}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsj.sbc.blk_lld_busyasbuh1hhjDubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj@ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM7ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM7hjhhubj)}(hhh]j)}(h:Check if underlying low-level drivers of a device are busyh]h:Check if underlying low-level drivers of a device are busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM;hjubj)}(hhh]j")}(hB``struct request_queue *q`` the queue of the device being checked h](j()}(h``struct request_queue *q``h]j.)}(hj h]hstruct request_queue *q}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM8hjubjD)}(hhh]j)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM8hj!ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM8hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM:hjubj<8)}(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](j)}(hCheck if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first.h]hCheck if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM:hj\ubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM>hj\ubeh}(h]h ]h"]h$]h&]uh1j;8hjnhM:hjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMDhjubj<8)}(h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h]j)}(h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h]h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMEhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_start_plug (C function)c.blk_start_plughNtauh1hhjIhhhNhNubh)}(hhh](h)}(h+void blk_start_plug (struct blk_plug *plug)h]h)}(h*void blk_start_plug(struct blk_plug *plug)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMzubj)}(hblk_start_plugh]j)}(hblk_start_plugh]hblk_start_plug}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMzubj/)}(h(struct blk_plug *plug)h]j5)}(hstruct blk_plug *plugh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hblk_plugh]hblk_plug}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_start_plugasbuh1hhjubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hplugh]hplug}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMzubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMzhjhhubj)}(hhh]j)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMzubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./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.)}(hjh]hstruct blk_plug *plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM{hjubjD)}(hhh]j)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j.)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8blk_pluguh1hhjhM{hjubh that needs to be initialized}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM}hjubj<8)}(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](j)}(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 }(hjNhhhNhNubj.)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubh+, or if the size of the I/O is larger than }(hjNhhhNhNubj.)}(h``BLK_PLUG_FLUSH_SIZE``h]hBLK_PLUG_FLUSH_SIZE}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM}hjJubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjJubeh}(h]h ]h"]h$]h&]uh1j;8hjhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_finish_plug (C function)c.blk_finish_plughNtauh1hhjIhhhNhNubh)}(hhh](h)}(h,void blk_finish_plug (struct blk_plug *plug)h]h)}(h+void blk_finish_plug(struct blk_plug *plug)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hblk_finish_plugh]j)}(hblk_finish_plugh]hblk_finish_plug}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct blk_plug *plug)h]j5)}(hstruct blk_plug *plugh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hblk_plugh]hblk_plug}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_finish_plugasbuh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hplugh]hplug}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubj)}(hhh]j")}(h^``struct blk_plug *plug`` The :c:type:`struct blk_plug ` passed to blk_start_plug() h](j()}(h``struct blk_plug *plug``h]j.)}(hjh]hstruct blk_plug *plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubjD)}(hhh]j)}(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 ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8blk_pluguh1hhjhMhjubh passed to blk_start_plug()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubj)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hGint blk_queue_enter (struct request_queue *q, blk_mq_req_flags_t flags)h]h)}(hFint blk_queue_enter(struct request_queue *q, blk_mq_req_flags_t flags)h](h)}(hinth]hint}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM,ubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjhhM,ubj)}(hblk_queue_enterh]j)}(hblk_queue_enterh]hblk_queue_enter}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhhjhhM,ubj/)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj}sbc.blk_queue_enterasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hblk_mq_req_flags_t flagsh](h)}(hhh]j)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jc.blk_queue_enterasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjVhhhjhhM,ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjhhM,ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhM,hjOhhubj)}(hhh]j)}(h"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM,hj^hhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhM,ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM0hj}ubj)}(hhh](j")}(h2``struct request_queue *q`` request queue pointer h](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM-hjubjD)}(hhh]j)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM-hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM-hjubj")}(hC``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](j()}(h``blk_mq_req_flags_t flags``h]j.)}(hjh]hblk_mq_req_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM/hjubjD)}(hhh]j)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-core.chM.hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjIhhhNhNubh)}(hhh](h)}(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]h)}(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](h)}(hinth]hint}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhjChMubj)}(hblk_rq_map_user_iovh]j)}(hblk_rq_map_user_iovh]hblk_rq_map_user_iov}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhjChMubj/)}(hx(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjrhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjXsbc.blk_rq_map_user_iovasbuh1hhjnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct request *rqh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hstruct rq_map_data *map_datah](j;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h rq_map_datah]h rq_map_data}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hmap_datah]hmap_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hconst struct iov_iter *iterh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiterh]hiter}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]jc.blk_rq_map_user_iovasbuh1hhjJubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hgfp_maskh]hgfp_mask}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhjChMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChMhj*hhubj)}(hhh]j)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj)}(hhh](j")}(hK``struct request_queue *q`` request queue where request should be inserted h](j()}(h``struct request_queue *q``h]j.)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h.``struct request *rq`` request to map data to h](j()}(h``struct request *rq``h]j.)}(hj!h]hstruct request *rq}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hrequest to map data toh]hrequest to map data to}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hMhjubj")}(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.)}(hjZh]hstruct rq_map_data *map_data}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjTubjD)}(hhh]j)}(h7pointer to the rq_map_data holding pages (if necessary)h]h7pointer to the rq_map_data holding pages (if necessary)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohMhjubj")}(h/``const struct iov_iter *iter`` iovec iterator h](j()}(h``const struct iov_iter *iter``h]j.)}(hjh]hconst struct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hiovec iteratorh]hiovec iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj<8)}(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](j)}(hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.h]hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubeh}(h]h ]h"]h$]h&]uh1j;8hj/hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h'int blk_rq_unmap_user (struct bio *bio)h]h)}(h&int blk_rq_unmap_user(struct bio *bio)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjahhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMgubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhjshMgubj)}(hblk_rq_unmap_userh]j)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjahhhjshMgubj/)}(h(struct bio *bio)h]j5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_rq_unmap_userasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjahhhjshMgubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]hhhjshMgubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshMghjZhhubj)}(hhh]j)}(hunmap a request with user datah]hunmap a request with user data}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMghj"hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMgubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj=jj=jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMkhjAubj)}(hhh]j")}(h&``struct bio *bio`` start of bio list h](j()}(h``struct bio *bio``h]j.)}(hjfh]hstruct bio *bio}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhhj`ubjD)}(hhh]j)}(hstart of bio listh]hstart of bio list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hMhhj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hMhhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMjhjAubj<8)}(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]j)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMjhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMjhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hVint blk_rq_map_kern (struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h]h)}(hUint blk_rq_map_kern(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hblk_rq_map_kernh]j)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j5)}(hstruct request *rqh](j;)}(hj>h]hstruct}(hj-hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hhh]j)}(hrequesth]hrequest}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjMmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_rq_map_kernasbuh1hhj)ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(h void *kbufh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkbufh]hkbuf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hunsigned int lenh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj7modnameN classnameNjwjz)}j}]jgc.blk_rq_map_kernasbuh1hhj.ubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hgfp_maskh]hgfp_mask}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hrequest to fillh]hrequest to fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h!``void *kbuf`` the kernel buffer h](j()}(h``void *kbuf``h]j.)}(hjh]h void *kbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubjD)}(hhh]j)}(hthe kernel bufferh]hthe kernel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``unsigned int len`` length of user data h](j()}(h``unsigned int len``h]j.)}(hj>h]hunsigned int len}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhj8ubjD)}(hhh]j)}(hlength of user datah]hlength of user data}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hjShMhjubj")}(h+``gfp_t gfp_mask`` memory allocation flags h](j()}(h``gfp_t gfp_mask``h]j.)}(hjwh]hgfp_t gfp_mask}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjqubjD)}(hhh]j)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubj<8)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]j)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-map.chMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_register_queue (C function)c.blk_register_queuehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h-int blk_register_queue (struct gendisk *disk)h]h)}(h,int blk_register_queue(struct gendisk *disk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMLubj)}(hblk_register_queueh]j)}(hblk_register_queueh]hblk_register_queue}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMLubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj:ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hhh]j)}(hgendiskh]hgendisk}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj^modnameN classnameNjwjz)}j}]j)}jsj$sbc.blk_register_queueasbuh1hhj:ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMLubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjhhubj)}(hhh]j)}(h'register a block layer queue with sysfsh]h'register a block layer queue with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMPhjubj)}(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.)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMRhjubjD)}(hhh]j)}(h@Disk of which the request queue should be registered with sysfs.h]h@Disk of which the request queue should be registered with sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h0void blk_unregister_queue (struct gendisk *disk)h]h)}(h/void blk_unregister_queue(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhMubj)}(hblk_unregister_queueh]j)}(hblk_unregister_queueh]hblk_unregister_queue}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjjhMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_unregister_queueasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj)}(hhh]j)}(h#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj>h]h Parameters}(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:324: ./block/blk-sysfs.chMhj8ubj)}(hhh]j")}(h\``struct gendisk *disk`` Disk of which the request queue should be unregistered from sysfs. h](j()}(h``struct gendisk *disk``h]j.)}(hj]h]hstruct gendisk *disk}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj[ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhjWubjD)}(hhh]j)}(hBDisk of which the request queue should be unregistered from sysfs.h]hBDisk of which the request queue should be unregistered from sysfs.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhj8ubj)}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-sysfs.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjIhhhNhNubh)}(hhh](h)}(h7void blk_set_stacking_limits (struct queue_limits *lim)h]h)}(h6void blk_set_stacking_limits(struct queue_limits *lim)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hblk_set_stacking_limitsh]j)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct queue_limits *lim)h]j5)}(hstruct queue_limits *limh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:modnameN classnameNjwjz)}j}]j)}jsjsbc.blk_set_stacking_limitsasbuh1hhjubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chKhjubjD)}(hhh]j)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chK hjubj)}(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().}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chK hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjIhhhNhNubh)}(hhh](h)}(hRint queue_limits_commit_update (struct request_queue *q, struct queue_limits *lim)h]h)}(hQint queue_limits_commit_update(struct request_queue *q, struct queue_limits *lim)h](h)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjlhMubj)}(hqueue_limits_commit_updateh]j)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjlhMubj/)}(h3(struct request_queue *q, struct queue_limits *lim)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.queue_limits_commit_updateasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct queue_limits *limh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]jc.queue_limits_commit_updateasbuh1hhjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjlhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjShhubj)}(hhh]j)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h-``struct queue_limits *lim`` limits to apply h](j()}(h``struct queue_limits *lim``h]j.)}(hjh]hstruct queue_limits *lim}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(hlimits to applyh]hlimits to apply}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubj)}(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 }(hjXhhhNhNubj)}(h**lim**h]hlim}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjXhhhNhNubj)}(h**q**h]hq}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hYint queue_limits_commit_update_frozen (struct request_queue *q, struct queue_limits *lim)h]h)}(hXint queue_limits_commit_update_frozen(struct request_queue *q, struct queue_limits *lim)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h!queue_limits_commit_update_frozenh]j)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h3(struct request_queue *q, struct queue_limits *lim)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb#c.queue_limits_commit_update_frozenasbuh1hhjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct queue_limits *limh](j;)}(hj>h]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j1#c.queue_limits_commit_update_frozenasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:327: ./block/blk-settings.chMhjubj)}(hhh](j")}(h,``struct request_queue *q`` queue to update h](j()}(h``struct request_queue *q``h]j.)}(hj*h]hstruct request_queue *q}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj$ubjD)}(hhh]j)}(hqueue to updateh]hqueue to update}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj?hMhj!ubj")}(h-``struct queue_limits *lim`` limits to apply h](j()}(h``struct queue_limits *lim``h]j.)}(hjch]hstruct queue_limits *lim}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj]ubjD)}(hhh]j)}(hlimits to applyh]hlimits to apply}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhj!ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌqueue_limits_set (C function)c.queue_limits_sethNtauh1hhjIhhhNhNubh)}(hhh](h)}(hHint queue_limits_set (struct request_queue *q, struct queue_limits *lim)h]h)}(hGint queue_limits_set(struct request_queue *q, struct queue_limits *lim)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hMubj)}(hqueue_limits_seth]j)}(hqueue_limits_seth]hqueue_limits_set}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj$hMubj/)}(h3(struct request_queue *q, struct queue_limits *lim)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h request_queueh]h request_queue}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsj9sbc.queue_limits_setasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubj5)}(hstruct queue_limits *limh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.queue_limits_setasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj$hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj hhubj)}(hhh]j)}(happly queue limits to queueh]happly queue limits to queue}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj]jj]jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjaubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj}ubj")}(h-``struct queue_limits *lim`` limits to apply h](j()}(h``struct queue_limits *lim``h]j.)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjaubj)}(hApply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.h](hApply the limits in }(hj hhhNhNubj)}(h**lim**h]hlim}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" that were freshly initialized to }(hj hhhNhNubj)}(h**q**h]hq}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjaubj)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjIhhhNhNubh)}(hhh](h)}(hUint blk_stack_limits (struct queue_limits *t, struct queue_limits *b, sector_t start)h]h)}(hTint blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t start)h](h)}(hinth]hint}(hjr hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn hhhj hMubj)}(hblk_stack_limitsh]j)}(hblk_stack_limitsh]hblk_stack_limits}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjn hhhj hMubj/)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j5)}(hstruct queue_limits *th](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.blk_stack_limitsasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjmh]ht}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hstruct queue_limits *bh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj- hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj> hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj; ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@ modnameN classnameNjwjz)}j}]j c.blk_stack_limitsasbuh1hhj ubh)}(h h]h }(hj\ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj h]hb}(hjw hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hsector_t starth](h)}(hhh]j)}(hsector_th]hsector_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.blk_stack_limitsasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjn hhhj hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjj hhhj hMubah}(h]je ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjg hhubj)}(hhh]j)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjg hhhj hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(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:327: ./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}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj' ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj# ubjD)}(hhh]j)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj> hMhj? ubah}(h]h ]h"]h$]h&]uh1jChj# ubeh}(h]h ]h"]h$]h&]uh1j!hj> hMhj ubj")}(hR``struct queue_limits *b`` the underlying queue limits (bottom, component device) h](j()}(h``struct queue_limits *b``h]j.)}(hjb h]hstruct queue_limits *b}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj` ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj\ ubjD)}(hhh]j)}(h6the underlying queue limits (bottom, component device)h]h6the underlying queue limits (bottom, component device)}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw hMhjx ubah}(h]h ]h"]h$]h&]uh1jChj\ ubeh}(h]h ]h"]h$]h&]uh1j!hjw hMhj ubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj ubjD)}(hhh]j)}(h)first data sector within component deviceh]h)first data sector within component device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj h]h Description}(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:327: ./block/blk-settings.chMhj ubj<8)}(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](j)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj ubeh}(h]h ]h"]h$]h&]uh1j;8hj hMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hrvoid queue_limits_stack_bdev (struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h]h)}(hqvoid queue_limits_stack_bdev(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](h)}(hvoidh]hvoid}(hj4 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0 hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM>ubh)}(h h]h }(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0 hhhjB hM>ubj)}(hqueue_limits_stack_bdevh]j)}(hqueue_limits_stack_bdevh]hqueue_limits_stack_bdev}(hjU hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQ ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0 hhhjB hM>ubj/)}(hU(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j5)}(hstruct queue_limits *th](j;)}(hj>h]hstruct}(hjq hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjm ubh)}(h h]h }(hj~ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjW sbc.queue_limits_stack_bdevasbuh1hhjm ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjm ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm ubj)}(hjmh]ht}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjm ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubj5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.queue_limits_stack_bdevasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj, hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbdevh]hbdev}(hj9 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubj5)}(hsector_t offseth](h)}(hhh]j)}(hsector_th]hsector_t}(hjU hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjR ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjW modnameN classnameNjwjz)}j}]j c.queue_limits_stack_bdevasbuh1hhjN ubh)}(h h]h }(hjs hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjN ubj)}(hoffseth]hoffset}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjN ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubj5)}(hconst char *pfxh](j;)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hpfxh]hpfx}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hji ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0 hhhjB hM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj, hhhjB hM>ubah}(h]j' ah ](jjeh"]h$]h&]jj)jhuh1hhjB hM>hj) hhubj)}(hhh]j)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhj) hhhjB hM>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj*h]h Parameters}(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:327: ./block/blk-settings.chMBhj$ubj)}(hhh](j")}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j()}(h``struct queue_limits *t``h]j.)}(hjIh]hstruct queue_limits *t}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM?hjCubjD)}(hhh]j)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hM?hj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hM?hj@ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM@hj|ubjD)}(hhh]j)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM@hjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhM@hj@ubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMAhjubjD)}(hhh]j)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMAhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMAhj@ubj")}(h6``const char *pfx`` prefix to use for warnings logged h](j()}(h``const char *pfx``h]j.)}(hjh]hconst char *pfx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMBhjubjD)}(hhh]j)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMBhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMBhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMDhj$ubj<8)}(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]j)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMDhjEubah}(h]h ]h"]h$]h&]uh1j;8hjWhMDhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hRbool queue_limits_stack_integrity (struct queue_limits *t, struct queue_limits *b)h]h)}(hQbool queue_limits_stack_integrity(struct queue_limits *t, struct queue_limits *b)h](h)}(hjoh]hbool}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhMWubj)}(hqueue_limits_stack_integrityh]j)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhjhMWubj/)}(h0(struct queue_limits *t, struct queue_limits *b)h](j5)}(hstruct queue_limits *th](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.queue_limits_stack_integrityasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjmh]ht}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct queue_limits *bh](j;)}(hj>h]hstruct}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj'ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjKmodnameN classnameNjwjz)}j}]jc.queue_limits_stack_integrityasbuh1hhj'ubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj h]hb}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhjhMWubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjhMWubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjshhubj)}(hhh]j)}(hstack integrity profileh]hstack integrity profile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMWubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM[hjubj)}(hhh](j")}(h/``struct queue_limits *t`` target queue limits h](j()}(h``struct queue_limits *t``h]j.)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMXhjubjD)}(hhh]j)}(htarget queue limitsh]htarget queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMXhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMXhjubj")}(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&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMYhjubjD)}(hhh]j)}(hbase queue limitsh]hbase queue limits}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hMYhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMYhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM[hjubj)}(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 }(hjvhhhNhNubj)}(h**b**h]hb}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh can be stacked into the target }(hjvhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh". Stacking is possible if either:}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM[hjubj<8)}(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]j)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]j)}(hjh]h;does not have any integrity information stacked into it yet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM^hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@the integrity profile in **b** is identical to the one in **t** h]j)}(h?the integrity profile in **b** is identical to the one in **t**h](hthe integrity profile in }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is identical to the one in }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jj*jhjjuh1jhjubah}(h]h ]h"]h$]h&]uh1j;8hjhM^hjubj)}(hyIf **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](hIf }(hj hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh can be stacked into }(hj hhhNhNubj)}(h**t**h]ht}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh , return }(hj hhhNhNubj.)}(h``true``h]htrue}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubh. Else return }(hj hhhNhNubj.)}(h ``false``h]hfalse}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubh( and clear the integrity information in }(hj hhhNhNubj)}(h**t**h]ht}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hFvoid blk_set_queue_depth (struct request_queue *q, unsigned int depth)h]h)}(hEvoid blk_set_queue_depth(struct request_queue *q, unsigned int depth)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hblk_set_queue_depthh]j)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h-(struct request_queue *q, unsigned int depth)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blk_set_queue_depthasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjfh]hq}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned int depthh](h)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hdepthh]hdepth}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(h the request queue for the deviceh]h the request queue for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h"``unsigned int depth`` queue depthh](j()}(h``unsigned int depth``h]j.)}(hj h]hunsigned int depth}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhjubjD)}(hhh]j)}(h queue depthh]h queue depth}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-settings.chMhj6ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj5hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h2int blkdev_issue_flush (struct block_device *bdev)h]h)}(h1int blkdev_issue_flush(struct block_device *bdev)h](h)}(hinth]hint}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvhhhjhMubj)}(hblkdev_issue_flushh]j)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjvhhhjhMubj/)}(h(struct block_device *bdev)h]j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blkdev_issue_flushasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjvhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjohhubj)}(hhh]j)}(h queue a flushh]h queue a flush}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjRjjRjjjuh1hhhhjIhNhNubj)}(h**Parameters** ``struct block_device *bdev`` blockdev to issue flush for **Description** Issue a flush for the block device in question.h](j)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjVubj)}(hhh]j")}(h:``struct block_device *bdev`` blockdev to issue flush for h](j()}(h``struct block_device *bdev``h]j.)}(hj{h]hstruct block_device *bdev}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjuubjD)}(hhh]j)}(hblockdev to issue flush forh]hblockdev to issue flush for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjVubj<8)}(h/Issue a flush for the block device in question.h]j)}(hjh]h/Issue a flush for the block device in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-flush.chMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hhint blkdev_issue_discard (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h]h)}(hgint blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKLubj)}(hblkdev_issue_discardh]j)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKLubj/)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j)}jsj'sbc.blkdev_issue_discardasbuh1hhj=ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j{c.blkdev_issue_discardasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j{c.blkdev_issue_discardasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnr_sectsh]hnr_sects}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j{c.blkdev_issue_discardasbuh1hhj?ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hgfp_maskh]hgfp_mask}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj9ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKLubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKLhjhhubj)}(hhh]j)}(hqueue a discardh]hqueue a discard}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKLubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKMhjubjD)}(hhh]j)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKMhjubj")}(h!``sector_t sector`` start sector h](j()}(h``sector_t sector``h]j.)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKNhjubjD)}(hhh]j)}(h start sectorh]h start sector}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hKNhj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hKNhjubj")}(h3``sector_t nr_sects`` number of sectors to discard h](j()}(h``sector_t nr_sects``h]j.)}(hjOh]hsector_t nr_sects}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKOhjIubjD)}(hhh]j)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhKOhjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhKOhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKPhjubjD)}(hhh]j)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKPhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKPhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKRhjubj<8)}(h4Issue a discard request for the sectors in question.h]j)}(hjh]h4Issue a discard request for the sectors in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKRhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjIhhhNhNubh)}(hhh](h)}(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]h)}(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](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhKubj)}(h__blkdev_issue_zeroouth]j)}(h__blkdev_issue_zeroouth]h__blkdev_issue_zeroout}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhjhKubj/)}(hr(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjNhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]j)}(h block_deviceh]h block_device}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsj4sbc.__blkdev_issue_zerooutasbuh1hhjJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jc.__blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnr_sectsh]hnr_sects}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjUmodnameN classnameNjwjz)}j}]jc.__blkdev_issue_zerooutasbuh1hhjLubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hstruct bio **bioph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.__blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioph]hbiop}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubj5)}(hunsigned flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h(generate number of zero filed write biosh]h(generate number of zero filed write bios}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chKhjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjsjjsjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjwubj)}(hhh](j")}(h0``struct block_device *bdev`` blockdev to issue h](j()}(h``struct block_device *bdev``h]j.)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjubjD)}(hhh]j)}(hblockdev to issueh]hblockdev to issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h!``sector_t sector`` start sector h](j()}(h``sector_t sector``h]j.)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjubjD)}(hhh]j)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h1``sector_t nr_sects`` number of sectors to write h](j()}(h``sector_t nr_sects``h]j.)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjubjD)}(hhh]j)}(hnumber of sectors to writeh]hnumber of sectors to write}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhjubj")}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j()}(h``gfp_t gfp_mask``h]j.)}(hjGh]hgfp_t gfp_mask}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjAubjD)}(hhh]j)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj\hMhjubj")}(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&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjzubjD)}(hhh]j)}(hpointer to anchor bioh]hpointer to anchor bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h.``unsigned flags`` controls detailed behavior h](j()}(h``unsigned flags``h]j.)}(hjh]hunsigned flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjubjD)}(hhh]j)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhjwubj<8)}(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](j)}(heZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device.h]heZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chMhj ubj)}(hIf a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP.h](h^If a device is using logical block provisioning, the underlying space will not be released if }(hjhhhNhNubj.)}(h ``flags``h]hflags}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh contains BLKDEV_ZERO_NOUNMAP.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM hj ubj)}(hIf ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](hIf }(hj>hhhNhNubj.)}(h ``flags``h]hflags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubh contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM hj ubeh}(h]h ]h"]h$]h&]uh1j;8hjhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjIhhhNhNubh)}(hhh](h)}(hxint blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h]h)}(hwint blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM(ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM(ubj)}(hblkdev_issue_zeroouth]j)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM(ubj/)}(h_(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]jc.blkdev_issue_zerooutasbuh1hhj0ubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hsectorh]hsector}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.blkdev_issue_zerooutasbuh1hhjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.blkdev_issue_zerooutasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned flagsh](h)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hflagsh]hflags}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM(ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj}hhhjhM(ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhM(hjzhhubj)}(hhh]j)}(hzero-fill a block rangeh]hzero-fill a block range}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM(hjOhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhM(ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM,hjnubj)}(hhh](j")}(h0``struct block_device *bdev`` blockdev to write h](j()}(h``struct block_device *bdev``h]j.)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM)hjubjD)}(hhh]j)}(hblockdev to writeh]hblockdev to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM)hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM)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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM*hjubjD)}(hhh]j)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM*hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM*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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM+hjubjD)}(hhh]j)}(hnumber of sectors to writeh]hnumber of sectors to write}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM+hj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM+hjubj")}(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}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj< ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM,hj8 ubjD)}(hhh]j)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS hM,hjT ubah}(h]h ]h"]h$]h&]uh1jChj8 ubeh}(h]h ]h"]h$]h&]uh1j!hjS hM,hjubj")}(h.``unsigned flags`` controls detailed behavior h](j()}(h``unsigned flags``h]j.)}(hjw h]hunsigned flags}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hju ubah}(h]h ]h"]h$]h&]uh1j'hT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM-hjq ubjD)}(hhh]j)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM-hj ubah}(h]h ]h"]h$]h&]uh1jChjq ubeh}(h]h ]h"]h$]h&]uh1j!hj hM-hjubeh}(h]h ]h"]h$]h&]uh1jhjnubj)}(h**Description**h]j)}(hj h]h Description}(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:333: ./block/blk-lib.chM/hjnubj<8)}(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]j)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for }(hj hhhNhNubj.)}(h ``flags``h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:333: ./block/blk-lib.chM/hj ubah}(h]h ]h"]h$]h&]uh1j;8hj hM/hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_rq_map_integrity_sg (C function)c.blk_rq_map_integrity_sghNtauh1hhjIhhhNhNubh)}(hhh](h)}(hLint blk_rq_map_integrity_sg (struct request *rq, struct scatterlist *sglist)h]h)}(hKint blk_rq_map_integrity_sg(struct request *rq, struct scatterlist *sglist)h](h)}(hinth]hint}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK:ubh)}(h h]h }(hj"!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj!!hK:ubj)}(hblk_rq_map_integrity_sgh]j)}(hblk_rq_map_integrity_sgh]hblk_rq_map_integrity_sg}(hj4!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0!ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj!!hK:ubj/)}(h0(struct request *rq, struct scatterlist *sglist)h](j5)}(hstruct request *rqh](j;)}(hj>h]hstruct}(hjP!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjL!ubh)}(h h]h }(hj]!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL!ubh)}(hhh]j)}(hrequesth]hrequest}(hjn!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjk!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjp!modnameN classnameNjwjz)}j}]j)}jsj6!sbc.blk_rq_map_integrity_sgasbuh1hhjL!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjL!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL!ubj)}(hrqh]hrq}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjL!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH!ubj5)}(hstruct scatterlist *sglisth](j;)}(hj>h]hstruct}(hj!hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hhh]j)}(h scatterlisth]h scatterlist}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!modnameN classnameNjwjz)}j}]j!c.blk_rq_map_integrity_sgasbuh1hhj!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hj "hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hsglisth]hsglist}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjH!ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj!!hK:ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj !hhhj!!hK:ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!!hK:hj!hhubj)}(hhh]j)}(h)Map integrity metadata into a scatterlisth]h)Map integrity metadata into a scatterlist}(hjC"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK:hj@"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!!hK:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj["jj["jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hje"h]h Parameters}(hjg"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK>hj_"ubj)}(hhh](j")}(h&``struct request *rq`` request to map h](j()}(h``struct request *rq``h]j.)}(hj"h]hstruct request *rq}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK;hj~"ubjD)}(hhh]j)}(hrequest to maph]hrequest to map}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hK;hj"ubah}(h]h ]h"]h$]h&]uh1jChj~"ubeh}(h]h ]h"]h$]h&]uh1j!hj"hK;hj{"ubj")}(h2``struct scatterlist *sglist`` target scatterlist h](j()}(h``struct scatterlist *sglist``h]j.)}(hj"h]hstruct scatterlist *sglist}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj"ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chKhj_"ubj)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./block/blk-integrity.chK>hj_"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hOint blk_trace_ioctl (struct block_device *bdev, unsigned cmd, char __user *arg)h]h)}(hNint blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)h](h)}(hinth]hint}(hj=#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9#hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMubh)}(h h]h }(hjL#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9#hhhjK#hMubj)}(hblk_trace_ioctlh]j)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hj^#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZ#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9#hhhjK#hMubj/)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjz#hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjv#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv#ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsj`#sbc.blk_trace_ioctlasbuh1hhjv#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv#ubj)}(hbdevh]hbdev}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjv#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjr#ubj5)}(h unsigned cmdh](h)}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hcmdh]hcmd}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjr#ubj5)}(hchar __user *argh](h)}(hcharh]hchar}(hj!$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj/$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh__user}(hj$hhhNhNubh)}(h h]h }(hjA$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjO$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hargh]harg}(hj\$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjr#ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj9#hhhjK#hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5#hhhjK#hMubah}(h]j0#ah ](jjeh"]h$]h&]jj)jhuh1hhjK#hMhj2#hhubj)}(hhh]j)}(h)handle the ioctls associated with tracingh]h)handle the ioctls associated with tracing}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj2#hhhjK#hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj$jj$jjjuh1hhhhjIhNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block device ``unsigned cmd`` the ioctl cmd ``char __user *arg`` the argument data, if anyh](j)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj$ubj)}(hhh](j")}(h/``struct block_device *bdev`` the block device h](j()}(h``struct block_device *bdev``h]j.)}(hj$h]hstruct block_device *bdev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj$ubjD)}(hhh]j)}(hthe block deviceh]hthe block device}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj$hMhj$ubj")}(h``unsigned cmd`` the ioctl cmd h](j()}(h``unsigned cmd``h]j.)}(hj%h]h unsigned cmd}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj$ubjD)}(hhh]j)}(h the ioctl cmdh]h the ioctl cmd}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj%hMhj$ubj")}(h.``char __user *arg`` the argument data, if anyh](j()}(h``char __user *arg``h]j.)}(hj9%h]hchar __user *arg}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7%ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj3%ubjD)}(hhh]j)}(hthe argument data, if anyh]hthe argument data, if any}(hjR%hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjO%ubah}(h]h ]h"]h$]h&]uh1jChj3%ubeh}(h]h ]h"]h$]h&]uh1j!hjN%hMhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h1void blk_trace_shutdown (struct request_queue *q)h]h)}(h0void blk_trace_shutdown(struct request_queue *q)h](h)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhhj%hMubj)}(hblk_trace_shutdownh]j)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhj%hMubj/)}(h(struct request_queue *q)h]j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hj%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj%ubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(h request_queueh]h request_queue}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j)}jsj%sbc.blk_trace_shutdownasbuh1hhj%ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjfh]hq}(hj)&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj%hhhj%hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj%hhhj%hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhj%hhubj)}(hhh]j)}(h!stop and cleanup trace structuresh]h!stop and cleanup trace structures}(hjR&hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjO&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjj&jjj&jjjuh1hhhhjIhNhNubj)}(hZ**Parameters** ``struct request_queue *q`` the request queue associated with the deviceh](j)}(h**Parameters**h]j)}(hjt&h]h Parameters}(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:339: ./kernel/trace/blktrace.chMhjn&ubj)}(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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj&ubjD)}(hhh]j)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj&ubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhjn&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hivoid blk_add_trace_rq (struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h]h)}(hhvoid blk_add_trace_rq(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h](h)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM#ubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj&hM#ubj)}(hblk_add_trace_rqh]j)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj 'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj&hhhj&hM#ubj/)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h](j5)}(hstruct request *rqh](j;)}(hj>h]hstruct}(hj*'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&'ubh)}(h h]h }(hj7'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&'ubh)}(hhh]j)}(hrequesth]hrequest}(hjH'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjE'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJ'modnameN classnameNjwjz)}j}]j)}jsj'sbc.blk_add_trace_rqasbuh1hhj&'ubh)}(h h]h }(hjh'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&'ubj)}(hjh]h*}(hjv'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&'ubj)}(hrqh]hrq}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"'ubj5)}(hblk_status_t errorh](h)}(hhh]j)}(h blk_status_th]h blk_status_t}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj'modnameN classnameNjwjz)}j}]jd'c.blk_add_trace_rqasbuh1hhj'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(herrorh]herror}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"'ubj5)}(hunsigned int nr_bytesh](h)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hinth]hint}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hnr_bytesh]hnr_bytes}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"'ubj5)}(hu32 whath](h)}(hhh]j)}(hu32h]hu32}(hj8(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:(modnameN classnameNjwjz)}j}]jd'c.blk_add_trace_rqasbuh1hhj1(ubh)}(h h]h }(hjV(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1(ubj)}(hwhath]hwhat}(hjd(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"'ubj5)}(hu64 cgidh](h)}(hhh]j)}(hu64h]hu64}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}(ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj(modnameN classnameNjwjz)}j}]jd'c.blk_add_trace_rqasbuh1hhjy(ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy(ubj)}(hcgidh]hcgid}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy(ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"'ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj&hhhj&hM#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj&hM#ubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hM#hj&hhubj)}(hhh]j)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM#hj(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hM#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM'hj(ubj)}(hhh](j")}(h*``struct request *rq`` the source request h](j()}(h``struct request *rq``h]j.)}(hj)h]hstruct request *rq}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM$hj)ubjD)}(hhh]j)}(hthe source requesth]hthe source request}(hj0)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,)hM$hj-)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj,)hM$hj)ubj")}(h,``blk_status_t error`` return status to log h](j()}(h``blk_status_t error``h]j.)}(hjP)h]hblk_status_t error}(hjR)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjN)ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM%hjJ)ubjD)}(hhh]j)}(hreturn status to logh]hreturn status to log}(hji)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje)hM%hjf)ubah}(h]h ]h"]h$]h&]uh1jChjJ)ubeh}(h]h ]h"]h$]h&]uh1j!hje)hM%hj)ubj")}(h4``unsigned int nr_bytes`` number of completed bytes h](j()}(h``unsigned int nr_bytes``h]j.)}(hj)h]hunsigned int nr_bytes}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM&hj)ubjD)}(hhh]j)}(hnumber of completed bytesh]hnumber of completed bytes}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hM&hj)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj)hM&hj)ubj")}(h``u32 what`` the action h](j()}(h ``u32 what``h]j.)}(hj)h]hu32 what}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM'hj)ubjD)}(hhh]j)}(h the actionh]h the action}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hM'hj)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj)hM'hj)ubj")}(h``u64 cgid`` the cgroup info h](j()}(h ``u64 cgid``h]j.)}(hj)h]hu64 cgid}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM(hj)ubjD)}(hhh]j)}(hthe cgroup infoh]hthe cgroup info}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hM(hj*ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj*hM(hj)ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hj6*h]h Description}(hj8*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4*ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM*hj(ubj<8)}(hDRecords an action against a request. Will log the bio offset + size.h]j)}(hjN*h]hDRecords an action against a request. Will log the bio offset + size.}(hjP*hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chM*hjL*ubah}(h]h ]h"]h$]h&]uh1j;8hj]*hM*hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjIhhhNhNubh)}(hhh](h)}(hVvoid blk_add_trace_bio (struct request_queue *q, struct bio *bio, u32 what, int error)h]h)}(hUvoid blk_add_trace_bio(struct request_queue *q, struct bio *bio, u32 what, int error)h](h)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMdubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj*hMdubj)}(hblk_add_trace_bioh]j)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj*hhhj*hMdubj/)}(h?(struct request_queue *q, struct bio *bio, u32 what, int error)h](j5)}(hstruct request_queue *qh](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j)}(h request_queueh]h request_queue}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]j)}jsj*sbc.blk_add_trace_bioasbuh1hhj*ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjfh]hq}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hj2+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.+ubh)}(h h]h }(hj?+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.+ubh)}(hhh]j)}(hbioh]hbio}(hjP+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjR+modnameN classnameNjwjz)}j}]j*c.blk_add_trace_bioasbuh1hhj.+ubh)}(h h]h }(hjn+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.+ubj)}(hjh]h*}(hj|+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.+ubj)}(hbioh]hbio}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(hu32 whath](h)}(hhh]j)}(hu32h]hu32}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+modnameN classnameNjwjz)}j}]j*c.blk_add_trace_bioasbuh1hhj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hwhath]hwhat}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubj5)}(h int errorh](h)}(hinth]hint}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(herrorh]herror}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj*ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj*hhhj*hMdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|*hhhj*hMdubah}(h]jw*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hMdhjy*hhubj)}(hhh]j)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hj0,hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMdhj-,hhubah}(h]h ]h"]h$]h&]uh1jhjy*hhhj*hMdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjH,jjH,jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjR,h]h Parameters}(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:339: ./kernel/trace/blktrace.chMhhjL,ubj)}(hhh](j")}(h0``struct request_queue *q`` queue the io is for h](j()}(h``struct request_queue *q``h]j.)}(hjq,h]hstruct request_queue *q}(hjs,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjo,ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMehjk,ubjD)}(hhh]j)}(hqueue the io is forh]hqueue the io is for}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMehj,ubah}(h]h ]h"]h$]h&]uh1jChjk,ubeh}(h]h ]h"]h$]h&]uh1j!hj,hMehjh,ubj")}(h#``struct bio *bio`` the source bio h](j()}(h``struct bio *bio``h]j.)}(hj,h]hstruct bio *bio}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMfhj,ubjD)}(hhh]j)}(hthe source bioh]hthe source bio}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMfhj,ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj,hMfhjh,ubj")}(h``u32 what`` the action h](j()}(h ``u32 what``h]j.)}(hj,h]hu32 what}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMghj,ubjD)}(hhh]j)}(h the actionh]h the action}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMghj,ubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hj,hMghjh,ubj")}(h``int error`` error, if any h](j()}(h ``int error``h]j.)}(hj-h]h int error}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhhj-ubjD)}(hhh]j)}(h error, if anyh]h error, if any}(hj5-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1-hMhhj2-ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj1-hMhhjh,ubeh}(h]h ]h"]h$]h&]uh1jhjL,ubj)}(h**Description**h]j)}(hjW-h]h Description}(hjY-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMjhjL,ubj<8)}(h@Records an action against a bio. Will log the bio offset + size.h]j)}(hjo-h]h@Records an action against a bio. Will log the bio offset + size.}(hjq-hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMjhjm-ubah}(h]h ]h"]h$]h&]uh1j;8hj~-hMjhjL,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjIhhhNhNubh)}(hhh](h)}(hVvoid blk_add_trace_bio_remap (void *ignore, struct bio *bio, dev_t dev, sector_t from)h]h)}(hUvoid blk_add_trace_bio_remap(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-hhhj-hMubj)}(hblk_add_trace_bio_remaph]j)}(hblk_add_trace_bio_remaph]hblk_add_trace_bio_remap}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj-hhhj-hMubj/)}(h9(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j5)}(h void *ignoreh](h)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hignoreh]hignore}(hj .hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubj5)}(hstruct bio *bioh](j;)}(hj>h]hstruct}(hj$.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj .ubh)}(h h]h }(hj1.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj .ubh)}(hhh]j)}(hbioh]hbio}(hjB.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjD.modnameN classnameNjwjz)}j}]j)}jsj-sbc.blk_add_trace_bio_remapasbuh1hhj .ubh)}(h h]h }(hjb.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj .ubj)}(hjh]h*}(hjp.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj .ubj)}(hbioh]hbio}(hj}.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj .ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubj5)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]j^.c.blk_add_trace_bio_remapasbuh1hhj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubj5)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_t}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj.modnameN classnameNjwjz)}j}]j^.c.blk_add_trace_bio_remapasbuh1hhj.ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hfromh]hfrom}(hj /hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj-ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj-hhhj-hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj-hhhj-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhj-hhubj)}(hhh]j)}(h%Add a trace for a bio-remap operationh]h%Add a trace for a bio-remap operation}(hj7/hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj4/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjO/jjO/jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjY/h]h Parameters}(hj[/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjS/ubj)}(hhh](j")}(h:``void *ignore`` trace callback data parameter (not used) h](j()}(h``void *ignore``h]j.)}(hjx/h]h void *ignore}(hjz/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjv/ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjr/ubjD)}(hhh]j)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jChjr/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hMhjo/ubj")}(h#``struct bio *bio`` the source bio h](j()}(h``struct bio *bio``h]j.)}(hj/h]hstruct bio *bio}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj/ubjD)}(hhh]j)}(hthe source bioh]hthe source bio}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hMhjo/ubj")}(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&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj/ubjD)}(hhh]j)}(h source deviceh]h source device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hj/hMhjo/ubj")}(h ``sector_t from`` source sector h](j()}(h``sector_t from``h]j.)}(hj#0h]h sector_t from}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!0ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj0ubjD)}(hhh]j)}(h source sectorh]h source sector}(hj<0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj80hMhj90ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj80hMhjo/ubeh}(h]h ]h"]h$]h&]uh1jhjS/ubj)}(h**Description**h]j)}(hj^0h]h Description}(hj`0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjS/ubj)}(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.}(hjt0hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjS/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjIhhhNhNubh)}(hhh](h)}(hXvoid blk_add_trace_rq_remap (void *ignore, struct request *rq, dev_t dev, sector_t from)h]h)}(hWvoid blk_add_trace_rq_remap(void *ignore, struct request *rq, dev_t dev, sector_t from)h](h)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhj0hMubj)}(hblk_add_trace_rq_remaph]j)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhj0hMubj/)}(h<(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j5)}(h void *ignoreh](h)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hignoreh]hignore}(hj 1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hstruct request *rqh](j;)}(hj>h]hstruct}(hj"1hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj1ubh)}(h h]h }(hj/1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j)}(hrequesth]hrequest}(hj@1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjB1modnameN classnameNjwjz)}j}]j)}jsj0sbc.blk_add_trace_rq_remapasbuh1hhj1ubh)}(h h]h }(hj`1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hjn1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hrqh]hrq}(hj{1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j\1c.blk_add_trace_rq_remapasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hdevh]hdev}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_t}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j\1c.blk_add_trace_rq_remapasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hfromh]hfrom}(hj 2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhj0hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhj0hMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhj0hhubj)}(hhh]j)}(h)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hj52hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj22hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjM2jjM2jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjW2h]h Parameters}(hjY2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU2ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjQ2ubj)}(hhh](j")}(h:``void *ignore`` trace callback data parameter (not used) h](j()}(h``void *ignore``h]j.)}(hjv2h]h void *ignore}(hjx2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjt2ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjp2ubjD)}(hhh]j)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjp2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhjm2ubj")}(h*``struct request *rq`` the source request h](j()}(h``struct request *rq``h]j.)}(hj2h]hstruct request *rq}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj2ubjD)}(hhh]j)}(hthe source requesth]hthe source request}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhjm2ubj")}(h``dev_t dev`` target device h](j()}(h ``dev_t dev``h]j.)}(hj2h]h dev_t dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj2ubjD)}(hhh]j)}(h target deviceh]h target device}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jChj2ubeh}(h]h ]h"]h$]h&]uh1j!hj2hMhjm2ubj")}(h ``sector_t from`` source sector h](j()}(h``sector_t from``h]j.)}(hj!3h]h sector_t from}(hj#3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhj3ubjD)}(hhh]j)}(h source sectorh]h source sector}(hj:3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj63hMhj73ubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hj63hMhjm2ubeh}(h]h ]h"]h$]h&]uh1jhjQ2ubj)}(h**Description**h]j)}(hj\3h]h Description}(hj^3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjQ2ubj<8)}(hKDevice mapper remaps request to other devices. Add a trace for that action.h]j)}(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.}(hjv3hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./kernel/trace/blktrace.chMhjr3ubah}(h]h ]h"]h$]h&]uh1j;8hj3hMhjQ2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdisk_release (C function)c.disk_releasehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h&void disk_release (struct device *dev)h]h)}(h%void disk_release(struct device *dev)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhj3hMubj)}(h disk_releaseh]j)}(h disk_releaseh]h disk_release}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj3hhhj3hMubj/)}(h(struct device *dev)h]j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj3ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hdeviceh]hdevice}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj4modnameN classnameNjwjz)}j}]j)}jsj3sbc.disk_releaseasbuh1hhj3ubh)}(h h]h }(hj&4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hj44hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdevh]hdev}(hjA4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj3ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj3hhhj3hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3hhhj3hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhj3hhubj)}(hhh]j)}(h/releases all allocated resources of the gendiskh]h/releases all allocated resources of the gendisk}(hjk4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjh4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubj)}(hhh]j")}(h9``struct device *dev`` the device representing this disk h](j()}(h``struct device *dev``h]j.)}(hj4h]hstruct device *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubjD)}(hhh]j)}(h!the device representing this diskh]h!the device representing this disk}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubj)}(h>This function releases all allocated resources of the gendisk.h]h>This function releases all allocated resources of the gendisk.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubj)}(hXBDrivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.h]hXBDrivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubj)}(h **Context**h]j)}(hj5h]hContext}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubj)}(h can sleeph]h can sleep}(hj35hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjIhhhNhNubh)}(hhh](h)}(hh]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j)}jsj5sbc.bdev_count_inflightasbuh1hhj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hparth]hpart}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj^5hhhjp5hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZ5hhhjp5hKubah}(h]jU5ah ](jjeh"]h$]h&]jj)jhuh1hhjp5hKhjW5hhubj)}(hhh]j)}(h2get the number of inflight IOs for a block device.h]h2get the number of inflight IOs for a block device.}(hj>6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj;6hhubah}(h]h ]h"]h$]h&]uh1jhjW5hhhjp5hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjV6jjV6jjjuh1hhhhjIhNhNubj)}(h**Parameters** ``struct block_device *part`` the block device. **Description** Inflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.h](j)}(h**Parameters**h]j)}(hj`6h]h Parameters}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^6ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhjZ6ubj)}(hhh]j")}(h0``struct block_device *part`` the block device. h](j()}(h``struct block_device *part``h]j.)}(hj6h]hstruct block_device *part}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}6ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhjy6ubjD)}(hhh]j)}(hthe block device.h]hthe block device.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jChjy6ubeh}(h]h ]h"]h$]h&]uh1j!hj6hKhjv6ubah}(h]h ]h"]h$]h&]uh1jhjZ6ubj)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhjZ6ubj)}(hInflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.h]hInflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhjZ6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__register_blkdev (C function)c.__register_blkdevhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hWint __register_blkdev (unsigned int major, const char *name, void (*probe)(dev_t devt))h]h)}(hVint __register_blkdev(unsigned int major, const char *name, void (*probe)(dev_t devt))h](h)}(hinth]hint}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj 7hKubj)}(h__register_blkdevh]j)}(h__register_blkdevh]h__register_blkdev}(hj 7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhj 7hKubj/)}(hA(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j5)}(hunsigned int majorh](h)}(hunsignedh]hunsigned}(hj<7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj87ubh)}(h h]h }(hjJ7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj87ubh)}(hinth]hint}(hjX7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj87ubh)}(h h]h }(hjf7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj87ubj)}(hmajorh]hmajor}(hjt7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj87ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj47ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hnameh]hname}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj47ubj5)}(hvoid (*probe)(dev_t devt)h](h)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjƏh]h(}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hprobeh]hprobe}(hj 8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubj)}(hjh]h)}(hj.8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjƏh]h(}(hj;8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hdev_th]hdev_t}(hjK8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjM8modnameN classnameNjwjz)}j}]j)}jsj"7sbc.__register_blkdevasbuh1hhj7ubh)}(h h]h }(hjk8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hdevth]hdevt}(hjy8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubj)}(hjh]h)}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj47ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhj 7hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhj 7hKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj 7hKhj6hhubj)}(hhh]j)}(hregister a new block deviceh]hregister a new block device}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj 7hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8jj8jjjuh1hhhhjIhNhNubj)}(hXR**Parameters** ``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. ``const char *name`` the name of the new block device as a zero terminated string ``void (*probe)(dev_t devt)`` pre-devtmpfs / pre-udev callback used to create disks when their pre-created device node is accessed. When a probe call uses add_disk() and it fails the driver must cleanup resources. This interface may soon be removed. **Description** The **name** must be unique within the system. The return value depends on the **major** input parameter: - if a major device number was requested in range [1..BLKDEV_MAJOR_MAX-1] then the function returns zero on success, or a negative error code - if any unused major number was requested with **major** = 0 parameter then the return value is the allocated major number in range [1..BLKDEV_MAJOR_MAX-1] or a negative error code otherwise See Documentation/admin-guide/devices.txt for the list of allocated major numbers. Use register_blkdev instead for any new code.h](j)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj8ubj)}(hhh](j")}(h``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. h](j()}(h``unsigned int major``h]j.)}(hj8h]hunsigned int major}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj8ubjD)}(hhh]j)}(huthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number.h](h>the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hj 9hhhNhNubj)}(h **major**h]hmajor}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh. = 0, try to allocate any unused major number.}(hj 9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj9ubah}(h]h ]h"]h$]h&]uh1jChj8ubeh}(h]h ]h"]h$]h&]uh1j!hj9hKhj8ubj")}(hR``const char *name`` the name of the new block device as a zero terminated string h](j()}(h``const char *name``h]j.)}(hj=9h]hconst char *name}(hj?9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;9ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chKhj79ubjD)}(hhh]j)}(hh]hstruct}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj:ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hhh]j)}(hdeviceh]hdevice}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj:modnameN classnameNjwjz)}j}]j)}jsj:sbc.add_disk_fwnodeasbuh1hhj:ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hj(;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hparenth]hparent}(hj5;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjN;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjJ;ubh)}(h h]h }(hj[;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ;ubh)}(hhh]j)}(hgendiskh]hgendisk}(hjl;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjn;modnameN classnameNjwjz)}j}]j;c.add_disk_fwnodeasbuh1hhjJ;ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ;ubj)}(hdiskh]hdisk}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJ;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(h%const struct attribute_group **groupsh](j;)}(hjh]hconst}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj;)}(hj>h]hstruct}(hj;hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;modnameN classnameNjwjz)}j}]j;c.add_disk_fwnodeasbuh1hhj;ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hjh]h*}(hj#<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj0<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hgroupsh]hgroups}(hj=<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(hstruct fwnode_handle *fwnodeh](j;)}(hj>h]hstruct}(hjV<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjR<ubh)}(h h]h }(hjc<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjR<ubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjt<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjq<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjv<modnameN classnameNjwjz)}j}]j;c.add_disk_fwnodeasbuh1hhjR<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjR<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR<ubj)}(hfwnodeh]hfwnode}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjR<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj:hhhj:hM@ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhj:hM@ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hM@hj:hhubj)}(hhh]j)}(h/add disk information to kernel list with fwnodeh]h/add disk information to kernel list with fwnode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM@hj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM@ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct device *parent`` parent device for the disk ``struct gendisk *disk`` per-device partitioning information ``const struct attribute_group **groups`` Additional per-device sysfs groups ``struct fwnode_handle *fwnode`` attached disk fwnode **Description** This function registers the partitioning information in **disk** with the kernel. Also attach a fwnode to the disk device.h](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(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:345: ./block/genhd.chMDhj<ubj)}(hhh](j")}(h5``struct device *parent`` parent device for the disk h](j()}(h``struct device *parent``h]j.)}(hj=h]hstruct device *parent}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMAhj=ubjD)}(hhh]j)}(hparent device for the diskh]hparent device for the disk}(hj1=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-=hMAhj.=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj-=hMAhj=ubj")}(h=``struct gendisk *disk`` per-device partitioning information h](j()}(h``struct gendisk *disk``h]j.)}(hjQ=h]hstruct gendisk *disk}(hjS=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjO=ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMBhjK=ubjD)}(hhh]j)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf=hMBhjg=ubah}(h]h ]h"]h$]h&]uh1jChjK=ubeh}(h]h ]h"]h$]h&]uh1j!hjf=hMBhj=ubj")}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j()}(h)``const struct attribute_group **groups``h]j.)}(hj=h]h%const struct attribute_group **groups}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMChj=ubjD)}(hhh]j)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMChj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMChj=ubj")}(h6``struct fwnode_handle *fwnode`` attached disk fwnode h](j()}(h ``struct fwnode_handle *fwnode``h]j.)}(hj=h]hstruct fwnode_handle *fwnode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMDhj=ubjD)}(hhh]j)}(hattached disk fwnodeh]hattached disk fwnode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMDhj=ubah}(h]h ]h"]h$]h&]uh1jChj=ubeh}(h]h ]h"]h$]h&]uh1j!hj=hMDhj=ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hj=h]h Description}(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:345: ./block/genhd.chMFhj<ubj)}(hzThis function registers the partitioning information in **disk** with the kernel. Also attach a fwnode to the disk device.h](h8This function registers the partitioning information in }(hj>hhhNhNubj)}(h**disk**h]hdisk}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh: with the kernel. Also attach a fwnode to the disk device.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMFhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_add_disk (C function)c.device_add_diskhNtauh1hhjIhhhNhNubh)}(hhh](h)}(hhint device_add_disk (struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h]h)}(hgint device_add_disk(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](h)}(hinth]hint}(hjU>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ>hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhubh)}(h h]h }(hjd>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQ>hhhjc>hMhubj)}(hdevice_add_diskh]j)}(hdevice_add_diskh]hdevice_add_disk}(hjv>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQ>hhhjc>hMhubj/)}(hT(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j5)}(hstruct device *parenth](j;)}(hj>h]hstruct}(hj>hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hdeviceh]hdevice}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj>modnameN classnameNjwjz)}j}]j)}jsjx>sbc.device_add_diskasbuh1hhj>ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hparenth]hparent}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubj5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hgendiskh]hgendisk}(hj"?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$?modnameN classnameNjwjz)}j}]j>c.device_add_diskasbuh1hhj?ubh)}(h h]h }(hj@?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hjN?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hdiskh]hdisk}(hj[?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubj5)}(h%const struct attribute_group **groupsh](j;)}(hjh]hconst}(hjt?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjp?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp?ubj;)}(hj>h]hstruct}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjp?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp?ubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]j>c.device_add_diskasbuh1hhjp?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp?ubj)}(hgroupsh]hgroups}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjp?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjQ>hhhjc>hMhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjM>hhhjc>hMhubah}(h]jH>ah ](jjeh"]h$]h&]jj)jhuh1hhjc>hMhhjJ>hhubj)}(hhh]j)}(h#add disk information to kernel listh]h#add disk information to kernel list}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhhj@hhubah}(h]h ]h"]h$]h&]uh1jhjJ>hhhjc>hMhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj5@jj5@jjjuh1hhhhjIhNhNubj)}(hX:**Parameters** ``struct device *parent`` parent device for the disk ``struct gendisk *disk`` per-device partitioning information ``const struct attribute_group **groups`` Additional per-device sysfs groups **Description** This function registers the partitioning information in **disk** with the kernel.h](j)}(h**Parameters**h]j)}(hj?@h]h Parameters}(hjA@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=@ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMlhj9@ubj)}(hhh](j")}(h5``struct device *parent`` parent device for the disk h](j()}(h``struct device *parent``h]j.)}(hj^@h]hstruct device *parent}(hj`@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\@ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMihjX@ubjD)}(hhh]j)}(hparent device for the diskh]hparent device for the disk}(hjw@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs@hMihjt@ubah}(h]h ]h"]h$]h&]uh1jChjX@ubeh}(h]h ]h"]h$]h&]uh1j!hjs@hMihjU@ubj")}(h=``struct gendisk *disk`` per-device partitioning information h](j()}(h``struct gendisk *disk``h]j.)}(hj@h]hstruct gendisk *disk}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMjhj@ubjD)}(hhh]j)}(h#per-device partitioning informationh]h#per-device partitioning information}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMjhj@ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMjhjU@ubj")}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j()}(h)``const struct attribute_group **groups``h]j.)}(hj@h]h%const struct attribute_group **groups}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMkhj@ubjD)}(hhh]j)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMkhj@ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMkhjU@ubeh}(h]h ]h"]h$]h&]uh1jhj9@ubj)}(h**Description**h]j)}(hj Ah]h Description}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMmhj9@ubj)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hj!AhhhNhNubj)}(h**disk**h]hdisk}(hj)AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Aubh with the kernel.}(hj!AhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMmhj9@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌblk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h.void blk_mark_disk_dead (struct gendisk *disk)h]h)}(h-void blk_mark_disk_dead(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hjbAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^AhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMubh)}(h h]h }(hjqAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^AhhhjpAhMubj)}(hblk_mark_disk_deadh]j)}(hblk_mark_disk_deadh]hblk_mark_disk_dead}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^AhhhjpAhMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j)}(hgendiskh]hgendisk}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjAmodnameN classnameNjwjz)}j}]j)}jsjAsbc.blk_mark_disk_deadasbuh1hhjAubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hdiskh]hdisk}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubah}(h]h ]h"]h$]h&]j,j-uh1j.hj^AhhhjpAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZAhhhjpAhMubah}(h]jUAah ](jjeh"]h$]h&]jj)jhuh1hhjpAhMhjWAhhubj)}(hhh]j)}(hmark a disk as deadh]hmark a disk as dead}(hj"BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhjWAhhhjpAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:Bjj:Bjjjuh1hhhhjIhNhNubj)}(h**Parameters** ``struct gendisk *disk`` disk to mark as dead **Description** Mark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h](j)}(h**Parameters**h]j)}(hjDBh]h Parameters}(hjFBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj>Bubj)}(hhh]j")}(h.``struct gendisk *disk`` disk to mark as dead h](j()}(h``struct gendisk *disk``h]j.)}(hjcBh]hstruct gendisk *disk}(hjeBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaBubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj]BubjD)}(hhh]j)}(hdisk to mark as deadh]hdisk to mark as dead}(hj|BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxBhMhjyBubah}(h]h ]h"]h$]h&]uh1jChj]Bubeh}(h]h ]h"]h$]h&]uh1j!hjxBhMhjZBubah}(h]h ]h"]h$]h&]uh1jhj>Bubj)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj>Bubj)}(hWMark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h]hYMark as disk as dead (e.g. surprise removed) and don’t accept any new I/O to this disk.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj>Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdel_gendisk (C function) c.del_gendiskhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h'void del_gendisk (struct gendisk *disk)h]h)}(h&void del_gendisk(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhhjBhMubj)}(h del_gendiskh]j)}(h del_gendiskh]h del_gendisk}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjBhhhjBhMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hj ChhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjCubh)}(h h]h }(hj-ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hgendiskh]hgendisk}(hj>ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;Cubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@CmodnameN classnameNjwjz)}j}]j)}jsjCsb c.del_gendiskasbuh1hhjCubh)}(h h]h }(hj^ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjlChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hdiskh]hdisk}(hjyChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubah}(h]h ]h"]h$]h&]j,j-uh1j.hjBhhhjBhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhjBhhubj)}(hhh]j)}(hremove the gendiskh]hremove the gendisk}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjIhNhNubj)}(hXb**Parameters** ``struct gendisk *disk`` the struct gendisk to remove **Description** Removes the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue. This is the counter to the respective __device_add_disk() call. The final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used. Drivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred. **Context** can sleeph](j)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(hhh]j")}(h6``struct gendisk *disk`` the struct gendisk to remove h](j()}(h``struct gendisk *disk``h]j.)}(hjCh]hstruct gendisk *disk}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubjD)}(hhh]j)}(hthe struct gendisk to removeh]hthe struct gendisk to remove}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjCubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(h**Description**h]j)}(hjDh]h Description}(hj!DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.h]hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.}(hj5DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(h?This is the counter to the respective __device_add_disk() call.h]h?This is the counter to the respective __device_add_disk() call.}(hjDDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjCubj)}(hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used.h]hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used.}(hjSDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM hjCubj)}(hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.h]hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.}(hjbDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM$hjCubj)}(h **Context**h]j)}(hjsDh]hContext}(hjuDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqDubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM'hjCubj)}(h can sleeph]h can sleep}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM'hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinvalidate_disk (C function)c.invalidate_diskhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h+void invalidate_disk (struct gendisk *disk)h]h)}(h*void invalidate_disk(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM?ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjDhM?ubj)}(hinvalidate_diskh]j)}(hinvalidate_diskh]hinvalidate_disk}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjDhM?ubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjDhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hgendiskh]hgendisk}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]j)}jsjDsbc.invalidate_diskasbuh1hhjDubh)}(h h]h }(hj3EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hjh]h*}(hjAEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hdiskh]hdisk}(hjNEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDubah}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjDhM?ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjDhM?ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhM?hjDhhubj)}(hhh]j)}(hinvalidate the diskh]hinvalidate the disk}(hjxEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM?hjuEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhM?ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to invalidate **Description** A helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers. **Context** can sleeph](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMChjEubj)}(hhh]j")}(h:``struct gendisk *disk`` the struct gendisk to invalidate h](j()}(h``struct gendisk *disk``h]j.)}(hjEh]hstruct gendisk *disk}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chM@hjEubjD)}(hhh]j)}(h the struct gendisk to invalidateh]h the struct gendisk to invalidate}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhM@hjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhM@hjEubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMBhjEubj)}(hA helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.h]hA helper to invalidates the disk. It will clean the disk’s associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMBhjEubj)}(h **Context**h]j)}(hjFh]hContext}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMFhjEubj)}(h can sleeph]h can sleep}(hj1FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMFhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌput_disk (C function) c.put_diskhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h$void put_disk (struct gendisk *disk)h]h)}(h#void put_disk(struct gendisk *disk)h](h)}(hvoidh]hvoid}(hj`FhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\FhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMubh)}(h h]h }(hjoFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\FhhhjnFhMubj)}(hput_diskh]j)}(hput_diskh]hput_disk}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Fubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\FhhhjnFhMubj/)}(h(struct gendisk *disk)h]j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(hgendiskh]hgendisk}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjFsb c.put_diskasbuh1hhjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hdiskh]hdisk}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjFubah}(h]h ]h"]h$]h&]j,j-uh1j.hj\FhhhjnFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXFhhhjnFhMubah}(h]jSFah ](jjeh"]h$]h&]jj)jhuh1hhjnFhMhjUFhhubj)}(hhh]j)}(hdecrements the gendisk refcounth]hdecrements the gendisk refcount}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjUFhhhjnFhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8Gjj8Gjjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to decrement the refcount for **Description** This decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called. **Note** for blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called). **Context** Any context, but the last reference must not be dropped from atomic context.h](j)}(h**Parameters**h]j)}(hjBGh]h Parameters}(hjDGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Gubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+Hhhhj=HhMubj)}(h set_disk_roh]j)}(h set_disk_roh]h set_disk_ro}(hjPHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLHubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj+Hhhhj=HhMubj/)}(h&(struct gendisk *disk, bool read_only)h](j5)}(hstruct gendisk *diskh](j;)}(hj>h]hstruct}(hjlHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhHubh)}(h h]h }(hjyHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhHubh)}(hhh]j)}(hgendiskh]hgendisk}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHmodnameN classnameNjwjz)}j}]j)}jsjRHsb c.set_disk_roasbuh1hhjhHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhHubj)}(hdiskh]hdisk}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdHubj5)}(hbool read_onlyh](h)}(hjoh]hbool}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(h read_onlyh]h read_only}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdHubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj+Hhhhj=HhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj'Hhhhj=HhMubah}(h]j"Hah ](jjeh"]h$]h&]jj)jhuh1hhj=HhMhj$Hhhubj)}(hhh]j)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hj#IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj Ihhubah}(h]h ]h"]h$]h&]uh1jhj$Hhhhj=HhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;Ijj;Ijjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` gendisk to operate on ``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write **Description** This function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h](j)}(h**Parameters**h]j)}(hjEIh]h Parameters}(hjGIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCIubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj?Iubj)}(hhh](j")}(h/``struct gendisk *disk`` gendisk to operate on h](j()}(h``struct gendisk *disk``h]j.)}(hjdIh]hstruct gendisk *disk}(hjfIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbIubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj^IubjD)}(hhh]j)}(hgendisk to operate onh]hgendisk to operate on}(hj}IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyIhMhjzIubah}(h]h ]h"]h$]h&]uh1jChj^Iubeh}(h]h ]h"]h$]h&]uh1j!hjyIhMhj[Iubj")}(hY``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write h](j()}(h``bool read_only``h]j.)}(hjIh]hbool read_only}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhjIubjD)}(hhh]j)}(hE``true`` to set the disk read-only, ``false`` set the disk read/writeh](j.)}(h``true``h]htrue}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubh to set the disk read-only, }(hjIhhhNhNubj.)}(h ``false``h]hfalse}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubh set the disk read/write}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhj[Iubeh}(h]h ]h"]h$]h&]uh1jhj?Iubj)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj?Iubj)}(hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h]hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/genhd.chMhj?Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjIhhhNhNubh)}(hhh](h)}(hGint bdev_validate_blocksize (struct block_device *bdev, int block_size)h]h)}(hFint bdev_validate_blocksize(struct block_device *bdev, int block_size)h](h)}(hinth]hint}(hj=JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9JhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKubh)}(h h]h }(hjLJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9JhhhjKJhKubj)}(hbdev_validate_blocksizeh]j)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hj^JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZJubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9JhhhjKJhKubj/)}(h+(struct block_device *bdev, int block_size)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjzJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvJubh)}(hhh]j)}(h block_deviceh]h block_device}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsj`Jsbc.bdev_validate_blocksizeasbuh1hhjvJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvJubj)}(hbdevh]hbdev}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrJubj5)}(hint block_sizeh](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(h block_sizeh]h block_size}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjrJubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj9JhhhjKJhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj5JhhhjKJhKubah}(h]j0Jah ](jjeh"]h$]h&]jj)jhuh1hhjKJhKhj2Jhhubj)}(hhh]j)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hj2KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhj/Khhubah}(h]h ]h"]h$]h&]uh1jhj2JhhhjKJhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJKjjJKjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjTKh]h Parameters}(hjVKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRKubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjNKubj)}(hhh](j")}(h3``struct block_device *bdev`` blockdevice to check h](j()}(h``struct block_device *bdev``h]j.)}(hjsKh]hstruct block_device *bdev}(hjuKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqKubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjmKubjD)}(hhh]j)}(hblockdevice to checkh]hblockdevice to check}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jChjmKubeh}(h]h ]h"]h$]h&]uh1j!hjKhKhjjKubj")}(h'``int block_size`` block size to check h](j()}(h``int block_size``h]j.)}(hjKh]hint block_size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjKubjD)}(hhh]j)}(hblock size to checkh]hblock size to check}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjKhKhjjKubeh}(h]h ]h"]h$]h&]uh1jhjNKubj)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjNKubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjNKubj)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Lubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chKhjNKubj)}(hh]hstruct}(hjLhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(h block_deviceh]h block_device}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjLmodnameN classnameNjwjz)}j}]j)}jsjvLsb c.bdev_freezeasbuh1hhjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hbdevh]hbdev}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubah}(h]h ]h"]h$]h&]j,j-uh1j.hjOLhhhjaLhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKLhhhjaLhMubah}(h]jFLah ](jjeh"]h$]h&]jj)jhuh1hhjaLhMhjHLhhubj)}(hhh]j)}(h6lock a filesystem and force it into a consistent stateh]h6lock a filesystem and force it into a consistent state}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjHLhhhjaLhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj+Mjj+Mjjjuh1hhhhjIhNhNubj)}(hX]**Parameters** ``struct block_device *bdev`` blockdevice to lock **Description** If a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually. **Return** On success zero is returned, negative error code on failure.h](j)}(h**Parameters**h]j)}(hj5Mh]h Parameters}(hj7MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Mubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj/Mubj)}(hhh]j")}(h2``struct block_device *bdev`` blockdevice to lock h](j()}(h``struct block_device *bdev``h]j.)}(hjTMh]hstruct block_device *bdev}(hjVMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRMubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjNMubjD)}(hhh]j)}(hblockdevice to lockh]hblockdevice to lock}(hjmMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiMhMhjjMubah}(h]h ]h"]h$]h&]uh1jChjNMubeh}(h]h ]h"]h$]h&]uh1j!hjiMhMhjKMubah}(h]h ]h"]h$]h&]uh1jhj/Mubj)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj/Mubj)}(hXIf a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually.h]hXIf a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj/Mubj)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj/Mubj)}(hh]hstruct}(hj8NhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4Nubh)}(h h]h }(hjENhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4Nubh)}(hhh]j)}(h block_deviceh]h block_device}(hjVNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXNmodnameN classnameNjwjz)}j}]j)}jsjNsb c.bdev_thawasbuh1hhj4Nubh)}(h h]h }(hjvNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4Nubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Nubj)}(hbdevh]hbdev}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Nubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0Nubah}(h]h ]h"]h$]h&]j,j-uh1j.hjMhhhj NhM:ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjMhhhj NhM:ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhj NhM:hjMhhubj)}(hhh]j)}(hunlock filesystemh]hunlock filesystem}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM:hjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj NhM:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjNjjNjjjuh1hhhhjIhNhNubj)}(h**Parameters** ``struct block_device *bdev`` blockdevice to unlock **Description** Unlocks the filesystem and marks it writeable again after bdev_freeze(). **Return** On success zero is returned, negative error code on failure.h](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM>hjNubj)}(hhh]j")}(h4``struct block_device *bdev`` blockdevice to unlock h](j()}(h``struct block_device *bdev``h]j.)}(hjNh]hstruct block_device *bdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM;hjNubjD)}(hhh]j)}(hblockdevice to unlockh]hblockdevice to unlock}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhM;hjOubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjOhM;hjNubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hj7Oh]h Description}(hj9OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Oubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM=hjNubj)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hjMOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM=hjNubj)}(h **Return**h]j)}(hj^Oh]hReturn}(hj`OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Oubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM?hjNubj)}(hh]hstruct}(hjOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h block_deviceh]h block_device}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]j)}jsjOsbc.bd_prepare_to_claimasbuh1hhjOubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hj,PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hbdevh]hbdev}(hj9PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubj5)}(h void *holderh](h)}(hvoidh]hvoid}(hjRPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNPubh)}(h h]h }(hj`PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNPubj)}(hjh]h*}(hjnPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNPubj)}(hholderh]hholder}(hj{PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubj5)}(h!const struct blk_holder_ops *hopsh](j;)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj;)}(hj>h]hstruct}(hjPhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hhh]j)}(hblk_holder_opsh]hblk_holder_ops}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjPmodnameN classnameNjwjz)}j}]jPc.bd_prepare_to_claimasbuh1hhjPubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hhopsh]hhops}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjOubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjOhhhjOhM:ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjOhhhjOhM:ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjOhM:hjOhhubj)}(hhh]j)}(hclaim a block deviceh]hclaim a block device}(hj0QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM:hj-Qhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhM:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjHQjjHQjjjuh1hhhhjIhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` block device of interest ``void *holder`` holder trying to claim **bdev** ``const struct blk_holder_ops *hops`` holder ops. **Description** Claim **bdev**. This function fails if **bdev** is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s]. **Return** 0 if **bdev** can be claimed, -EBUSY otherwise.h](j)}(h**Parameters**h]j)}(hjRQh]h Parameters}(hjTQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPQubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM>hjLQubj)}(hhh](j")}(h7``struct block_device *bdev`` block device of interest h](j()}(h``struct block_device *bdev``h]j.)}(hjqQh]hstruct block_device *bdev}(hjsQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoQubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM;hjkQubjD)}(hhh]j)}(hblock device of interesth]hblock device of interest}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhM;hjQubah}(h]h ]h"]h$]h&]uh1jChjkQubeh}(h]h ]h"]h$]h&]uh1j!hjQhM;hjhQubj")}(h1``void *holder`` holder trying to claim **bdev** h](j()}(h``void *holder``h]j.)}(hjQh]h void *holder}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM<hjQubjD)}(hhh]j)}(hholder trying to claim **bdev**h](hholder trying to claim }(hjQhhhNhNubj)}(h**bdev**h]hbdev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM<hjQubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjQhM<hjhQubj")}(h2``const struct blk_holder_ops *hops`` holder ops. h](j()}(h%``const struct blk_holder_ops *hops``h]j.)}(hjQh]h!const struct blk_holder_ops *hops}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM=hjQubjD)}(hhh]j)}(h holder ops.h]h holder ops.}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhM=hjRubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjRhM=hjhQubeh}(h]h ]h"]h$]h&]uh1jhjLQubj)}(h**Description**h]j)}(hj,Rh]h Description}(hj.RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Rubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM?hjLQubj)}(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 }(hjBRhhhNhNubj)}(h**bdev**h]hbdev}(hjJRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBRubh. This function fails if }(hjBRhhhNhNubj)}(h**bdev**h]hbdev}(hj\RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBRubh 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].}(hjBRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chM?hjLQubj)}(h **Return**h]j)}(hjwRh]hReturn}(hjyRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuRubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMChjLQubj)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hjRhhhNhNubj)}(h**bdev**h]hbdev}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh" can be claimed, -EBUSY otherwise.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMChjLQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjIhhhNhNubh)}(hhh](h)}(h@void bd_abort_claiming (struct block_device *bdev, void *holder)h]h)}(h?void bd_abort_claiming(struct block_device *bdev, void *holder)h](h)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjRhMubj)}(hbd_abort_claimingh]j)}(hbd_abort_claimingh]hbd_abort_claiming}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjRhMubj/)}(h)(struct block_device *bdev, void *holder)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hj ShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjSubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hhh]j)}(h block_deviceh]h block_device}(hj)ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&Subah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj+SmodnameN classnameNjwjz)}j}]j)}jsjRsbc.bd_abort_claimingasbuh1hhjSubh)}(h h]h }(hjIShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjWShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hbdevh]hbdev}(hjdShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubj5)}(h void *holderh](h)}(hvoidh]hvoid}(hj}ShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjySubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjySubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjySubj)}(hholderh]hholder}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjySubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjRhhhjRhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjRhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhjRhhubj)}(hhh]j)}(h abort claiming of a block deviceh]h abort claiming of a block device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubj)}(hhh](j")}(h7``struct block_device *bdev`` block device of interest h](j()}(h``struct block_device *bdev``h]j.)}(hjTh]hstruct block_device *bdev}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj TubjD)}(hhh]j)}(hblock device of interesth]hblock device of interest}(hj*ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ThMhj'Tubah}(h]h ]h"]h$]h&]uh1jChj Tubeh}(h]h ]h"]h$]h&]uh1j!hj&ThMhjTubj")}(h2``void *holder`` holder that has claimed **bdev** h](j()}(h``void *holder``h]j.)}(hjJTh]h void *holder}(hjLThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjHTubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjDTubjD)}(hhh]j)}(h holder that has claimed **bdev**h](hholder that has claimed }(hjcThhhNhNubj)}(h**bdev**h]hbdev}(hjkThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcTubeh}(h]h ]h"]h$]h&]uh1jhj_ThMhj`Tubah}(h]h ]h"]h$]h&]uh1jChjDTubeh}(h]h ]h"]h$]h&]uh1j!hj_ThMhjTubeh}(h]h ]h"]h$]h&]uh1jhjSubj)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbdev_fput (C function) c.bdev_fputhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h'void bdev_fput (struct file *bdev_file)h]h)}(h&void bdev_fput(struct file *bdev_file)h](h)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjThMubj)}(h bdev_fputh]j)}(h bdev_fputh]h bdev_fput}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjThhhjThMubj/)}(h(struct file *bdev_file)h]j5)}(hstruct file *bdev_fileh](j;)}(hj>h]hstruct}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hj"UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hfileh]hfile}(hj3UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0Uubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5UmodnameN classnameNjwjz)}j}]j)}jsjTsb c.bdev_fputasbuh1hhjUubh)}(h h]h }(hjSUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjaUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h bdev_fileh]h bdev_file}(hjnUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj Uubah}(h]h ]h"]h$]h&]j,j-uh1j.hjThhhjThMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjThMhjThhubj)}(hhh]j)}(h0yield claim to the block device and put the fileh]h0yield claim to the block device and put the file}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjUubj)}(hhh]j")}(h-``struct file *bdev_file`` open block device h](j()}(h``struct file *bdev_file``h]j.)}(hjUh]hstruct file *bdev_file}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjUubjD)}(hhh]j)}(hopen block deviceh]hopen block device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjUubj)}(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*VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlookup_bdev (C function) c.lookup_bdevhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h2int lookup_bdev (const char *pathname, dev_t *dev)h]h)}(h1int lookup_bdev(const char *pathname, dev_t *dev)h](h)}(hinth]hint}(hjYVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUVhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hjhVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUVhhhjgVhMubj)}(h lookup_bdevh]j)}(h lookup_bdevh]h lookup_bdev}(hjzVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvVubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjUVhhhjgVhMubj/)}(h"(const char *pathname, dev_t *dev)h](j5)}(hconst char *pathnameh](j;)}(hjh]hconst}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hpathnameh]hpathname}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubj5)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j)}jsj|Vsb c.lookup_bdevasbuh1hhjVubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hj$WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hdevh]hdev}(hj1WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjVubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjUVhhhjgVhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQVhhhjgVhMubah}(h]jLVah ](jjeh"]h$]h&]jj)jhuh1hhjgVhMhjNVhhubj)}(hhh]j)}(h&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(hj[WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjXWhhubah}(h]h ]h"]h$]h&]uh1jhjNVhhhjgVhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjsWjjsWjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj}Wh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Wubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(hhh](j")}(hE``const char *pathname`` Name of the block device in the filesystem. h](j()}(h``const char *pathname``h]j.)}(hjWh]hconst char *pathname}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjWubjD)}(hhh]j)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjWhMhjWubj")}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. h](j()}(h``dev_t *dev``h]j.)}(hjWh]h dev_t *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjWubjD)}(hhh]j)}(h.Pointer to the block device's dev_t, if found.h]h0Pointer to the block device’s dev_t, if found.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jChjWubeh}(h]h ]h"]h$]h&]uh1j!hjWhMhjWubeh}(h]h ]h"]h$]h&]uh1jhjwWubj)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(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&XhhhNhNubj)}(h **pathname**h]hpathname}(hj.XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Xubh7 in the current namespace if possible and return it in }(hj&XhhhNhNubj)}(h**dev**h]hdev}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Xubh.}(hj&XhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(h **Context**h]j)}(hj[Xh]hContext}(hj]XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYXubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(h May sleep.h]h May sleep.}(hjqXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubj)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjwWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h>void bdev_mark_dead (struct block_device *bdev, bool surprise)h]h)}(h=void bdev_mark_dead(struct block_device *bdev, bool surprise)h](h)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjXhMubj)}(hbdev_mark_deadh]j)}(hbdev_mark_deadh]hbdev_mark_dead}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjXhMubj/)}(h*(struct block_device *bdev, bool surprise)h](j5)}(hstruct block_device *bdevh](j;)}(hj>h]hstruct}(hjYhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(h block_deviceh]h block_device}(hj"YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj$YmodnameN classnameNjwjz)}j}]j)}jsjXsbc.bdev_mark_deadasbuh1hhjYubh)}(h h]h }(hjBYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjPYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hbdevh]hbdev}(hj]YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubj5)}(h bool surpriseh](h)}(hjoh]hbool}(hjvYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrYubj)}(hsurpriseh]hsurprise}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjXhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjXhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhjXhhubj)}(hhh]j)}(hmark a block device as deadh]hmark a block device as dead}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYjjYjjjuh1hhhhjIhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYubj)}(hhh](j")}(h9``struct block_device *bdev`` block device to operate on h](j()}(h``struct block_device *bdev``h]j.)}(hjYh]hstruct block_device *bdev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYubjD)}(hhh]j)}(hblock device to operate onh]hblock device to operate on}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhjYubj")}(h.``bool surprise`` indicate a surprise removal h](j()}(h``bool surprise``h]j.)}(hj5Zh]h bool surprise}(hj7ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3Zubah}(h]h ]h"]h$]h&]uh1j'hQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhj/ZubjD)}(hhh]j)}(hindicate a surprise removalh]hindicate a surprise removal}(hjNZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJZhMhjKZubah}(h]h ]h"]h$]h&]uh1jChj/Zubeh}(h]h ]h"]h$]h&]uh1j!hjJZhMhjYubeh}(h]h ]h"]h$]h&]uh1jhjYubj)}(h**Description**h]j)}(hjpZh]h Description}(hjrZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnZubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYubj)}(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 }(hjZhhhNhNubj)}(h **surprise**h]hsurprise}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh is set to }(hjZhhhNhNubj.)}(h``true``h]htrue}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYubj)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:348: ./block/bdev.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM8ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhhhhhM`ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hIint register_chrdev_region (dev_t from, unsigned count, const char *name)h]h)}(hHint register_chrdev_region(dev_t from, unsigned count, const char *name)h](h)}(hinth]hint}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhj[hKubj)}(hregister_chrdev_regionh]j)}(hregister_chrdev_regionh]hregister_chrdev_region}(hj"[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhj[hKubj/)}(h.(dev_t from, unsigned count, const char *name)h](j5)}(h dev_t fromh](h)}(hhh]j)}(hdev_th]hdev_t}(hjA[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>[ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjC[modnameN classnameNjwjz)}j}]j)}jsj$[sbc.register_chrdev_regionasbuh1hhj:[ubh)}(h h]h }(hja[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:[ubj)}(hfromh]hfrom}(hjo[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6[ubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hcounth]hcount}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6[ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hcharh]hchar}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnameh]hname}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6[ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhj[hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjZhhhj[hKubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hKhjZhhubj)}(hhh]j)}(h"register a range of device numbersh]h"register a range of device numbers}(hj+\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj(\hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj[hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjC\jjC\jjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjM\h]h Parameters}(hjO\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK\ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjG\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.)}(hjl\h]h dev_t from}(hjn\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjj\ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjf\ubjD)}(hhh]j)}(hPthe first in the desired range of device numbers; must include the major number.h]hPthe first in the desired range of device numbers; must include the major number.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj\ubah}(h]h ]h"]h$]h&]uh1jChjf\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhjc\ubj")}(hE``unsigned count`` the number of consecutive device numbers required h](j()}(h``unsigned count``h]j.)}(hj\h]hunsigned count}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj\ubjD)}(hhh]j)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhjc\ubj")}(h7``const char *name`` the name of the device or driver. h](j()}(h``const char *name``h]j.)}(hj\h]hconst char *name}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj\ubjD)}(hhh]j)}(h!the name of the device or driver.h]h!the name of the device or driver.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hKhjc\ubeh}(h]h ]h"]h$]h&]uh1jhjG\ubj)}(h**Description**h]j)}(hj]h]h Description}(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:354: ./fs/char_dev.chKhjG\ubj)}(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.}(hj0]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjG\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hZint alloc_chrdev_region (dev_t *dev, unsigned baseminor, unsigned count, const char *name)h]h)}(hYint alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](h)}(hinth]hint}(hj_]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[]hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKubh)}(h h]h }(hjn]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[]hhhjm]hKubj)}(halloc_chrdev_regionh]j)}(halloc_chrdev_regionh]halloc_chrdev_region}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[]hhhjm]hKubj/)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j5)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsj]sbc.alloc_chrdev_regionasbuh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hunsigned baseminorh](h)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(h baseminorh]h baseminor}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hj(^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$^ubh)}(h h]h }(hj6^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$^ubj)}(hcounth]hcount}(hjD^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hj]^hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjY^ubh)}(h h]h }(hjj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY^ubh)}(hcharh]hchar}(hjx^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY^ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY^ubj)}(hnameh]hname}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjY^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj[]hhhjm]hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjW]hhhjm]hKubah}(h]jR]ah ](jjeh"]h$]h&]jj)jhuh1hhjm]hKhjT]hhubj)}(hhh]j)}(h'register a range of char device numbersh]h'register a range of char device numbers}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj^hhubah}(h]h ]h"]h$]h&]uh1jhjT]hhhjm]hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj^h]h Parameters}(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:354: ./fs/char_dev.chKhj^ubj)}(hhh](j")}(h:``dev_t *dev`` output parameter for first assigned number h](j()}(h``dev_t *dev``h]j.)}(hj _h]h dev_t *dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj _ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj_ubjD)}(hhh]j)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hj%_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!_hKhj"_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj!_hKhj_ubj")}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j()}(h``unsigned baseminor``h]j.)}(hjE_h]hunsigned baseminor}(hjG_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjC_ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj?_ubjD)}(hhh]j)}(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&]uh1jhjZ_hKhj[_ubah}(h]h ]h"]h$]h&]uh1jChj?_ubeh}(h]h ]h"]h$]h&]uh1j!hjZ_hKhj_ubj")}(h8``unsigned count`` the number of minor numbers required h](j()}(h``unsigned count``h]j.)}(hj~_h]hunsigned count}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|_ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjx_ubjD)}(hhh]j)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jChjx_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhj_ubj")}(hA``const char *name`` the name of the associated device or driver h](j()}(h``const char *name``h]j.)}(hj_h]hconst char *name}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj_ubjD)}(hhh]j)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhj_ubeh}(h]h ]h"]h$]h&]uh1jhj^ubj)}(h**Description**h]j)}(hj_h]h Description}(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:354: ./fs/char_dev.chKhj^ubj)}(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}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh). Returns zero or a negative error code.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__register_chrdev (C function)c.__register_chrdevhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hint __register_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h]h)}(hint __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](h)}(hinth]hint}(hjI`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE`hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKubh)}(h h]h }(hjX`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE`hhhjW`hKubj)}(h__register_chrdevh]j)}(h__register_chrdevh]h__register_chrdev}(hjj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjE`hhhjW`hKubj/)}(hv(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j5)}(hunsigned int majorh](h)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hmajorh]hmajor}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~`ubj5)}(hunsigned int baseminorh](h)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubh)}(hinth]hint}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h baseminorh]h baseminor}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~`ubj5)}(hunsigned int counth](h)}(hunsignedh]hunsigned}(hj(ahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$aubh)}(h h]h }(hj6ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$aubh)}(hinth]hint}(hjDahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$aubh)}(h h]h }(hjRahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$aubj)}(hcounth]hcount}(hj`ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$aubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~`ubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjyahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuaubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuaubh)}(hcharh]hchar}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuaubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuaubj)}(hnameh]hname}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~`ubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj;)}(hj>h]hstruct}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}jsjl`sbc.__register_chrdevasbuh1hhjaubh)}(h h]h }(hj/bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hj=bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hfopsh]hfops}(hjJbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~`ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjE`hhhjW`hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjA`hhhjW`hKubah}(h]j<`ah ](jjeh"]h$]h&]jj)jhuh1hhjW`hKhj>`hhubj)}(hhh]j)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hjtbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjqbhhubah}(h]h ]h"]h$]h&]uh1jhj>`hhhjW`hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjbjjbjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjbubj)}(hhh](j")}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j()}(h``unsigned int major``h]j.)}(hjbh]hunsigned int major}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjbubjD)}(hhh]j)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhKhjbubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjbhKhjbubj")}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j()}(h``unsigned int baseminor``h]j.)}(hjbh]hunsigned int baseminor}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjbubjD)}(hhh]j)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchKhjcubah}(h]h ]h"]h$]h&]uh1jChjbubeh}(h]h ]h"]h$]h&]uh1j!hjchKhjbubj")}(h<``unsigned int count`` the number of minor numbers required h](j()}(h``unsigned int count``h]j.)}(hj'ch]hunsigned int count}(hj)chhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%cubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhj!cubjD)}(hhh]j)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hj@chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hj dhhhNhNubj)}(h **major**h]hmajor}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hj dhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbubj)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hj,dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbubj)}(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.}(hj;dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhjZhhhNhNubh)}(hhh](h)}(h:void unregister_chrdev_region (dev_t from, unsigned count)h]h)}(h9void unregister_chrdev_region(dev_t from, unsigned count)h](h)}(hvoidh]hvoid}(hjjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfdhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM/ubh)}(h h]h }(hjydhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfdhhhjxdhM/ubj)}(hunregister_chrdev_regionh]j)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjfdhhhjxdhM/ubj/)}(h(dev_t from, unsigned count)h](j5)}(h dev_t fromh](h)}(hhh]j)}(hdev_th]hdev_t}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jsjdsbc.unregister_chrdev_regionasbuh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hfromh]hfrom}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hcounth]hcount}(hj ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjdubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjfdhhhjxdhM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbdhhhjxdhM/ubah}(h]j]dah ](jjeh"]h$]h&]jj)jhuh1hhjxdhM/hj_dhhubj)}(hhh]j)}(h$unregister a range of device numbersh]h$unregister a range of device numbers}(hj7ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM/hj4ehhubah}(h]h ]h"]h$]h&]uh1jhj_dhhhjxdhM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOejjOejjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjYeh]h Parameters}(hj[ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWeubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjSeubj)}(hhh](j")}(h?``dev_t from`` the first in the range of numbers to unregister h](j()}(h``dev_t from``h]j.)}(hjxeh]h dev_t from}(hjzehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjveubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM0hjreubjD)}(hhh]j)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM0hjeubah}(h]h ]h"]h$]h&]uh1jChjreubeh}(h]h ]h"]h$]h&]uh1j!hjehM0hjoeubj")}(h>``unsigned count`` the number of device numbers to unregister h](j()}(h``unsigned count``h]j.)}(hjeh]hunsigned count}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM1hjeubjD)}(hhh]j)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM1hjeubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjehM1hjoeubeh}(h]h ]h"]h$]h&]uh1jhjSeubj)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjSeubj)}(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 }(hjfhhhNhNubj)}(h **count**h]hcount}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh device numbers, starting with }(hjfhhhNhNubj)}(h**from**h]hfrom}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM3hjSeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hkvoid __unregister_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h]h)}(hjvoid __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](h)}(hvoidh]hvoid}(hjUfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQfhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMEubh)}(h h]h }(hjdfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQfhhhjcfhMEubj)}(h__unregister_chrdevh]j)}(h__unregister_chrdevh]h__unregister_chrdev}(hjvfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQfhhhjcfhMEubj/)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j5)}(hunsigned int majorh](h)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hinth]hint}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hmajorh]hmajor}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hunsigned int baseminorh](h)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hinth]hint}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubh)}(h h]h }(hj ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h baseminorh]h baseminor}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hunsigned int counth](h)}(hunsignedh]hunsigned}(hj4ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0gubh)}(h h]h }(hjBghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0gubh)}(hinth]hint}(hjPghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0gubh)}(h h]h }(hj^ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0gubj)}(hcounth]hcount}(hjlghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0gubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubj5)}(hconst char *nameh](j;)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hcharh]hchar}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hnameh]hname}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjQfhhhjcfhMEubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjMfhhhjcfhMEubah}(h]jHfah ](jjeh"]h$]h&]jj)jhuh1hhjcfhMEhjJfhhubj)}(hhh]j)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMEhjghhubah}(h]h ]h"]h$]h&]uh1jhjJfhhhjcfhMEubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj hjj hjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMIhjhubj)}(hhh](j")}(h+``unsigned int major`` major device number h](j()}(h``unsigned int major``h]j.)}(hj4hh]hunsigned int major}(hj6hhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2hubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMFhj.hubjD)}(hhh]j)}(hmajor device numberh]hmajor device number}(hjMhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhhMFhjJhubah}(h]h ]h"]h$]h&]uh1jChj.hubeh}(h]h ]h"]h$]h&]uh1j!hjIhhMFhj+hubj")}(h?``unsigned int baseminor`` first of the range of minor numbers h](j()}(h``unsigned int baseminor``h]j.)}(hjmhh]hunsigned int baseminor}(hjohhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkhubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMGhjghubjD)}(hhh]j)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMGhjhubah}(h]h ]h"]h$]h&]uh1jChjghubeh}(h]h ]h"]h$]h&]uh1j!hjhhMGhj+hubj")}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j()}(h``unsigned int count``h]j.)}(hjhh]hunsigned int count}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMHhjhubjD)}(hhh]j)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMHhjhubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhhMHhj+hubj")}(h3``const char *name`` name of this range of devices h](j()}(h``const char *name``h]j.)}(hjhh]hconst char *name}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMIhjhubjD)}(hhh]j)}(hname of this range of devicesh]hname of this range of devices}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMIhjhubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhhMIhj+hubeh}(h]h ]h"]h$]h&]uh1jhjhubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMKhjhubj)}(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 }(hj0ihhhNhNubj)}(h **major**h]hmajor}(hj8ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0iubh, }(hj0ihhhNhNubj)}(h **baseminor**h]h baseminor}(hjJihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0iubh and }(hj0ihhhNhNubj)}(h **count**h]hcount}(hj\ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0iubh5. This function undoes what __register_chrdev() did.}(hj0ihhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMKhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_add (C function) c.cdev_addhNtauh1hhjZhhhNhNubh)}(hhh](h)}(h8int cdev_add (struct cdev *p, dev_t dev, unsigned count)h]h)}(h7int cdev_add(struct cdev *p, dev_t dev, unsigned count)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihMubj)}(hcdev_addh]j)}(hcdev_addh]hcdev_add}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihMubj/)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j5)}(hstruct cdev *ph](j;)}(hj>h]hstruct}(hjihhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjiubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j)}(hcdevh]hcdev}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjimodnameN classnameNjwjz)}j}]j)}jsjisb c.cdev_addasbuh1hhjiubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hjh]hp}(hj+jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjFjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjHjmodnameN classnameNjwjz)}j}]j j c.cdev_addasbuh1hhj?jubh)}(h h]h }(hjdjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?jubj)}(hdevh]hdev}(hjrjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hunsigned counth](h)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hcounth]hcount}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjihhubj)}(hhh]j)}(hadd a char device to the systemh]hadd a char device to the system}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjjubj)}(hhh](j")}(h5``struct cdev *p`` the cdev structure for the device h](j()}(h``struct cdev *p``h]j.)}(hjkh]hstruct cdev *p}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhj kubjD)}(hhh]j)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hj+khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'khMhj(kubah}(h]h ]h"]h$]h&]uh1jChj kubeh}(h]h ]h"]h$]h&]uh1j!hj'khMhj kubj")}(hK``dev_t dev`` the first device number for which this device is responsible h](j()}(h ``dev_t dev``h]j.)}(hjKkh]h dev_t dev}(hjMkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIkubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjEkubjD)}(hhh]j)}(hh]hstruct}(hjTlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPlubh)}(h h]h }(hjalhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPlubh)}(hhh]j)}(hcdevh]hcdev}(hjrlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjolubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtlmodnameN classnameNjwjz)}j}]j)}jsj:lsbc.cdev_set_parentasbuh1hhjPlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPlubj)}(hjh]hp}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLlubj5)}(hstruct kobject *kobjh](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hkobjecth]hkobject}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlmodnameN classnameNjwjz)}j}]jlc.cdev_set_parentasbuh1hhjlubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hkobjh]hkobj}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLlubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjlhhhj%lhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhj%lhMubah}(h]j lah ](jjeh"]h$]h&]jj)jhuh1hhj%lhMhj lhhubj)}(hhh]j)}(h(set the parent kobject for a char deviceh]h(set the parent kobject for a char device}(hjFmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjCmhhubah}(h]h ]h"]h$]h&]uh1jhj lhhhj%lhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^mjj^mjjjuh1hhhhjZhNhNubj)}(hX***Parameters** ``struct cdev *p`` the cdev structure ``struct kobject *kobj`` the kobject to take a reference to **Description** cdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h](j)}(h**Parameters**h]j)}(hjhmh]h Parameters}(hjjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfmubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbmubj)}(hhh](j")}(h&``struct cdev *p`` the cdev structure h](j()}(h``struct cdev *p``h]j.)}(hjmh]hstruct cdev *p}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjmubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhj~mubj")}(h<``struct kobject *kobj`` the kobject to take a reference to h](j()}(h``struct kobject *kobj``h]j.)}(hjmh]hstruct kobject *kobj}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjmubjD)}(hhh]j)}(h"the kobject to take a reference toh]h"the kobject to take a reference to}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjmhMhj~mubeh}(h]h ]h"]h$]h&]uh1jhjbmubj)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbmubj)}(hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h]hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjbmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_device_add (C function)c.cdev_device_addhNtauh1hhjZhhhNhNubh)}(hhh](h)}(h;int cdev_device_add (struct cdev *cdev, struct device *dev)h]h)}(h:int cdev_device_add(struct cdev *cdev, struct device *dev)h](h)}(hinth]hint}(hj@nhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjh]hstruct}(hj}nhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjynubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjynubh)}(hhh]j)}(hcdevh]hcdev}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjnmodnameN classnameNjwjz)}j}]j)}jsjcnsbc.cdev_device_addasbuh1hhjynubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjynubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjynubj)}(hcdevh]hcdev}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjynubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjunubj5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(hdeviceh]hdevice}(hj ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]jnc.cdev_device_addasbuh1hhjnubh)}(h h]h }(hj+ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hj9ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hdevh]hdev}(hjFohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjunubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjdevt 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](j)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(hhh](j")}(h)``struct cdev *cdev`` the cdev structure h](j()}(h``struct cdev *cdev``h]j.)}(hjoh]hstruct cdev *cdev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM hjoubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohM hjoubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohM hjoubj")}(h,``struct device *dev`` the device structure h](j()}(h``struct device *dev``h]j.)}(hjoh]hstruct device *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM hjoubjD)}(hhh]j)}(hthe device structureh]hthe device structure}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohM hjpubah}(h]h ]h"]h$]h&]uh1jChjoubeh}(h]h ]h"]h$]h&]uh1j!hjohM hjoubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hj%ph]h Description}(hj'phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#pubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(hXcdev_device_add() adds the char device represented by **cdev** to the system, just as cdev_add does. It then adds **dev** to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released.h](h6cdev_device_add() adds the char device represented by }(hj;phhhNhNubj)}(h**cdev**h]hcdev}(hjCphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;pubh4 to the system, just as cdev_add does. It then adds }(hj;phhhNhNubj)}(h**dev**h]hdev}(hjUphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;pubhX  to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released.}(hj;phhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(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.}(hjnphhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(hThis function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device.h]hThis function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device.}(hj}phhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(h**NOTE**h]j)}(hjph]hNOTE}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubj)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_device_del (C function)c.cdev_device_delhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj qubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj qubh)}(hhh]j)}(hcdevh]hcdev}(hj.qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+qubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0qmodnameN classnameNjwjz)}j}]j)}jsjpsbc.cdev_device_delasbuh1hhj qubh)}(h h]h }(hjNqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj qubj)}(hjh]h*}(hj\qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj qubj)}(hcdevh]hcdev}(hjiqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj qubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~qubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~qubh)}(hhh]j)}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]jJqc.cdev_device_delasbuh1hhj~qubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~qubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~qubj)}(hdevh]hdev}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~qubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjphhhjphM4ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjphhhjphM4ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphM4hjphhubj)}(hhh]j)}(hinverse of cdev_device_addh]hinverse of cdev_device_add}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM4hjrhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphM4ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj%rh]h Parameters}(hj'rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#rubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM8hjrubj)}(hhh](j")}(h)``struct cdev *cdev`` the cdev structure h](j()}(h``struct cdev *cdev``h]j.)}(hjDrh]hstruct cdev *cdev}(hjFrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjBrubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM5hj>rubjD)}(hhh]j)}(hthe cdev structureh]hthe cdev structure}(hj]rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYrhM5hjZrubah}(h]h ]h"]h$]h&]uh1jChj>rubeh}(h]h ]h"]h$]h&]uh1j!hjYrhM5hj;rubj")}(h,``struct device *dev`` the device structure h](j()}(h``struct device *dev``h]j.)}(hj}rh]hstruct device *dev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{rubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM6hjwrubjD)}(hhh]j)}(hthe device structureh]hthe device structure}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhM6hjrubah}(h]h ]h"]h$]h&]uh1jChjwrubeh}(h]h ]h"]h$]h&]uh1j!hjrhM6hj;rubeh}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM8hjrubj)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM8hjrubj)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM;hjrubj)}(h**NOTE**h]j)}(hjrh]hNOTE}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM>hjrubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM>hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_del (C function) c.cdev_delhNtauh1hhjZhhhNhNubh)}(hhh](h)}(hvoid cdev_del (struct cdev *p)h]h)}(hvoid cdev_del(struct cdev *p)h](h)}(hvoidh]hvoid}(hj3shhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/shhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMOubh)}(h h]h }(hjBshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/shhhjAshMOubj)}(hcdev_delh]j)}(hcdev_delh]hcdev_del}(hjTshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPsubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/shhhjAshMOubj/)}(h(struct cdev *p)h]j5)}(hstruct cdev *ph](j;)}(hj>h]hstruct}(hjpshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlsubh)}(h h]h }(hj}shhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlsubh)}(hhh]j)}(hcdevh]hcdev}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsjVssb c.cdev_delasbuh1hhjlsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlsubj)}(hjh]hp}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhsubah}(h]h ]h"]h$]h&]j,j-uh1j.hj/shhhjAshMOubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+shhhjAshMOubah}(h]j&sah ](jjeh"]h$]h&]jj)jhuh1hhjAshMOhj(shhubj)}(hhh]j)}(hremove a cdev from the systemh]hremove a cdev from the system}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMOhjshhubah}(h]h ]h"]h$]h&]uh1jhj(shhhjAshMOubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj tjj tjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMShjtubj)}(hhh]j")}(h4``struct cdev *p`` the cdev structure to be removed h](j()}(h``struct cdev *p``h]j.)}(hj3th]hstruct cdev *p}(hj5thhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1tubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMPhj-tubjD)}(hhh]j)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hjLthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHthMPhjItubah}(h]h ]h"]h$]h&]uh1jChj-tubeh}(h]h ]h"]h$]h&]uh1j!hjHthMPhj*tubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hjnth]h Description}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjltubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMRhjtubj)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hjthhhNhNubj)}(h**p**h]hp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh8 from the system, possibly freeing the structure itself.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMRhjtubj)}(h**NOTE**h]j)}(hjth]hNOTE}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMUhjtubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMUhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_alloc (C function) c.cdev_allochNtauh1hhjZhhhNhNubh)}(hhh](h)}(hstruct cdev * cdev_alloc (void)h]h)}(hstruct cdev *cdev_alloc(void)h](j;)}(hj>h]hstruct}(hjthhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjthhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM|ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjthM|ubh)}(hhh]j)}(hcdevh]hcdev}(hj uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj umodnameN classnameNjwjz)}j}]j)}js cdev_allocsb c.cdev_allocasbuh1hhjthhhjthM|ubh)}(h h]h }(hj,uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjthM|ubj)}(hjh]h*}(hj:uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthM|ubj)}(h cdev_alloch]j)}(hj)uh]h cdev_alloc}(hjKuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjthhhjthM|ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjfuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbuubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^uubah}(h]h ]h"]h$]h&]j,j-uh1j.hjthhhjthM|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjthM|ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthM|hjthhubj)}(hhh]j)}(hallocate a cdev structureh]hallocate a cdev structure}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM|hjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthM|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjujjujjjuh1hhhhjZhNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL on failure.h](j)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjuubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjuh]hvoid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjuubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jChjuubeh}(h]h ]h"]h$]h&]uh1j!hjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubj)}(h**Description**h]j)}(hj vh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj vubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chKhjuubj)}(h;Allocates and returns a cdev structure, or NULL on failure.h]h;Allocates and returns a cdev structure, or NULL on failure.}(hj"vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chM}hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcdev_init (C function) c.cdev_inithNtauh1hhjZhhhNhNubh)}(hhh](h)}(hFvoid cdev_init (struct cdev *cdev, const struct file_operations *fops)h]h)}(hEvoid cdev_init(struct cdev *cdev, const struct file_operations *fops)h](h)}(hvoidh]hvoid}(hjQvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMvhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMubh)}(h h]h }(hj`vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMvhhhj_vhMubj)}(h cdev_inith]j)}(h cdev_inith]h cdev_init}(hjrvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnvubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMvhhhj_vhMubj/)}(h7(struct cdev *cdev, const struct file_operations *fops)h](j5)}(hstruct cdev *cdevh](j;)}(hj>h]hstruct}(hjvhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(hcdevh]hcdev}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsjtvsb c.cdev_initasbuh1hhjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hcdevh]hcdev}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubj5)}(h"const struct file_operations *fopsh](j;)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hj whhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hj(whhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hj9whhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6wubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj;wmodnameN classnameNjwjz)}j}]jv c.cdev_initasbuh1hhjvubh)}(h h]h }(hjWwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjewhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hfopsh]hfops}(hjrwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjvubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMvhhhj_vhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIvhhhj_vhMubah}(h]jDvah ](jjeh"]h$]h&]jj)jhuh1hhj_vhMhjFvhhubj)}(hhh]j)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjFvhhhj_vhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjwjjwjjjuh1hhhhjZhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjwubj)}(hhh](j")}(h2``struct cdev *cdev`` the structure to initialize h](j()}(h``struct cdev *cdev``h]j.)}(hjwh]hstruct cdev *cdev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjwubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjwubjD)}(hhh]j)}(hthe structure to initializeh]hthe structure to initialize}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jChjwubeh}(h]h ]h"]h$]h&]uh1j!hjwhMhjwubj")}(hK``const struct file_operations *fops`` the file_operations for this device h](j()}(h&``const struct file_operations *fops``h]j.)}(hjxh]h"const struct file_operations *fops}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjxubjD)}(hhh]j)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hj/xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+xhMhj,xubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hj+xhMhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Description**h]j)}(hjQxh]h Description}(hjSxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOxubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjwubj)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hjgxhhhNhNubj)}(h**cdev**h]hcdev}(hjoxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgxubh, remembering }(hjgxhhhNhNubj)}(h**fops**h]hfops}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgxubh7, making it ready to add to the system with cdev_add().}(hjgxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:354: ./fs/char_dev.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjZhhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM`ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhMfubj)}(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 }(hjxhhhNhNubh)}(h:c:type:`struct clk `h]j.)}(hjxh]h struct clk}(hjxhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8clkuh1hhhhMhhjxubh 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.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhhjxhhubj)}(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 }(hjxhhhNhNubj)}(h*retention mode*h]hretention mode}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMrhjxhhubj)}(hXPower-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a "standby" state may allow wakeup from several active domains, a "mem" (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver's suspend method may need to be aware of system-specific clock constraints on the target sleep state.h]hX"Power-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a “standby” state may allow wakeup from several active domains, a “mem” (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver’s suspend method may need to be aware of system-specific clock constraints on the target sleep state.}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM|hjxhhubj)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjxhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_notifier (C struct)c.clk_notifierhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h clk_notifierh]h)}(hstruct clk_notifierh](j;)}(hj>h]hstruct}(hj@yhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjzubah}(h]h ]h"]h$]h&]uh1jChj"zubeh}(h]h ]h"]h$]h&]uh1j!hj=zhK/hjyubj")}(h``node`` linked list pointersh](j()}(h``node``h]j.)}(hjazh]hnode}(hjczhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_zubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK/hj[zubjD)}(hhh]j)}(hlinked list pointersh]hlinked list pointers}(hjzzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK0hjwzubah}(h]h ]h"]h$]h&]uh1jChj[zubeh}(h]h ]h"]h$]h&]uh1j!hjvzhK/hjyubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubj)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK3hjxhhubj)}(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 }(hjzhhhNhNubj)}(h**clk**h]hclk}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh. Future notifiers on that }(hjzhhhNhNubj)}(h**clk**h]hclk}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh are added to the }(hjzhhhNhNubj)}(h**notifier_head**h]h notifier_head}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK1hjxhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhjxhhhNhNubh)}(hhh](h)}(hclk_notifier_datah]h)}(hstruct clk_notifier_datah](j;)}(hj>h]hstruct}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK9ubh)}(h h]h }(hj&{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj%{hK9ubj)}(hclk_notifier_datah]j)}(hj{h]hclk_notifier_data}(hj8{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhj%{hK9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj%{hK9ubah}(h]j {ah ](jjeh"]h$]h&]jj)jhuh1hhj%{hK9hj {hhubj)}(hhh]j)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hjZ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK=hjW{hhubah}(h]h ]h"]h$]h&]uh1jhj {hhhj%{hK9ubeh}(h]h ](jqstructeh"]h$]h&]jjqjjr{jjr{jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj~{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz{ubh:}(hjz{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKAhjv{ubjo)}(hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };h]hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };}hj{sbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKChjv{ubj)}(h **Members**h]j)}(hj{h]hMembers}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKIhjv{ubj)}(hhh](j")}(h#``clk`` struct clk * being changed h](j()}(h``clk``h]j.)}(hj{h]hclk}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK?hj{ubjD)}(hhh]j)}(hstruct clk * being changedh]hstruct clk * being changed}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hK?hj{ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj{hK?hj{ubj")}(h'``old_rate`` previous rate of this clk h](j()}(h ``old_rate``h]j.)}(hj|h]hold_rate}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj{ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK@hj{ubjD)}(hhh]j)}(hprevious rate of this clkh]hprevious rate of this clk}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hK@hj|ubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hj|hK@hj{ubj")}(h!``new_rate`` new rate of this clkh](j()}(h ``new_rate``h]j.)}(hj9|h]hnew_rate}(hj;|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7|ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK@hj3|ubjD)}(hhh]j)}(hnew rate of this clkh]hnew rate of this clk}(hjR|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKAhjO|ubah}(h]h ]h"]h$]h&]uh1jChj3|ubeh}(h]h ]h"]h$]h&]uh1j!hjN|hK@hj{ubeh}(h]h ]h"]h$]h&]uh1jhjv{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubj)}(h**Description**h]j)}(hj||h]h Description}(hj~|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKDhjxhhubj)}(hFor a pre-notifier, old_rate is the clk's rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk's current rate (this was done to optimize the implementation).h]hXFor a pre-notifier, old_rate is the clk’s rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk’s current rate (this was done to optimize the implementation).}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKBhjxhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhjxhhhNhNubh)}(hhh](h)}(h clk_bulk_datah]h)}(hstruct clk_bulk_datah](j;)}(hj>h]hstruct}(hj|hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKJubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhj|hKJubj)}(h clk_bulk_datah]j)}(hj|h]h clk_bulk_data}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhhj|hKJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj|hhhj|hKJubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hKJhj|hhubj)}(hhh]j)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKNhj|hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hKJubeh}(h]h ](jqstructeh"]h$]h&]jjqjj}jj}jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh:}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKRhj}ubjo)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hj9}sbah}(h]h ]h"]h$]h&]j,j-uh1jnhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKThj}ubj)}(h **Members**h]j)}(hjJ}h]hMembers}(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:393: ./include/linux/clk.hhKYhj}ubj)}(hhh](j")}(h``id`` clock consumer ID h](j()}(h``id``h]j.)}(hji}h]hid}(hjk}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjg}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKQhjc}ubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~}hKQhj}ubah}(h]h ]h"]h$]h&]uh1jChjc}ubeh}(h]h ]h"]h$]h&]uh1j!hj~}hKQhj`}ubj")}(h2``clk`` struct clk * to store the associated clockh](j()}(h``clk``h]j.)}(hj}h]hclk}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj}ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKQhj}ubjD)}(hhh]j)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKRhj}ubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hj}hKQhj`}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubj)}(h**Description**h]j)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKUhjxhhubj)}(hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.h]hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKShjxhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hFint clk_notifier_register (struct clk *clk, struct notifier_block *nb)h]h)}(hEint clk_notifier_register(struct clk *clk, struct notifier_block *nb)h](h)}(hinth]hint}(hj#~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK_ubh)}(h h]h }(hj2~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj1~hK_ubj)}(hclk_notifier_registerh]j)}(hclk_notifier_registerh]hclk_notifier_register}(hjD~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhj1~hK_ubj/)}(h,(struct clk *clk, struct notifier_block *nb)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hj`~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\~ubh)}(h h]h }(hjm~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\~ubh)}(hhh]j)}(hclkh]hclk}(hj~~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j)}jsjF~sbc.clk_notifier_registerasbuh1hhj\~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\~ubj)}(hclkh]hclk}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjX~ubj5)}(hstruct notifier_block *nbh](j;)}(hj>h]hstruct}(hj~hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj~modnameN classnameNjwjz)}j}]j~c.clk_notifier_registerasbuh1hhj~ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hnbh]hnb}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjX~ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj~hhhj1~hK_ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhj1~hK_ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj1~hK_hj~hhubj)}(hhh]j)}(h.register a clock rate-change notifier callbackh]h.register a clock rate-change notifier callback}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK_hjPhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj1~hK_ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKchjoubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK`hjubjD)}(hhh]j)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK`hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK`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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKahjubjD)}(hhh]j)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKahjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKahjubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKchjoubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKchjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hHint clk_notifier_unregister (struct clk *clk, struct notifier_block *nb)h]h)}(hGint clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)h](h)}(hinth]hint}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKjubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhj[hKjubj)}(hclk_notifier_unregisterh]j)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjIhhhj[hKjubj/)}(h,(struct clk *clk, struct notifier_block *nb)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjpsbc.clk_notifier_unregisterasbuh1hhjubh)}(h h]h }(hjȀhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjրhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct notifier_block *nbh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jĀc.clk_notifier_unregisterasbuh1hhjubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnbh]hnb}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjIhhhj[hKjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjEhhhj[hKjubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hKjhjBhhubj)}(hhh]j)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKjhjzhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hKjubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock whose rate we are no longer interested in ``struct notifier_block *nb`` notifier block which will be unregisteredh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKkhjubjD)}(hhh]j)}(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&]uh1jhjӁhKkhjԁubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjӁhKkhjubj")}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j()}(h``struct notifier_block *nb``h]j.)}(hjh]hstruct notifier_block *nb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKmhjubjD)}(hhh]j)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKlhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKmhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h_int devm_clk_notifier_register (struct device *dev, struct clk *clk, struct notifier_block *nb)h]h)}(h^int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb)h](h)}(hinth]hint}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKqubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj_hKqubj)}(hdevm_clk_notifier_registerh]j)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjMhhhj_hKqubj/)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjtsbc.devm_clk_notifier_registerasbuh1hhjubh)}(h h]h }(hĵhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjڂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]jȂc.devm_clk_notifier_registerasbuh1hhjubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct notifier_block *nbh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jȂc.devm_clk_notifier_registerasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hnbh]hnb}(hjǃhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjMhhhj_hKqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjIhhhj_hKqubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hKqhjFhhubj)}(hhh]j)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKqhjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hKqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKuhj ubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hj2h]hstruct device *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKrhj,ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhKrhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhKrhj)ubj")}(h:``struct clk *clk`` clock whose rate we are interested in h](j()}(h``struct clk *clk``h]j.)}(hjkh]hstruct clk *clk}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKshjeubjD)}(hhh]j)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKshjubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjhKshj)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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKthjubjD)}(hhh]j)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKthjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKthj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj߄h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݄ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKvhj ubj)}(h'Returns 0 on success, -EERROR otherwiseh]h'Returns 0 on success, -EERROR otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKvhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h'long clk_get_accuracy (struct clk *clk)h]h)}(h&long clk_get_accuracy(struct clk *clk)h](h)}(hlongh]hlong}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK|ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj2hK|ubj)}(hclk_get_accuracyh]j)}(hclk_get_accuracyh]hclk_get_accuracy}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj2hK|ubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjahhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj]ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjGsbc.clk_get_accuracyasbuh1hhj]ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjYubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj2hK|ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj2hK|ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hK|hjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK|hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hK|ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhK~hjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hK~hj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hK~hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_phase (C function)c.clk_set_phasehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h0int clk_set_phase (struct clk *clk, int degrees)h]h)}(h/int clk_set_phase(struct clk *clk, int degrees)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h clk_set_phaseh]j)}(h clk_set_phaseh]h clk_set_phase}(hjƆhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj†ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct clk *clk, int degrees)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjކubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjކubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjȆsbc.clk_set_phaseasbuh1hhjކubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjކubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjކubj)}(hclkh]hclk}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjކubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjچubj5)}(h int degreesh](h)}(hinth]hint}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hdegreesh]hdegrees}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjچubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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&]uh1j-hjهubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjՇubjD)}(hhh]j)}(hclock signal sourceh]hclock signal source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjՇubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj҇ubj")}(h8``int degrees`` number of degrees the signal is shifted h](j()}(h``int degrees``h]j.)}(hjh]h int degrees}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hKhj҇ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_phase (C function)c.clk_get_phasehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h#int clk_get_phase (struct clk *clk)h]h)}(h"int clk_get_phase(struct clk *clk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h clk_get_phaseh]j)}(h clk_get_phaseh]h clk_get_phase}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjшhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj͈ubh)}(h h]h }(hjވhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͈ubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_get_phaseasbuh1hhj͈ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͈ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͈ubj)}(hclkh]hclk}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͈ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjɈubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjljjljjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source **Description** Returns the phase shift of a clock node in degrees, otherwise returns -EERROR.h](j)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjpubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(hclock signal sourceh]hclock signal source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(h**Description**h]j)}(hjЉh]h Description}(hj҉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΉubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjpubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hLint clk_set_duty_cycle (struct clk *clk, unsigned int num, unsigned int den)h]h)}(hKint clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj#hKubj)}(hclk_set_duty_cycleh]j)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj#hKubj/)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjRhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjNubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubh)}(hhh]j)}(hclkh]hclk}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]j)}jsj8sbc.clk_set_duty_cycleasbuh1hhjNubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hunsigned int numh](h)}(hunsignedh]hunsigned}(hjĊhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjҊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubj5)}(hunsigned int denh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdenh]hden}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjJubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj#hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj#hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hKhj hhubj)}(hhh]j)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjthhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(hclock signal sourceh]hclock signal source}(hjыhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͋hKhj΋ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj͋hKhjubj")}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j()}(h``unsigned int num``h]j.)}(hjh]hunsigned int num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(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&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j()}(h``unsigned int den``h]j.)}(hj*h]hunsigned int den}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj$ubjD)}(hhh]j)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj?hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hCint clk_get_scaled_duty_cycle (struct clk *clk, unsigned int scale)h]h)}(hBint clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hclk_get_scaled_duty_cycleh]j)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hjˌhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h%(struct clk *clk, unsigned int scale)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj͌sbc.clk_get_scaled_duty_cycleasbuh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjߌubj5)}(hunsigned int scaleh](h)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hinth]hint}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hscaleh]hscale}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjߌubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjӍjjӍjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjݍh]h Parameters}(hjߍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۍubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj׍ubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(hclock signal sourceh]hclock signal source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j()}(h``unsigned int scale``h]j.)}(hj5h]hunsigned int scale}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj/ubjD)}(hhh]j)}(hAscaling factor to be applied to represent the ratio as an integerh]hAscaling factor to be applied to represent the ratio as an integer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhKhjubeh}(h]h ]h"]h$]h&]uh1jhj׍ubj)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj׍ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj׍ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_is_match (C function)c.clk_is_matchhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hh]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj,modnameN classnameNjwjz)}j}]j)}jsj׎sbc.clk_is_matchasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct clk *qh](j;)}(hjh]hconst}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jFc.clk_is_matchasbuh1hhjyubh)}(h h]h }(hjԏhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjfh]hq}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjŽhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjŽhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjŽhKhjhhubj)}(hhh]j)}(h3check if two clk's point to the same hardware clockh]h5check if two clk’s point to the same hardware clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŽhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj0jj0jjjuh1hhhhjxhNhNubj)}(hX**Parameters** ``const struct clk *p`` clk compared against q ``const struct clk *q`` clk compared against p **Description** Returns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if **p** and **q** share the same :c:type:`struct clk_core ` object. Returns false otherwise. Note that two NULL clks are treated as matching.h](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj4ubj)}(hhh](j")}(h/``const struct clk *p`` clk compared against q h](j()}(h``const struct clk *p``h]j.)}(hjYh]hconst struct clk *p}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjWubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjSubjD)}(hhh]j)}(hclk compared against qh]hclk compared against q}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjnhKhjPubj")}(h/``const struct clk *q`` clk compared against p h](j()}(h``const struct clk *q``h]j.)}(hjh]hconst struct clk *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(hclk compared against ph]hclk compared against p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hj͐h]h Description}(hjϐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjːubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj4ubj)}(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 }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh share the same }(hjhhhNhNubh)}(h$:c:type:`struct clk_core `h]j.)}(hjh]hstruct clk_core}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8clk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubh object.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj.hKhj4ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,int clk_rate_exclusive_get (struct clk *clk)h]h)}(h+int clk_rate_exclusive_get(struct clk *clk)h](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjvhKubj)}(hclk_rate_exclusive_geth]j)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjvhKubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjÑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjőmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_rate_exclusive_getasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjdhhhjvhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj`hhhjvhKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjvhKhj]hhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjih]hstruct clk *clk}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjcubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hKhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(hEint devm_clk_rate_exclusive_get (struct device *dev, struct clk *clk)h]h)}(hDint devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hKubj)}(hdevm_clk_rate_exclusive_geth]j)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj$hKubj/)}(h%(struct device *dev, struct clk *clk)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsj9sbc.devm_clk_rate_exclusive_getasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubj5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjœhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjғhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_clk_rate_exclusive_getasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj$hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj$hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhj hhubj)}(hhh]j)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjChhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj^jj^jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjbubj)}(hhh](j")}(h:``struct device *dev`` device the exclusivity is bound to h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(h"device the exclusivity is bound toh]h"device the exclusivity is bound to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj~ubj")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hj”hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjٔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՔhKhj֔ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjՔhKhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjbubj)}(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 }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) and registers a devm cleanup handler on }(hjhhhNhNubj)}(h**dev**h]hdev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" to call clk_rate_exclusive_put().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjbubj)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h-void clk_rate_exclusive_put (struct clk *clk)h]h)}(h,void clk_rate_exclusive_put(struct clk *clk)h](h)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjhKubj)}(hclk_rate_exclusive_puth]j)}(hclk_rate_exclusive_puth]hclk_rate_exclusive_put}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjhKubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjΕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj˕ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjЕmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_rate_exclusive_putasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjhKubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhhubj)}(hhh]j)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjKjjKjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjOubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjth]hstruct clk *clk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjnubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjkubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjOubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjOubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjOubj)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_prepare (C function) c.clk_preparehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h!int clk_prepare (struct clk *clk)h]h)}(h int clk_prepare(struct clk *clk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM,ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM,ubj)}(h clk_prepareh]j)}(h clk_prepareh]h clk_prepare}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hM,ubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(hclkh]hclk}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]j)}jsj5sb c.clk_prepareasbuh1hhjKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjGubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hM,ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM,hjhhubj)}(hhh]j)}(hprepare a clock sourceh]hprepare a clock source}(hjҗhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM,hjϗhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM,ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This prepares the clock source for use. Must not be called from within atomic context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM0hjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM-hj ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hM-hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hM-hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/hjubj)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/hjubj)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h3bool clk_is_enabled_when_prepared (struct clk *clk)h]h)}(h2bool clk_is_enabled_when_prepared(struct clk *clk)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM8ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM8ubj)}(hclk_is_enabled_when_preparedh]j)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hj˜hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM8ubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjޘhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjژubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjژubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjĘsbc.clk_is_enabled_when_preparedasbuh1hhjژubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjژubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjژubj)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjژubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj֘ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM8ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hjhhubj)}(hhh]j)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM8hj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM<hj}ubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM9hjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM9hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM9hjubah}(h]h ]h"]h$]h&]uh1jhj}ubj)}(h**Description**h]j)}(hjݙh]h Description}(hjߙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۙubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM;hj}ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM;hj}ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM>hj}ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMBhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_unprepare (C function)c.clk_unpreparehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h$void clk_unprepare (struct clk *clk)h]h)}(h#void clk_unprepare(struct clk *clk)h](h)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM\ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<hhhjNhM\ubj)}(h clk_unprepareh]j)}(h clk_unprepareh]h clk_unprepare}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<hhhjNhM\ubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjcsbc.clk_unprepareasbuh1hhjyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjɚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hclkh]hclk}(hj֚hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubah}(h]h ]h"]h$]h&]j,j-uh1j.hj<hhhjNhM\ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj8hhhjNhM\ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhM\hj5hhubj)}(hhh]j)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM\hjhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhM\ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hjubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjAh]hstruct clk *clk}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM]hj;ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhM]hjWubah}(h]h ]h"]h$]h&]uh1jChj;ubeh}(h]h ]h"]h$]h&]uh1j!hjVhM]hj8ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM_hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM_hjubj)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get (C function) c.clk_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(h9struct clk * clk_get (struct device *dev, const char *id)h]h)}(h7struct clk *clk_get(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjЛhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj̛hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuubh)}(h h]h }(hjޛhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̛hhhjݛhMuubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsclk_getsb c.clk_getasbuh1hhj̛hhhjݛhMuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̛hhhjݛhMuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̛hhhjݛhMuubj)}(hclk_geth]j)}(hj h]hclk_get}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj̛hhhjݛhMuubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j  c.clk_getasbuh1hhjFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjǜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj՜hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj̛hhhjݛhMuubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjțhhhjݛhMuubah}(h]jÛah ](jjeh"]h$]h&]jj)jhuh1hhjݛhMuhjśhhubj)}(hhh]j)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhj%hhubah}(h]h ]h"]h$]h&]uh1jhjśhhhjݛhMuubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj@jj@jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMyhjDubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjih]hstruct device *dev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMvhjcubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hMvhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hMvhj`ubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMwhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMwhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMwhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubj)}(h**Description**h]j)}(hjݝh]h Description}(hjߝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۝ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMyhjDubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhY may be identical strings, but clk_get may return different clock producers depending on }(hjhhhNhNubj)}(h**dev**h]hdev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMyhjDubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjDubj)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(hOint clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]h)}(hNint clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h clk_bulk_geth]j)}(h clk_bulk_geth]h clk_bulk_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjŞhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjҞhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_getasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h int num_clksh](h)}(hinth]hint}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hnum_clksh]hnum_clks}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk_bulk_data *clksh](j;)}(hj>h]hstruct}(hjlhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.clk_bulk_getasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hclksh]hclks}(hjßhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]j)}(h;lookup and obtain a number of references to clock producer.h]h;lookup and obtain a number of references to clock producer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj(ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMhj%ubj")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjgh]h int num_clks}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjaubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|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.)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj۠h]h Description}(hjݠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٠ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hFint clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]h)}(hEint clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclk_bulk_get_allh]j)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj͡hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjޡhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjۡubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_get_allasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk_bulk_data **clksh](j;)}(hj>h]hstruct}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjRmodnameN classnameNjwjz)}j}]jc.clk_bulk_get_allasbuh1hhj.ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj)}(hhh]j)}(h=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjآjjآjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hO``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data **clks``h]j.)}(hj:h]hstruct clk_bulk_data **clks}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj4ubjD)}(hhh]j)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhMhjubeh}(h]h ]h"]h$]h&]uh1jhjܢubj)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubj)}(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 }(hjhhhNhNubj)}(h**clks**h]hclks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjܢubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hXint clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]h)}(hWint clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclk_bulk_get_optionalh]j)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hj6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hdeviceh]hdevice}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_get_optionalasbuh1hhj2ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubj5)}(h int num_clksh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnum_clksh]hnum_clks}(hjĤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubj5)}(hstruct clk_bulk_data *clksh](j;)}(hj>h]hstruct}(hjݤhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj٤ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj٤ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jpc.clk_bulk_get_optionalasbuh1hhj٤ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj٤ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٤ubj)}(hclksh]hclks}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj٤ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjzubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hj֥ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjҥubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjҥubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj&hMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubj)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjzubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(hTint devm_clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]h)}(hSint devm_clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdevm_clk_bulk_geth]j)}(hdevm_clk_bulk_geth]hdevm_clk_bulk_get}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjΦhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjʦubh)}(h h]h }(hjۦhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjʦubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_bulk_getasbuh1hhjʦubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjʦubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʦubj)}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjʦubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjƦubj5)}(h int num_clksh](h)}(hinth]hint}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hnum_clksh]hnum_clks}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjƦubj5)}(hstruct clk_bulk_data *clksh](j;)}(hj>h]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_clk_bulk_getasbuh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hclksh]hclks}(hj̧hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjƦubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hj7h]hstruct device *dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj1ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhMhj.ubj")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjph]h int num_clks}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj.ubj")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj¨hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h]int devm_clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]h)}(h\int devm_clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](h)}(hinth]hint}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhjFhMubj)}(hdevm_clk_bulk_get_optionalh]j)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhhjFhMubj/)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsj[sbc.devm_clk_bulk_get_optionalasbuh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hdevh]hdev}(hjΩhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(h int num_clksh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubj5)}(hstruct clk_bulk_data *clksh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]jc.devm_clk_bulk_get_optionalasbuh1hhjubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhjFhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhjFhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj-hhubj)}(hhh]j)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjުh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjܪubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjتubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjتubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjժubj")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hMhjժubj")}(hN``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjPh]hstruct clk_bulk_data *clks}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjJubjD)}(hhh]j)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjժubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjʫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjܫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hKint devm_clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]h)}(hJint devm_clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](h)}(hinth]hint}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj)}(hdevm_clk_bulk_get_allh]j)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhMubj/)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.devm_clk_bulk_get_allasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hdevh]hdev}(hjɬhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hstruct clk_bulk_data **clksh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjެubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjެubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_clk_bulk_get_allasbuh1hhjެubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjެubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjެubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjެubj)}(hclksh]hclks}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjެubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjʭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƭhMhjǭubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjƭhMhjubj")}(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.)}(hjh]hstruct clk_bulk_data **clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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 }(hj;hhhNhNubj)}(h**clks**h]hclks}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubhN field. Returns 0 if there’re none and a negative value if something failed.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hSint devm_clk_bulk_get_all_enabled (struct device *dev, struct clk_bulk_data **clks)h]h)}(hRint devm_clk_bulk_get_all_enabled(struct device *dev, struct clk_bulk_data **clks)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdevm_clk_bulk_get_all_enabledh]j)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjȮhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjĮubh)}(h h]h }(hjծhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĮubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_bulk_get_all_enabledasbuh1hhjĮubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĮubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĮubj)}(hdevh]hdev}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĮubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk_bulk_data **clksh](j;)}(hj>h]hstruct}(hj:hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj6ubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjZmodnameN classnameNjwjz)}j}]jc.devm_clk_bulk_get_all_enabledasbuh1hhj6ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjȯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjůhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(hXD**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. This helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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.)}(hjBh]hstruct clk_bulk_data **clks}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj<ubjD)}(hhh]j)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hjWhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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 }(hjhhhNhNubj)}(h**clks**h]hclks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hThis helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.h]hThis helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_get (C function)c.devm_clk_gethNtauh1hhjxhhhNhNubh)}(hhh](h)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj߰hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߰hhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}js devm_clk_getsbc.devm_clk_getasbuh1hhj߰hhhjhMubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj߰hhhjhMubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߰hhhjhMubj)}(h devm_clk_geth]j)}(hj h]h devm_clk_get}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj߰hhhjhMubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hj]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(hdeviceh]hdevice}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]jc.devm_clk_getasbuh1hhjYubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjͱhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjɱubh)}(h h]h }(hjڱhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɱubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɱubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɱubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɱubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjɱubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj߰hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj۰hhhjhMubah}(h]jְah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjذhhubj)}(hhh]j)}(h:lookup and obtain a managed reference to a clock producer.h]h:lookup and obtain a managed reference to a clock producer.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjذhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjxhNhNubj)}(hX|**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** Drivers must assume that the clock source is neither prepared nor enabled. The clock will automatically be freed when the device is unbound from the bus.h](j)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjWubj)}(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&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjvubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjsubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjβhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʲhMhj˲ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjʲhMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubj)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjWubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjWubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjWubj)}(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 }(hj-hhhNhNubj)}(h**dev**h]hdev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh and }(hj-hhhNhNubj)}(h**id**h]hid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj-hhhNhNubj)}(h**id**h]hid}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj-hhhNhNubj)}(h**dev**h]hdev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh.)}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjWubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjWubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjWubj)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_get_prepared (C function)c.devm_clk_get_preparedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hGstruct clk * devm_clk_get_prepared (struct device *dev, const char *id)h]h)}(hEstruct clk *devm_clk_get_prepared(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjڳhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjֳhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjֳhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_preparedsbc.devm_clk_get_preparedasbuh1hhjֳhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjֳhhhjhMubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֳhhhjhMubj)}(hdevm_clk_get_preparedh]j)}(hjh]hdevm_clk_get_prepared}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjֳhhhjhMubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjPubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hhh]j)}(hdeviceh]hdevice}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjtmodnameN classnameNjwjz)}j}]jc.devm_clk_get_preparedasbuh1hhjPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjĴhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjѴhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjߴhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjֳhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjҳhhhjhMubah}(h]jͳah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjϳhhubj)}(hhh]j)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj/hhubah}(h]h ]h"]h$]h&]uh1jhjϳhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjJjjJjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjNubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjsh]hstruct device *dev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjmubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjŵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjµubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjNubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjNubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjNubj)}(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 }(hj$hhhNhNubj)}(h**dev**h]hdev}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh and }(hj$hhhNhNubj)}(h**id**h]hid}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj$hhhNhNubj)}(h**id**h]hid}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj$hhhNhNubj)}(h**dev**h]hdev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh.)}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjNubj)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM&hjNubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM&hjNubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM)hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!devm_clk_get_enabled (C function)c.devm_clk_get_enabledhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hFstruct clk * devm_clk_get_enabled (struct device *dev, const char *id)h]h)}(hDstruct clk *devm_clk_get_enabled(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjѶhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjͶhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/ubh)}(h h]h }(hj߶hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͶhhhj޶hM/ubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhjͶhhhj޶hM/ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͶhhhj޶hM/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͶhhhj޶hM/ubj)}(hdevm_clk_get_enabledh]j)}(hjh]hdevm_clk_get_enabled}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjͶhhhj޶hM/ubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjKhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjGubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubh)}(hhh]j)}(hdeviceh]hdevice}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjkmodnameN classnameNjwjz)}j}]j c.devm_clk_get_enabledasbuh1hhjGubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjȷhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjַhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjͶhhhj޶hM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjɶhhhj޶hM/ubah}(h]jĶah ](jjeh"]h$]h&]jj)jhuh1hhj޶hM/hjƶhhubj)}(hhh]j)}(h%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM/hj&hhubah}(h]h ]h"]h$]h&]uh1jhjƶhhhj޶hM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM3hjEubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjjh]hstruct device *dev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM0hjdubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhM0hjaubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM1hjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM1hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM1hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj)}(h **Context**h]j)}(hj޸h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܸubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM3hjEubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM3hjEubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM5hjEubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjhhhNhNubj)}(h**id**h]hid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhY may be identical strings, but clk_get may return different clock producers depending on }(hjhhhNhNubj)}(h**dev**h]hdev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM5hjEubj)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM;hjEubj)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM;hjEubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM=hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hGstruct clk * devm_clk_get_optional (struct device *dev, const char *id)h]h)}(hEstruct clk *devm_clk_get_optional(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjȹhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjĹhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMCubh)}(h h]h }(hjֹhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĹhhhjչhMCubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjĹhhhjչhMCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĹhhhjչhMCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĹhhhjչhMCubj)}(hdevm_clk_get_optionalh]j)}(hjh]hdevm_clk_get_optional}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjĹhhhjչhMCubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjBhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj>ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hdeviceh]hdevice}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]jc.devm_clk_get_optionalasbuh1hhj>ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjͺhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjۺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjĹhhhjչhMCubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjչhMCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjչhMChjhhubj)}(hhh]j)}(hDlookup and obtain a managed reference to an optional clock producer.h]hDlookup and obtain a managed reference to an optional clock producer.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMChjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjչhMCubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8jj8jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMGhj<ubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjah]hstruct device *dev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMEhj[ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMEhjwubah}(h]h ]h"]h$]h&]uh1jChj[ubeh}(h]h ]h"]h$]h&]uh1j!hjvhMEhjXubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMFhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMFhjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h **Context**h]j)}(hjջh]hContext}(hj׻hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӻubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMHhj<ubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMHhj<ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMJhj<ubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMJhj<ubj)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMQhj<ubj)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMQhj<ubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMThj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hPstruct clk * devm_clk_get_optional_prepared (struct device *dev, const char *id)h]h)}(hNstruct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMZubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optional_preparedsb c.devm_clk_get_optional_preparedasbuh1hhjhhhjhMZubh)}(h h]h }(hjۼhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMZubj)}(hdevm_clk_get_optional_preparedh]j)}(hjؼh]hdevm_clk_get_optional_prepared}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMZubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]jּ c.devm_clk_get_optional_preparedasbuh1hhjubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjɽhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMZubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMZubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMZhjhhubj)}(hhh]j)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMZhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMZubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^hjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hj4h]hstruct device *dev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM[hj.ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhM[hjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhM[hj+ubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjmh]hconst char *id}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM\hjgubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM\hjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhM\hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^hjubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^hjubj)}(h **Return**h]j)}(hjϾh]hReturn}(hjѾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hjubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMghjubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMghjubj)}(h]The clock will automatically be unprepared and freed when the device is unbound from the bus.h]h]The clock will automatically be unprepared and freed when the device is unbound from the bus.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hOstruct clk * devm_clk_get_optional_enabled (struct device *dev, const char *id)h]h)}(hMstruct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjnhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMpubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj{hMpubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_clk_get_optional_enabledsbc.devm_clk_get_optional_enabledasbuh1hhjjhhhj{hMpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj{hMpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj{hMpubj)}(hdevm_clk_get_optional_enabledh]j)}(hjh]hdevm_clk_get_optional_enabled}(hjͿhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjɿubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj{hMpubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_clk_get_optional_enabledasbuh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjTubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hcharh]hchar}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhj{hMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhj{hMpubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj{hMphjchhubj)}(hhh]j)}(h.devm_clk_get_optional() + clk_prepare_enable()h]h.devm_clk_get_optional() + clk_prepare_enable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMphjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj{hMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMthjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMrhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hj@h]hconst char *id}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMshj:ubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMshjVubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hjUhMshjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Context**h]j)}(hj{h]hContext}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhjubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMwhjubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMwhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM~hjubj)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM~hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ4devm_clk_get_optional_enabled_with_rate (C function))c.devm_clk_get_optional_enabled_with_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hmstruct clk * devm_clk_get_optional_enabled_with_rate (struct device *dev, const char *id, unsigned long rate)h]h)}(hkstruct clk *devm_clk_get_optional_enabled_with_rate(struct device *dev, const char *id, unsigned long rate)h](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhjNhMubh)}(hhh]j)}(hclkh]hclk}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjbmodnameN classnameNjwjz)}j}]j)}js'devm_clk_get_optional_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhj=hhhjNhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhjNhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjNhMubj)}(h'devm_clk_get_optional_enabled_with_rateh]j)}(hj~h]h'devm_clk_get_optional_enabled_with_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhhjNhMubj/)}(h8(struct device *dev, const char *id, unsigned long rate)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j|)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *idh](j;)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj'ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hcharh]hchar}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hidh]hid}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj=hhhjNhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhjNhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhj6hhubj)}(hhh]j)}(h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjNhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj%ubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhj"ubj")}(h%``const char *id`` clock consumer ID h](j()}(h``const char *id``h]j.)}(hjdh]hconst char *id}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj^ubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj"ubj")}(h&``unsigned long rate`` new clock rate h](j()}(h``unsigned long rate``h]j.)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hnew clock rateh]hnew clock rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj"ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hEThe returned clk (if valid) is prepared and enabled and rate was set.h]hEThe returned clk (if valid) is prepared and enabled and rate was set.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$devm_get_clk_from_child (C function)c.devm_get_clk_from_childhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hestruct clk * devm_get_clk_from_child (struct device *dev, struct device_node *np, const char *con_id)h]h)}(hcstruct clk *devm_get_clk_from_child(struct device *dev, struct device_node *np, const char *con_id)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsdevm_get_clk_from_childsbc.devm_get_clk_from_childasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdevm_get_clk_from_childh]j)}(hjh]hdevm_get_clk_from_child}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h@(struct device *dev, struct device_node *np, const char *con_id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]jc.devm_get_clk_from_childasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct device_node *nph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.devm_get_clk_from_childasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnph]hnp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *con_idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcon_idh]hcon_id}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hJlookup and obtain a managed reference to a clock producer from child node.h]hJlookup and obtain a managed reference to a clock producer from child node.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjxhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``struct device_node *np`` pointer to clock consumer node ``const char *con_id`` clock consumer ID **Description** This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id** The clock will automatically be freed when the device is unbound from the bus.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h3``struct device *dev`` device for clock "consumer" h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h:``struct device_node *np`` pointer to clock consumer node h](j()}(h``struct device_node *np``h]j.)}(hjh]hstruct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hpointer to clock consumer nodeh]hpointer to clock consumer node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h)``const char *con_id`` clock consumer ID h](j()}(h``const char *con_id``h]j.)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hclock consumer IDh]hclock consumer ID}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj.hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hThis function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id**h](h~This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using }(hjjhhhNhNubj)}(h**np**h]hnp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh and }(hjjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_enable (C function) c.clk_enablehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h int clk_enable (struct clk *clk)h]h)}(hint clk_enable(struct clk *clk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h clk_enableh]j)}(h clk_enableh]h clk_enable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j)}jsjsb c.clk_enableasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h:inform the system when the clock source should be running.h]h:inform the system when the clock source should be running.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** If the clock can not be enabled/disabled, this should return success. May be called from atomic contexts. Returns success (0) or negative errno.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hEIf the clock can not be enabled/disabled, this should return success.h]hEIf the clock can not be enabled/disabled, this should return success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hDint clk_bulk_enable (int num_clks, const struct clk_bulk_data *clks)h]h)}(hCint clk_bulk_enable(int num_clks, const struct clk_bulk_data *clks)h](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjuhMubj)}(hclk_bulk_enableh]j)}(hclk_bulk_enableh]hclk_bulk_enable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjchhhjuhMubj/)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j5)}(h int num_clksh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(h const struct clk_bulk_data *clksh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_enableasbuh1hhjubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjchhhjuhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]j)}(h9inform the system when the set of clks should be running.h]h9inform the system when the set of clks should be running.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjthhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``int num_clks`` the number of clk_bulk_data ``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** May be called from atomic contexts. Returns success (0) or negative errno.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hI``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h$``const struct clk_bulk_data *clks``h]j.)}(hjh]h const struct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_disable (C function) c.clk_disablehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h"void clk_disable (struct clk *clk)h]h)}(h!void clk_disable(struct clk *clk)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhjhMubj)}(h clk_disableh]j)}(h clk_disableh]h clk_disable}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhhjhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.clk_disableasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj|hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]j)}(h>inform the system when the clock source is no longer required.h]h>inform the system when the clock source is no longer required.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj=hhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj\ubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj{ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj\ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj\ubj)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj\ubj)}(hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hFvoid clk_bulk_disable (int num_clks, const struct clk_bulk_data *clks)h]h)}(hEvoid clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj-hMubj)}(hclk_bulk_disableh]j)}(hclk_bulk_disableh]hclk_bulk_disable}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj-hMubj/)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j5)}(h int num_clksh](h)}(hinth]hint}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hnum_clksh]hnum_clks}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjTubj5)}(h const struct clk_bulk_data *clksh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjBsbc.clk_bulk_disableasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjTubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj-hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj-hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhjhhubj)}(hhh]j)}(h=inform the system when the set of clks is no longer required.h]h=inform the system when the set of clks is no longer required.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjKubj)}(hhh](j")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjph]h int num_clks}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjgubj")}(hI``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h$``const struct clk_bulk_data *clks``h]j.)}(hjh]h const struct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjKubj)}(h\Inform the system that a set of clks is no longer required by a driver and may be shut down.h]h\Inform the system that a set of clks is no longer required by a driver and may be shut down.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjKubj)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjKubj)}(hImplementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_rate (C function)c.clk_get_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h,unsigned long clk_get_rate (struct clk *clk)h]h)}(h+unsigned long clk_get_rate(struct clk *clk)h](h)}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhMubh)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhjUhMubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhMubj)}(h clk_get_rateh]j)}(h clk_get_rateh]h clk_get_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhjUhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_get_rateasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjChhhjUhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?hhhjUhMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhj<hhubj)}(hhh]j)}(htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.h]htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhjxhNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj?ubj)}(hhh]j")}(h ``struct clk *clk`` clock sourceh](j()}(h``struct clk *clk``h]j.)}(hjdh]hstruct clk *clk}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj^ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_put (C function) c.clk_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hvoid clk_put (struct clk *clk)h]h)}(hvoid clk_put(struct clk *clk)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclk_puth]j)}(hclk_puth]hclk_put}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.clk_putasbuh1hhjubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"free" the clock sourceh]h“free” the clock source}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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. **Description** clk_put should not be called from within interrupt context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_putasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjthMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj^hhhjthMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthMhj[hhubj)}(hhh]j)}(h"free" the clock sourceh]h“free” the clock source}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjsjjsjjjuh1hhhhjxhNhNubj)}(hXv**Parameters** ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Note** drivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function. **Description** clk_bulk_put should not be called from within interrupt context.h](j)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjwubj)}(hhh](j")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjwubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjwubj)}(hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjwubj)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjwubj)}(h@clk_bulk_put should not be called from within interrupt context.h]h@clk_bulk_put should not be called from within interrupt context.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_bulk_put_all (C function)c.clk_bulk_put_allhNtauh1hhjxhhhNhNubh)}(hhh](h)}(h@void clk_bulk_put_all (int num_clks, struct clk_bulk_data *clks)h]h)}(h?void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks)h](h)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjhM ubj)}(hclk_bulk_put_allh]j)}(hclk_bulk_put_allh]hclk_bulk_put_all}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjxhhhjhM ubj/)}(h*(int num_clks, struct clk_bulk_data *clks)h](j5)}(h int num_clksh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk_bulk_data *clksh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_bulk_put_allasbuh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjxhhhjhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjthhhjhM ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjqhhubj)}(hhh]j)}(h"free" all the clock sourceh]h“free” all the clock source}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjnhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(hXz**Parameters** ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Note** drivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function. **Description** clk_bulk_put_all should not be called from within interrupt context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h-``int num_clks`` the number of clk_bulk_data h](j()}(h``int num_clks``h]j.)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjubjD)}(hhh]j)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubj")}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j()}(h``struct clk_bulk_data *clks``h]j.)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjubjD)}(hhh]j)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hj&h]hNote}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hDclk_bulk_put_all should not be called from within interrupt context.h]hDclk_bulk_put_all should not be called from within interrupt context.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_clk_put (C function)c.devm_clk_puthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h7void devm_clk_put (struct device *dev, struct clk *clk)h]h)}(h6void devm_clk_put(struct device *dev, struct clk *clk)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h devm_clk_puth]j)}(h devm_clk_puth]h devm_clk_put}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h%(struct device *dev, struct clk *clk)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.devm_clk_putasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjAhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj=ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j)}(hclkh]hclk}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjamodnameN classnameNjwjz)}j}]j c.devm_clk_putasbuh1hhj=ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"free" a managed clock sourceh]h!“free” a managed clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(hXm**Parameters** ``struct device *dev`` device used to acquire the clock ``struct clk *clk`` clock source acquired with devm_clk_get() **Note** drivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function. **Description** clk_put should not be called from within interrupt context.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh](j")}(h8``struct device *dev`` device used to acquire the clock h](j()}(h``struct device *dev``h]j.)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h device used to acquire the clockh]h device used to acquire the clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h>``struct clk *clk`` clock source acquired with devm_clk_get() h](j()}(h``struct clk *clk``h]j.)}(hj<h]hstruct clk *clk}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj6ubjD)}(hhh]j)}(h)clock source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jChj6ubeh}(h]h ]h"]h$]h&]uh1j!hjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjwh]hNote}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjubj)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_round_rate (C function)c.clk_round_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h9long clk_round_rate (struct clk *clk, unsigned long rate)h]h)}(h8long clk_round_rate(struct clk *clk, unsigned long rate)h](h)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM*ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM*ubj)}(hclk_round_rateh]j)}(hclk_round_rateh]hclk_round_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM*ubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_round_rateasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM*ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjhhubj)}(hhh]j)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM.hjubj)}(hhh](j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hj5h]hstruct clk *clk}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM+hj/ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhM+hjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhM+hj,ubj")}(h0``unsigned long rate`` desired clock rate in Hz h](j()}(h``unsigned long rate``h]j.)}(hjnh]hunsigned long rate}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM,hjhubjD)}(hhh]j)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM,hjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhM,hj,ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM.hjubj)}(hThis answers the question "if I were to pass **rate** to clk_set_rate(), what clock rate would I end up with?" without changing the hardware in any way. In other words:h](h/This answers the question “if I were to pass }(hjhhhNhNubj)}(h**rate**h]hrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv to clk_set_rate(), what clock rate would I end up with?” without changing the hardware in any way. In other words:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM.hjubj<8)}(hrate = clk_round_rate(clk, r); h]j)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM2hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM2hjubj)}(hand:h]hand:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM4hjubj<8)}(h0clk_set_rate(clk, r); rate = clk_get_rate(clk); h]j)}(h/clk_set_rate(clk, r); rate = clk_get_rate(clk);h]h/clk_set_rate(clk, r); rate = clk_get_rate(clk);}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM6hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM6hjubj)}(hOare equivalent except the former does not modify the clock hardware in any way.h]hOare equivalent except the former does not modify the clock hardware in any way.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM9hjubj)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_rate (C function)c.clk_set_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h6int clk_set_rate (struct clk *clk, unsigned long rate)h]h)}(h5int clk_set_rate(struct clk *clk, unsigned long rate)h](h)}(hinth]hint}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMAubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[hhhjmhMAubj)}(h clk_set_rateh]j)}(h clk_set_rateh]h clk_set_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj[hhhjmhMAubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_rateasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hrateh]hrate}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj[hhhjmhMAubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjWhhhjmhMAubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhMAhjThhubj)}(hhh]j)}(h%set the clock rate for a clock sourceh]h%set the clock rate for a clock source}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMAhjmhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMAubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMEhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMBhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMBhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMBhjubj")}(h0``unsigned long rate`` desired clock rate in Hz h](j()}(h``unsigned long rate``h]j.)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMChjubjD)}(hhh]j)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMChjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMChjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMEhjubj)}(hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.h]hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMEhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h@int clk_set_rate_exclusive (struct clk *clk, unsigned long rate)h]h)}(h?int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)h](h)}(hinth]hint}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMMubj)}(hclk_set_rate_exclusiveh]j)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjhMMubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_rate_exclusiveasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hrateh]hrate}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjhMMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjhMMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMMhjnhhubj)}(hhh]j)}(h:set the clock rate and claim exclusivity over clock sourceh]h:set the clock rate and claim exclusivity over clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMQhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMOhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMOhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMOhjubj")}(h0``unsigned long rate`` desired clock rate in Hz h](j()}(h``unsigned long rate``h]j.)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMPhjubjD)}(hhh]j)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMPhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMPhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMRhjubj)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMRhjubj)}(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()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMUhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_has_parent (C function)c.clk_has_parenthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hEbool clk_has_parent (const struct clk *clk, const struct clk *parent)h]h)}(hDbool clk_has_parent(const struct clk *clk, const struct clk *parent)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM^ubj)}(hclk_has_parenth]j)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM^ubj/)}(h1(const struct clk *clk, const struct clk *parent)h](j5)}(hconst struct clk *clkh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_has_parentasbuh1hhjubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst struct clk *parenth](j;)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j3c.clk_has_parentasbuh1hhjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM^ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM^ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM^hjhhubj)}(hhh]j)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM^hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMbhj#ubj)}(hhh](j")}(h'``const struct clk *clk`` clock source h](j()}(h``const struct clk *clk``h]j.)}(hjHh]hconst struct clk *clk}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjFubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM_hjBubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hM_hj^ubah}(h]h ]h"]h$]h&]uh1jChjBubeh}(h]h ]h"]h$]h&]uh1j!hj]hM_hj?ubj")}(h1``const struct clk *parent`` parent clock source h](j()}(h``const struct clk *parent``h]j.)}(hjh]hconst struct clk *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM`hj{ubjD)}(hhh]j)}(hparent clock sourceh]hparent clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM`hjubah}(h]h ]h"]h$]h&]uh1jChj{ubeh}(h]h ]h"]h$]h&]uh1j!hjhM`hj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMbhj#ubj)}(hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.h]hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMbhj#ubj)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a possible parent for }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, false otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMehj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhjxhhhNhNubh)}(hhh](h)}(hNint clk_set_rate_range (struct clk *clk, unsigned long min, unsigned long max)h]h)}(hMint clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)h](h)}(hinth]hint}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjBhMjubj)}(hclk_set_rate_rangeh]j)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj0hhhjBhMjubj/)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjmubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjWsbc.clk_set_rate_rangeasbuh1hhjmubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hunsigned long minh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hminh]hmin}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubj5)}(hunsigned long maxh](h)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hmaxh]hmax}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjiubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj0hhhjBhMjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,hhhjBhMjubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMjhj)hhubj)}(hhh]j)}(h#set a rate range for a clock sourceh]h#set a rate range for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMjhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMjubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMnhjubj)}(hhh](j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMkhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMkhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMkhjubj")}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j()}(h``unsigned long min``h]j.)}(hjh]hunsigned long min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMlhj ubjD)}(hhh]j)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hMlhj&ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj%hMlhjubj")}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j()}(h``unsigned long max``h]j.)}(hjIh]hunsigned long max}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMmhjCubjD)}(hhh]j)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMmhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hMmhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMohjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h:int clk_set_min_rate (struct clk *clk, unsigned long rate)h]h)}(h9int clk_set_min_rate(struct clk *clk, unsigned long rate)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMtubj)}(hclk_set_min_rateh]j)}(hclk_set_min_rateh]hclk_set_min_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMtubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_min_rateasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMtubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(hhh]j)}(h+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMxhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMuhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hMuhj1ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj0hMuhjubj")}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive h](j()}(h``unsigned long rate``h]j.)}(hjTh]hunsigned long rate}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjRubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMvhjNubjD)}(hhh]j)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjihMvhjjubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjihMvhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMxhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h:int clk_set_max_rate (struct clk *clk, unsigned long rate)h]h)}(h9int clk_set_max_rate(struct clk *clk, unsigned long rate)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM}ubj)}(hclk_set_max_rateh]j)}(hclk_set_max_rateh]hclk_set_max_rate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM}ubj/)}(h%(struct clk *clk, unsigned long rate)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hclkh]hclk}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj1modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_max_rateasbuh1hhj ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hclkh]hclk}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubj5)}(hunsigned long rateh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM}ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM}hjhhubj)}(hhh]j)}(h+set a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM}ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./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&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhM~hj ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hM~hj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hM~hjubj")}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j()}(h``unsigned long rate``h]j.)}(hj_h]hunsigned long rate}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjYubjD)}(hhh]j)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_set_parent (C function)c.clk_set_parenthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h8int clk_set_parent (struct clk *clk, struct clk *parent)h]h)}(h7int clk_set_parent(struct clk *clk, struct clk *parent)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclk_set_parenth]j)}(hclk_set_parenth]hclk_set_parent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h%(struct clk *clk, struct clk *parent)h](j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj<modnameN classnameNjwjz)}j}]j)}jsjsbc.clk_set_parentasbuh1hhjubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct clk *parenth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jVc.clk_set_parentasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h*set the parent clock source for this clockh]h*set the parent clock source for this clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'jj'jjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``struct clk *parent`` parent clock source **Description** Returns success (0) or negative errno.h](j)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj+ubj)}(hhh](j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjPh]hstruct clk *clk}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjJubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjGubj")}(h+``struct clk *parent`` parent clock source h](j()}(h``struct clk *parent``h]j.)}(hjh]hstruct clk *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(hparent clock sourceh]hparent clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj+ubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_parent (C function)c.clk_get_parenthNtauh1hhjxhhhNhNubh)}(hhh](h)}(h-struct clk * clk_get_parent (struct clk *clk)h]h)}(h+struct clk *clk_get_parent(struct clk *clk)h](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj*modnameN classnameNjwjz)}j}]j)}jsclk_get_parentsbc.clk_get_parentasbuh1hhjhhhjhMubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hclk_get_parenth]j)}(hjFh]hclk_get_parent}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jDc.clk_get_parentasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h*get the parent clock source for this clockh]h*get the parent clock source for this clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h](j)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(hhh]j")}(h!``struct clk *clk`` clock source h](j()}(h``struct clk *clk``h]j.)}(hjEh]hstruct clk *clk}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj?ubjD)}(hhh]j)}(h clock sourceh]h clock source}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubj)}(hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h]hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_sys (C function) c.clk_get_syshNtauh1hhjxhhhNhNubh)}(hhh](h)}(hAstruct clk * clk_get_sys (const char *dev_id, const char *con_id)h]h)}(h?struct clk *clk_get_sys(const char *dev_id, const char *con_id)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}js clk_get_syssb c.clk_get_sysasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h clk_get_sysh]j)}(hjh]h clk_get_sys}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h((const char *dev_id, const char *con_id)h](j5)}(hconst char *dev_idh](j;)}(hjh]hconst}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj;ubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubh)}(hcharh]hchar}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hdev_idh]hdev_id}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7ubj5)}(hconst char *con_idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj7ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h&get a clock based upon the device nameh]h&get a clock based upon the device name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj"jj"jjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj&ubj)}(hhh](j")}(h#``const char *dev_id`` device name h](j()}(h``const char *dev_id``h]j.)}(hjKh]hconst char *dev_id}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjIubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjEubjD)}(hhh]j)}(h device nameh]h device name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hj`hMhjBubj")}(h%``const char *con_id`` connection ID h](j()}(h``const char *con_id``h]j.)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj~ubjD)}(hhh]j)}(h connection IDh]h connection ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj~ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj&ubj)}(hXIReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhNhNubj)}(h **dev_id**h]hdev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj&ubj)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj&ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_save_context (C function)c.clk_save_contexthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hint clk_save_context (void)h]h)}(hint clk_save_context(void)h](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhhjThMubj)}(hclk_save_contexth]j)}(hclk_save_contexth]hclk_save_context}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjBhhhjThMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjBhhhjThMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThMhj;hhubj)}(hhh]j)}(hsave clock context for poweroffh]hsave clock context for poweroff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ clk_restore_context (C function)c.clk_restore_contexthNtauh1hhjxhhhNhNubh)}(hhh](h)}(hvoid clk_restore_context (void)h]h)}(hvoid clk_restore_context(void)h](h)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhj|hMubj)}(hclk_restore_contexth]j)}(hclk_restore_contexth]hclk_restore_context}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjjhhhj|hMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjjhhhj|hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhjchhubj)}(hhh]j)}(h$restore clock context after poweroffh]h$restore clock context after poweroff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjxhNhNubj)}(h**Parameters** ``void`` no arguments **Description** This occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hKhj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhKhjubj)}(hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h]hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_drop_range (C function)c.clk_drop_rangehNtauh1hhjxhhhNhNubh)}(hhh](h)}(h$int clk_drop_range (struct clk *clk)h]h)}(h#int clk_drop_range(struct clk *clk)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclk_drop_rangeh]j)}(hclk_drop_rangeh]hclk_drop_range}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct clk *clk)h]j5)}(hstruct clk *clkh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.clk_drop_rangeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h!Reset any range set on that clockh]h!Reset any range set on that clock}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjnjjnjjjuh1hhhhjxhNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.h](j)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjrubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjubjD)}(hhh]j)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjrubj)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclk_get_optional (C function)c.clk_get_optionalhNtauh1hhjxhhhNhNubh)}(hhh](h)}(hBstruct clk * clk_get_optional (struct device *dev, const char *id)h]h)}(h@struct clk *clk_get_optional(struct device *dev, const char *id)h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:393: ./include/linux/clk.hhMubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hMubh)}(hhh]j)}(hclkh]hclk}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j)}jsclk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhj$hMubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hMubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMubj)}(hclk_get_optionalh]j)}(hjTh]hclk_get_optional}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj$hMubj/)}(h$(struct device *dev, const char *id)h](j5)}(hstruct device *devh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jRc.clk_get_optionalasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hconst char *idh](j;)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj$hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj hhubj)}(hhh]j)}(hubah}(h]h ]h"]h$]h&]uh1jhj"ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj"ubj)}(hAs an accident of implementation, an RCU Tasks Trace grace period also acts as an RCU grace period. However, this could change at any time. Code relying on this accident must call this function to verify that this accident is still happening.h]hAs an accident of implementation, an RCU Tasks Trace grace period also acts as an RCU grace period. However, this could change at any time. Code relying on this accident must call this function to verify that this accident is still happening.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj"ubj)}(hYou have been warned!h]hYou have been warned!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#cond_resched_tasks_rcu_qs (C macro)c.cond_resched_tasks_rcu_qshNtauh1hhjihhhNhNubh)}(hhh](h)}(hcond_resched_tasks_rcu_qsh]h)}(hcond_resched_tasks_rcu_qsh]j)}(hcond_resched_tasks_rcu_qsh]j)}(hjh]hcond_resched_tasks_rcu_qs}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h ``cond_resched_tasks_rcu_qs ()``h]j.)}(hj h]hcond_resched_tasks_rcu_qs ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjihhubj<8)}(hX Report potential quiescent states to RCU **Description** This macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels. h](j<8)}(h)Report potential quiescent states to RCU h]j)}(h(Report potential quiescent states to RCUh]h(Report potential quiescent states to RCU}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj&ubah}(h]h ]h"]h$]h&]uh1j;8hj8hKhj"ubj)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj"ubj)}(hThis macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.h]hThis macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj"ubeh}(h]h ]h"]h$]h&]uh1j;8hj8hKhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!rcu_softirq_qs_periodic (C macro)c.rcu_softirq_qs_periodichNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_softirq_qs_periodich]h)}(hrcu_softirq_qs_periodich]j)}(hrcu_softirq_qs_periodich]j)}(hjh]hrcu_softirq_qs_periodic}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj}hhhjhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h$``rcu_softirq_qs_periodic (old_ts)``h]j.)}(hjh]h rcu_softirq_qs_periodic (old_ts)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjihhubj<8)}(h*Report RCU and RCU-Tasks quiescent states h]j)}(h)Report RCU and RCU-Tasks quiescent statesh]h)Report RCU and RCU-Tasks quiescent states}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjihhubj)}(hX**Parameters** ``old_ts`` jiffies at start of processing. **Description** This helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument. Because regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled. The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hhh]j")}(h+``old_ts`` jiffies at start of processing. h](j()}(h ``old_ts``h]j.)}(hjh]hold_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj ubjD)}(hhh]j)}(hjiffies at start of processing.h]hjiffies at start of processing.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj$hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hXThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.h](hThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as }(hj`hhhNhNubj)}(h **old_ts**h]hold_ts}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.h]hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hX,The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h]hX.The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won’t achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhjihhhNhNubh)}(hhh](h)}(hRCU_LOCKDEP_WARNh]h)}(hRCU_LOCKDEP_WARNh]j)}(hRCU_LOCKDEP_WARNh]j)}(hjh]hRCU_LOCKDEP_WARN}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``RCU_LOCKDEP_WARN (c, s)``h]j.)}(hjh]hRCU_LOCKDEP_WARN (c, s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h1emit lockdep splat if specified condition is met h]j)}(h0emit lockdep splat if specified condition is meth]h0emit lockdep splat if specified condition is met}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj$ubj)}(hhh](j")}(h``c`` condition to check h](j()}(h``c``h]j.)}(hjIh]hc}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjCubjD)}(hhh]j)}(hcondition to checkh]hcondition to check}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hMhj@ubj")}(h``s`` informative message h](j()}(h``s``h]j.)}(hjh]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj|ubjD)}(hhh]j)}(hinformative messageh]hinformative message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlockdep_assert_in_rcu_read_lockh]h)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hjh]hlockdep_assert_in_rcu_read_lock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj2jj2jjjuh1hhhhjihNhNubj)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j.)}(hj8h]h"lockdep_assert_in_rcu_read_lock ()}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(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<8)}(h)WARN if not protected by rcu_read_lock() h]j)}(h(WARN if not protected by rcu_read_lock()h]h(WARN if not protected by rcu_read_lock()}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjRubah}(h]h ]h"]h$]h&]uh1j;8hjdhMhjNubj)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjNubj)}(hGSplats if lockdep is enabled and there is no rcu_read_lock() in effect.h]hGSplats if lockdep is enabled and there is no rcu_read_lock() in effect.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjNubeh}(h]h ]h"]h$]h&]uh1j;8hjdhMhjihhubh)}(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_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(h"lockdep_assert_in_rcu_read_lock_bhh]h)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(hjh]h"lockdep_assert_in_rcu_read_lock_bh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(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<8)}(h,WARN if not protected by rcu_read_lock_bh() h]j)}(h+WARN if not protected by rcu_read_lock_bh()h]h+WARN if not protected by rcu_read_lock_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubh)}(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_schedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h%lockdep_assert_in_rcu_read_lock_schedh]h)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(hjZh]h%lockdep_assert_in_rcu_read_lock_sched}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjwhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhjUhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjUhhhjwhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j.)}(hjh]h(lockdep_assert_in_rcu_read_lock_sched ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(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<8)}(h/WARN if not protected by rcu_read_lock_sched() h]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlockdep_assert_in_rcu_readerh]h)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]j)}(hj h]hlockdep_assert_in_rcu_reader}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj&hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj&hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj?jj?jjjuh1hhhhjihNhNubj)}(h#``lockdep_assert_in_rcu_reader ()``h]j.)}(hjEh]hlockdep_assert_in_rcu_reader ()}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(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<8)}(h+WARN if not within some type of RCU reader h]j)}(h*WARN if not within some type of RCU readerh]h*WARN if not within some type of RCU reader}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj_ubah}(h]h ]h"]h$]h&]uh1j;8hjqhMhj[ubj)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj[ubj)}(hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.h]hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj[ubj)}(hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.h]hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj[ubeh}(h]h ]h"]h$]h&]uh1j;8hjqhMhjihhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌunrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhjihhhNhNubh)}(hhh](h)}(h unrcu_pointerh]h)}(h unrcu_pointerh]j)}(h unrcu_pointerh]j)}(hjh]h unrcu_pointer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``unrcu_pointer (p)``h]j.)}(hjh]hunrcu_pointer (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h*mark a pointer as not being RCU protected h]j)}(h)mark a pointer as not being RCU protectedh]h)mark a pointer as not being RCU protected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hj+hMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj2ubj)}(hhh]j")}(h1``p`` pointer needing to lose its __rcu property h](j()}(h``p``h]j.)}(hjWh]hp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjQubjD)}(hhh]j)}(h*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj2ubj)}(h|Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h Converts }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhjihhhNhNubh)}(hhh](h)}(hRCU_INITIALIZERh]h)}(hRCU_INITIALIZERh]j)}(hRCU_INITIALIZERh]j)}(hjh]hRCU_INITIALIZER}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM(ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM(hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM(ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``RCU_INITIALIZER (v)``h]j.)}(hjh]hRCU_INITIALIZER (v)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM*hjihhubj<8)}(h7statically initialize an RCU-protected global variable h]j)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM(hj5ubah}(h]h ]h"]h$]h&]uh1j;8hjGhM(hjihhubj)}(h@**Parameters** ``v`` The value to statically initialize with.h](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM,hjNubj)}(hhh]j")}(h.``v`` The value to statically initialize with.h](j()}(h``v``h]j.)}(hjsh]hv}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM.hjmubjD)}(hhh]j)}(h(The value to statically initialize with.h]h(The value to statically initialize with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM)hjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhM.hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_assign_pointerh]h)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]j)}(hjh]hrcu_assign_pointer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM.ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM.hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM.ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``rcu_assign_pointer (p, v)``h]j.)}(hjh]hrcu_assign_pointer (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM0hjihhubj<8)}(h assign to RCU-protected pointer h]j)}(hassign to RCU-protected pointerh]hassign to RCU-protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM.hjubah}(h]h ]h"]h$]h&]uh1j;8hj+hM.hjihhubj)}(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](j)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM2hj2ubj)}(hhh](j")}(h``p`` pointer to assign to h](j()}(h``p``h]j.)}(hjWh]hp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM/hjQubjD)}(hhh]j)}(hpointer to assign toh]hpointer to assign to}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhM/hjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhM/hjNubj")}(h ``v`` value to assign (publish) h](j()}(h``v``h]j.)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM0hjubjD)}(hhh]j)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM0hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM0hjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM2hj2ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM2hj2ubj)}(hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.h]hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM6hj2ubj)}(hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.h]hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM<hj2ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMDhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_replace_pointerh]h)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]j)}(hj7h]hrcu_replace_pointer}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMXubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj5hhhjThMXubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjThMXhj2hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj2hhhjThMXubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjmjjmjjjuh1hhhhjihNhNubj)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j.)}(hjsh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMZhjihhubj<8)}(h0replace an RCU pointer, returning its old value h]j)}(h/replace an RCU pointer, returning its old valueh]h/replace an RCU pointer, returning its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMXhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMXhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM\hjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYhjubjD)}(hhh]j)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMYhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMYhjubj")}(h``ptr`` regular pointer h](j()}(h``ptr``h]j.)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMZhjubjD)}(hhh]j)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMZhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMZhjubj")}(hI``c`` the lockdep conditions under which the dereference will take place h](j()}(h``c``h]j.)}(hj9h]hc}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM[hj3ubjD)}(hhh]j)}(hBthe lockdep conditions under which the dereference will take placeh]hBthe lockdep conditions under which the dereference will take place}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhM[hjOubah}(h]h ]h"]h$]h&]uh1jChj3ubeh}(h]h ]h"]h$]h&]uh1j!hjNhM[hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM]hjubj)}(hXPerform a replacement, where **rcu_ptr** is an RCU-annotated pointer and **c** is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of **rcu_ptr** is returned, and **rcu_ptr** is set to **ptr**.h](hPerform a replacement, where }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! is an RCU-annotated pointer and }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh} is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is returned, and }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM]hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_access_pointerh]h)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]j)}(hj h]hrcu_access_pointer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMjubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj*hMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMjhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj*hMjubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjCjjCjjjuh1hhhhjihNhNubj)}(h``rcu_access_pointer (p)``h]j.)}(hjIh]hrcu_access_pointer (p)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMlhjihhubj<8)}(h(fetch RCU pointer with no dereferencing h]j)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMjhj_ubah}(h]h ]h"]h$]h&]uh1j;8hjqhMjhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMnhjxubj)}(hhh]j")}(h``p`` The pointer to read h](j()}(h``p``h]j.)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMkhjubjD)}(hhh]j)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMkhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMmhjxubj)}(hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().h]hXKReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMmhjxubj)}(hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.h]hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMwhjxubj)}(hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h]hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM}hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_checkh]h)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]j)}(hj5h]hrcu_dereference_check}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj3hhhjRhMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj0hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0hhhjRhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjkjjkjjjuh1hhhhjihNhNubj)}(h ``rcu_dereference_check (p, c)``h]j.)}(hjqh]hrcu_dereference_check (p, c)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjoubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h$rcu_dereference with debug checking h]j)}(h#rcu_dereference with debug checkingh]h#rcu_dereference with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(h For example:h]h For example:}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj<8)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `)); h]j)}(hRbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `));h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hjqhhhNhNubh)}(h:c:type:`foo->lock `h]j.)}(hj{h]h foo->lock}(hj}hhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8foouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjqubh));}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj<8)}(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 ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8foouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubh) ||}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j'hjhMhjubjD)}(hhh]j)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjhhhNhNubh)}(h:c:type:`foo->usage `h]j.)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8foouh1hhjhMhjubh) == 0);}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j;8h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_bh_checkh]h)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]j)}(hjzh]hrcu_dereference_bh_check}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h#``rcu_dereference_bh_check (p, c)``h]j.)}(hjh]hrcu_dereference_bh_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h'rcu_dereference_bh with debug checking h]j)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(hA``c`` The conditions under which the dereference will take place h](j()}(h``c``h]j.)}(hjC h]hc}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjA ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj= ubjD)}(hhh]j)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX hMhjY ubah}(h]h ]h"]h$]h&]uh1jChj= ubeh}(h]h ]h"]h$]h&]uh1j!hjX hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj~ h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_sched_checkh]h)}(hrcu_dereference_sched_checkh]j)}(hrcu_dereference_sched_checkh]j)}(hj h]hrcu_dereference_sched_check}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h*rcu_dereference_sched with debug checking h]j)}(h)rcu_dereference_sched with debug checkingh]h)rcu_dereference_sched with debug checking}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hj! hMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj. h]h Parameters}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj, ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj( ubj)}(hhh](j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hjM h]hp}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjK ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjG ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb hMhjc ubah}(h]h ]h"]h$]h&]uh1jChjG ubeh}(h]h ]h"]h$]h&]uh1j!hjb hMhjD ubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjD ubeh}(h]h ]h"]h$]h&]uh1jhj( ubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj( ubj)}(hXThis is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.h]hXThis is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj( ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_protectedh]h)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]j)}(hj h]hrcu_dereference_protected}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj6 jj6 jjjuh1hhhhjihNhNubj)}(h$``rcu_dereference_protected (p, c)``h]j.)}(hj< h]h rcu_dereference_protected (p, c)}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj: ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h)fetch RCU pointer when updates prevented h]j)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjR ubah}(h]h ]h"]h$]h&]uh1j;8hjd hMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjq h]h Parameters}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjk ubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjk ubj)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjk ubj)}(hX{Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.h](hReturn the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does }(hj hhhNhNubj)}(h*not*h]hnot}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjk ubj)}(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.}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjk ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference (C macro)c.rcu_dereferencehNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereferenceh]h)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]j)}(hjd h]hrcu_dereference}(hjn hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjf hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjb hhhj hMubah}(h]j] ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj_ hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_ hhhj hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(h``rcu_dereference (p)``h]j.)}(hj h]hrcu_dereference (p)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h.fetch RCU-protected pointer for dereferencing h]j)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hj hMhjihhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** This is a simple wrapper around rcu_dereference_check().h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(hhh]j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hj h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj/ h]h Description}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj- ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(h8This is a simple wrapper around rcu_dereference_check().h]h8This is a simple wrapper around rcu_dereference_check().}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_bhh]h)}(hrcu_dereference_bhh]j)}(hrcu_dereference_bhh]j)}(hjn h]hrcu_dereference_bh}(hjx hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjt ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjp hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjl hhhj hMubah}(h]jg ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhji hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhji hhhj hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(h``rcu_dereference_bh (p)``h]j.)}(hj h]hrcu_dereference_bh (p)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h4fetch an RCU-bh-protected pointer for dereferencing h]j)}(h3fetch an RCU-bh-protected pointer for dereferencingh]h3fetch an RCU-bh-protected pointer for dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hj hMhjihhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(hhh]j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hj h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_dereference_schedh]h)}(hrcu_dereference_schedh]j)}(hrcu_dereference_schedh]j)}(hjxh]hrcu_dereference_sched}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``rcu_dereference_sched (p)``h]j.)}(hjh]hrcu_dereference_sched (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h4fetch RCU-sched-protected pointer for dereferencing h]j)}(h3fetch RCU-sched-protected pointer for dereferencingh]h3fetch RCU-sched-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hhh]j")}(h2``p`` The pointer to read, prior to dereferencing h](j()}(h``p``h]j.)}(hjh]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_pointer_handoffh]h)}(hrcu_pointer_handoffh]j)}(hrcu_pointer_handoffh]j)}(hjh]hrcu_pointer_handoff}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``rcu_pointer_handoff (p)``h]j.)}(hjh]hrcu_pointer_handoff (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h/Hand off a pointer from RCU to other mechanism h]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hhh]j")}(h``p`` The pointer to hand off h](j()}(h``p``h]j.)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(hThe pointer to hand offh]hThe pointer to hand off}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj'hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjo)}(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();}hjrsbah}(h]h ]h"]h$]h&]j,j-uh1jnh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_lock (C function)c.rcu_read_lockhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock (void)h]h)}(hvoid rcu_read_lock(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h rcu_read_lockh]j)}(h rcu_read_lockh]h rcu_read_lock}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj$ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjIh]hvoid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjGubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjCubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hKhj_ubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj^hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj$ubj)}(hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.h]hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM"hj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM&hj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM2hj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM6hj$ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM;hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_unlock (void)h]h)}(hvoid rcu_read_unlock(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hMYubj)}(hrcu_read_unlockh]j)}(hrcu_read_unlockh]hrcu_read_unlock}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj"hMYubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj"hMYubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj"hMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMYhj hhubj)}(hhh]j)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYhjxhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMYubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM]hjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubj)}(hX!In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.h]hX#In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler’s runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMZhjubj)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock_bh (void)h]h)}(hvoid rcu_read_lock_bh(void)h](h)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMmubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhMmubj)}(hrcu_read_lock_bhh]j)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjGhhhjYhMmubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjGhhhjYhMmubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhjYhMmubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhMmhj@hhubj)}(hhh]j)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMmubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMqhjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubj)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMnhjubj)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_unlock_bh (void)h]h)}(hvoid rcu_read_unlock_bh(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhjhMubj)}(hrcu_read_unlock_bhh]j)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj~hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(hhh]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hf**Parameters** ``void`` no arguments **Description** See rcu_read_lock_bh() for more information.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj$ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jChj$ubeh}(h]h ]h"]h$]h&]uh1j!hj?hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubj)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock_sched (void)h]h)}(hvoid rcu_read_lock_sched(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrcu_read_lock_schedh]j)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj)jj)jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj-ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjRh]hvoid}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjPubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjLubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghKhjhubah}(h]h ]h"]h$]h&]uh1jChjLubeh}(h]h ]h"]h$]h&]uh1j!hjghKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhj-ubj)}(hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.h]hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj-ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h!void rcu_read_unlock_sched (void)h]h)}(h void rcu_read_unlock_sched(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrcu_read_unlock_schedh]j)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj`jj`jjjuh1hhhhjihNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() for more information.h](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjdubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhKhjdubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌRCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhjihhhNhNubh)}(hhh](h)}(hRCU_INIT_POINTERh]h)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]j)}(hjh]hRCU_INIT_POINTER}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj9jj9jjjuh1hhhhjihNhNubj)}(h``RCU_INIT_POINTER (p, v)``h]j.)}(hj?h]hRCU_INIT_POINTER (p, v)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h$initialize an RCU protected pointer h]j)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjUubah}(h]h ]h"]h$]h&]uh1j;8hjghMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubj)}(hhh](j")}(h%``p`` The pointer to be initialized. h](j()}(h``p``h]j.)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h/``v`` The value to initialized the pointer to. h](j()}(h``v``h]j.)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnubj)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubj)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]j)}(hj1h](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hj3hhhNhNubj)}(h*or*h]hor}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(huThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or*h]j)}(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 }(hjYhhhNhNubj)}(h*or*h]hor}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjUubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(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](j)}(hzThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and*h](huThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() }(hjhhhNhNubj)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj|ubj)}(hhh](j)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h]j)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h](hYou have not made }(hjhhhNhNubj)}(h*any*h]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 reader-visible changes to this structure since then }(hjhhhNhNubj)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h]j)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jj*jhjjuh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjnubj)}(hXLFailure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!!h]hXLFailure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhjihhhNhNubh)}(hhh](h)}(hRCU_POINTER_INITIALIZERh]h)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]j)}(hj]h]hRCU_POINTER_INITIALIZER}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj[hhhjzhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhjzhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j.)}(hjh]hRCU_POINTER_INITIALIZER (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h/statically initialize an RCU protected pointer h]j)}(h.statically initialize an RCU protected pointerh]h.statically initialize an RCU protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(hhh](j")}(h%``p`` The pointer to be initialized. h](j()}(h``p``h]j.)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubjD)}(hhh]j)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h/``v`` The value to initialized the pointer to. h](j()}(h``v``h]j.)}(hj&h]hv}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj$ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubjD)}(hhh]j)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree_rcu (C macro) c.kfree_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h kfree_rcuh]h)}(h kfree_rcuh]j)}(h kfree_rcuh]j)}(hjh]h kfree_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``kfree_rcu (ptr, rhf)``h]j.)}(hjh]hkfree_rcu (ptr, rhf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjihhubj<8)}(h&kfree an object after a grace period. h]j)}(h%kfree an object after a grace period.h]h%kfree an object after a grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(hhh](j")}(h:``ptr`` pointer to kfree for double-argument invocations. h](j()}(h``ptr``h]j.)}(hj0h]hptr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj*ubjD)}(hhh]j)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhMhj'ubj")}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j()}(h``rhf``h]j.)}(hjih]hrhf}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhjcubjD)}(hhh]j)}(h;the name of the struct rcu_head within the type of **ptr**.h](h3the name of the struct rcu_head within the type of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hMhj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhj ubj)}(hh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_head_initasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMYubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMYhjhhubj)}(hhh]j)}(h1Initialize rcu_head for rcu_head_after_call_rcu()h]h1Initialize rcu_head for rcu_head_after_call_rcu()}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMYhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMYubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` The rcu_head structure to initialize. **Description** If you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.h](j)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM]hjxubj)}(hhh]j")}(h?``struct rcu_head *rhp`` The rcu_head structure to initialize. h](j()}(h``struct rcu_head *rhp``h]j.)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMZhjubjD)}(hhh]j)}(h%The rcu_head structure to initialize.h]h%The rcu_head structure to initialize.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMZhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM\hjxubj)}(hXZIf you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.h]hXZIf you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhM\hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$rcu_head_after_call_rcu (C function)c.rcu_head_after_call_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hEbool rcu_head_after_call_rcu (struct rcu_head *rhp, rcu_callback_t f)h]h)}(hDbool rcu_head_after_call_rcu(struct rcu_head *rhp, rcu_callback_t f)h](h)}(hjoh]hbool}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhubh)}(h h]h }(hj+ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj* hMhubj)}(hrcu_head_after_call_rcuh]j)}(hrcu_head_after_call_rcuh]hrcu_head_after_call_rcu}(hj= hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9 ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj* hMhubj/)}(h((struct rcu_head *rhp, rcu_callback_t f)h](j5)}(hstruct rcu_head *rhph](j;)}(hj>h]hstruct}(hjY hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjU ubh)}(h h]h }(hjf hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjw hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjy modnameN classnameNjwjz)}j}]j)}jsj? sbc.rcu_head_after_call_rcuasbuh1hhjU ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU ubj)}(hrhph]hrhp}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQ ubj5)}(hrcu_callback_t fh](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j c.rcu_head_after_call_rcuasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hfh]hf}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQ ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj* hMhubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj* hMhubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj* hMhhj hhubj)}(hhh]j)}(h,Has this rcu_head been passed to call_rcu()?h]h,Has this rcu_head been passed to call_rcu()?}(hj$!hhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./include/linux/rcupdate.hhMhhj!!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj* hMhubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj#ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj]#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY#hKhjZ#ubah}(h]h ]h"]h$]h&]uh1jChj>#ubeh}(h]h ]h"]h$]h&]uh1j!hjY#hKhj;#ubah}(h]h ]h"]h$]h&]uh1jhj#ubj)}(h**Description**h]j)}(hj#h]h Description}(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:404: ./kernel/rcu/tree.chKhj#ubj)}(hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.h]hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj#ubj)}(hNote that from RCU's viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code::h]hNote that from RCU’s viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj#ubjo)}(hilocal_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // Bh]hilocal_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // B}hj#sbah}(h]h ]h"]h$]h&]j,j-uh1jnhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj#ubj)}(hXA call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.h]hXA call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,rcu_watching_snap_stopped_since (C function)!c.rcu_watching_snap_stopped_sincehNtauh1hhjihhhNhNubh)}(hhh](h)}(hEbool rcu_watching_snap_stopped_since (struct rcu_data *rdp, int snap)h]h)}(hDbool rcu_watching_snap_stopped_since(struct rcu_data *rdp, int snap)h](h)}(hjoh]hbool}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM,ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj#hM,ubj)}(hrcu_watching_snap_stopped_sinceh]j)}(hrcu_watching_snap_stopped_sinceh]hrcu_watching_snap_stopped_since}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj $ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj#hhhj#hM,ubj/)}(h (struct rcu_data *rdp, int snap)h](j5)}(hstruct rcu_data *rdph](j;)}(hj>h]hstruct}(hj-$hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj)$ubh)}(h h]h }(hj:$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)$ubh)}(hhh]j)}(hrcu_datah]hrcu_data}(hjK$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjH$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjM$modnameN classnameNjwjz)}j}]j)}jsj$sb!c.rcu_watching_snap_stopped_sinceasbuh1hhj)$ubh)}(h h]h }(hjk$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)$ubj)}(hjh]h*}(hjy$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)$ubj)}(hrdph]hrdp}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%$ubj5)}(hint snaph](h)}(hinth]hint}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hsnaph]hsnap}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj%$ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj#hhhj#hM,ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj#hhhj#hM,ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hM,hj#hhubj)}(hhh]j)}(hBHas RCU stopped watching a given CPU since the specified **snap**?h](h9Has RCU stopped watching a given CPU since the specified }(hj$hhhNhNubj)}(h**snap**h]hsnap}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh?}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM,hj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hM,ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj%jj%jjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct rcu_data *rdp`` The rcu_data corresponding to the CPU for which to check EQS. ``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. **Description** Returns true if the CPU corresponding to **rdp** has spent some time in an extended quiescent state since **snap**. Note that this doesn't check if it /still/ is in an EQS, just that it went through one since **snap**. This is meant to be used in a loop waiting for a CPU to go through an EQS.h](j)}(h**Parameters**h]j)}(hj%h]h Parameters}(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:404: ./kernel/rcu/tree.chM0hj%ubj)}(hhh](j")}(hW``struct rcu_data *rdp`` The rcu_data corresponding to the CPU for which to check EQS. h](j()}(h``struct rcu_data *rdp``h]j.)}(hj8%h]hstruct rcu_data *rdp}(hj:%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj6%ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM/hj2%ubjD)}(hhh]j)}(h=The rcu_data corresponding to the CPU for which to check EQS.h]h=The rcu_data corresponding to the CPU for which to check EQS.}(hjQ%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM%hM/hjN%ubah}(h]h ]h"]h$]h&]uh1jChj2%ubeh}(h]h ]h"]h$]h&]uh1j!hjM%hM/hj/%ubj")}(hH``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. h](j()}(h ``int snap``h]j.)}(hjq%h]hint snap}(hjs%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjo%ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM0hjk%ubjD)}(hhh]j)}(h:rcu_watching snapshot taken when the CPU wasn't in an EQS.h]h'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMwhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'rcu_irq_exit_check_preempt (C function)c.rcu_irq_exit_check_preempthNtauh1hhjihhhNhNubh)}(hhh](h)}(h&void rcu_irq_exit_check_preempt (void)h]h)}(h%void rcu_irq_exit_check_preempt(void)h](h)}(hvoidh]hvoid}(hjm'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji'hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMdubh)}(h h]h }(hj|'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji'hhhj{'hMdubj)}(hrcu_irq_exit_check_preempth]j)}(hrcu_irq_exit_check_preempth]hrcu_irq_exit_check_preempt}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hji'hhhj{'hMdubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj'ubah}(h]h ]h"]h$]h&]j,j-uh1j.hji'hhhj{'hMdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhje'hhhj{'hMdubah}(h]j`'ah ](jjeh"]h$]h&]jj)jhuh1hhj{'hMdhjb'hhubj)}(hhh]j)}(h$Validate that scheduling is possibleh]h$Validate that scheduling is possible}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMdhj'hhubah}(h]h ]h"]h$]h&]uh1jhjb'hhhj{'hMdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj'jj'jjjuh1hhhhjihNhNubj)}(h'**Parameters** ``void`` no argumentsh](j)}(h**Parameters**h]j)}(hj'h]h Parameters}(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:404: ./kernel/rcu/tree.chMhhj'ubj)}(hhh]j")}(h``void`` no argumentsh](j()}(h``void``h]j.)}(hj(h]hvoid}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj(ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMjhj(ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj.(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj+(ubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hj*(hMjhj (ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__rcu_irq_enter_check_tick (C function)c.__rcu_irq_enter_check_tickhNtauh1hhjihhhNhNubh)}(hhh](h)}(h&void __rcu_irq_enter_check_tick (void)h]h)}(h%void __rcu_irq_enter_check_tick(void)h](h)}(hvoidh]hvoid}(hjo(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk(hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMvubh)}(h h]h }(hj~(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk(hhhj}(hMvubj)}(h__rcu_irq_enter_check_tickh]j)}(h__rcu_irq_enter_check_tickh]h__rcu_irq_enter_check_tick}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjk(hhhj}(hMvubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj(ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjk(hhhj}(hMvubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjg(hhhj}(hMvubah}(h]jb(ah ](jjeh"]h$]h&]jj)jhuh1hhj}(hMvhjd(hhubj)}(hhh]j)}(h-Enable scheduler tick on CPU if RCU needs it.h]h-Enable scheduler tick on CPU if RCU needs it.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMvhj(hhubah}(h]h ]h"]h$]h&]uh1jhjd(hhhj}(hMvubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjihNhNubj)}(hX**Parameters** ``void`` no arguments **Description** The scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn't. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings. Therefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU's ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU. Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h](j)}(h**Parameters**h]j)}(hj(h]h Parameters}(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:404: ./kernel/rcu/tree.chMzhj(ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj)h]hvoid}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj)ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj0)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,)hKhj-)ubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hj,)hKhj)ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h**Description**h]j)}(hjR)h]h Description}(hjT)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj(ubj)}(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.}(hjh)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMwhj(ubj)}(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.}(hjw)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj(ubj)}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhjihhhNhNubh)}(hhh](h)}(h#notrace bool rcu_is_watching (void)h]h)}(h"notrace bool rcu_is_watching(void)h](hnotrace}(hj)hhhNhNubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMubh)}(hjoh]hbool}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhj)hMubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj)hMubj)}(hrcu_is_watchingh]j)}(hrcu_is_watchingh]hrcu_is_watching}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj)hhhj)hMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj)ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj)hhhj)hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhj)hhubj)}(hhh]j)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hj-*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj**hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjE*jjE*jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjO*h]h Parameters}(hjQ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjI*ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjn*h]hvoid}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjl*ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjh*ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1jChjh*ubeh}(h]h ]h"]h$]h&]uh1j!hj*hKhje*ubah}(h]h ]h"]h$]h&]uh1jhjI*ubj)}(h**Description**h]j)}(hj*h]h Description}(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:404: ./kernel/rcu/tree.chKhjI*ubj)}(hReturn **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections.h](hReturn }(hj*hhhNhNubj)}(h**true**h]htrue}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh( if RCU is watching the running CPU and }(hj*hhhNhNubj)}(h **false**h]hfalse}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh otherwise. An }(hj*hhhNhNubj)}(h**true**h]htrue}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubhM return means that this CPU can safely enter RCU read-side critical sections.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjI*ubj)}(hXAlthough calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**.h](hNAlthough calls to rcu_is_watching() from most parts of the kernel will return }(hj+hhhNhNubj)}(h**true**h]htrue}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return }(hj+hhhNhNubj)}(h **false**h]hfalse}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjI*ubj)}(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.}(hj7+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjI*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhjihhhNhNubh)}(hhh](h)}(h/void rcu_set_gpwrap_lag (unsigned long lag_gps)h]h)}(h.void rcu_set_gpwrap_lag(unsigned long lag_gps)h](h)}(hvoidh]hvoid}(hjf+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjb+hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMubh)}(h h]h }(hju+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjb+hhhjt+hMubj)}(hrcu_set_gpwrap_lagh]j)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjb+hhhjt+hMubj/)}(h(unsigned long lag_gps)h]j5)}(hunsigned long lag_gpsh](h)}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj)}(hlag_gpsh]hlag_gps}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjb+hhhjt+hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj^+hhhjt+hMubah}(h]jY+ah ](jjeh"]h$]h&]jj)jhuh1hhjt+hMhj[+hhubj)}(hhh]j)}(h'Set RCU GP sequence overflow lag value.h]h'Set RCU GP sequence overflow lag value.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhj[+hhhjt+hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj',h]h Parameters}(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:404: ./kernel/rcu/tree.chMhj!,ubj)}(hhh]j")}(h``unsigned long lag_gps`` Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](j()}(h``unsigned long lag_gps``h]j.)}(hjF,h]hunsigned long lag_gps}(hjH,hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjD,ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj@,ubjD)}(hhh]j)}(hSet overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h~Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. }(hj_,hhhNhNubj)}(h **lag_gps**h]hlag_gps}(hjg,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_,ubh3 = 0 means we reset it back to the boot-time value.}(hj_,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj\,ubah}(h]h ]h"]h$]h&]uh1jChj@,ubeh}(h]h ]h"]h$]h&]uh1j!hj[,hMhj=,ubah}(h]h ]h"]h$]h&]uh1jhj!,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhjihhhNhNubh)}(hhh](h)}(h@void call_rcu_hurry (struct rcu_head *head, rcu_callback_t func)h]h)}(h?void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func)h](h)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM7 ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,hhhj,hM7 ubj)}(hcall_rcu_hurryh]j)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj,hhhj,hM7 ubj/)}(h,(struct rcu_head *head, rcu_callback_t func)h](j5)}(hstruct rcu_head *headh](j;)}(hj>h]hstruct}(hj,hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj,ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj -hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj -ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj-modnameN classnameNjwjz)}j}]j)}jsj,sbc.call_rcu_hurryasbuh1hhj,ubh)}(h h]h }(hj--hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(hjh]h*}(hj;-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hheadh]hhead}(hjH-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj,ubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjd-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhja-ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjf-modnameN classnameNjwjz)}j}]j)-c.call_rcu_hurryasbuh1hhj]-ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]-ubj)}(hfunch]hfunc}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]-ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj,ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj,hhhj,hM7 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj,hhhj,hM7 ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hM7 hj,hhubj)}(hhh]j)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM7 hj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hM7 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-jj-jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj-h]h Parameters}(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:404: ./kernel/rcu/tree.chM; hj-ubj)}(hhh](j")}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j()}(h``struct rcu_head *head``h]j.)}(hj-h]hstruct rcu_head *head}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM; hj-ubjD)}(hhh]j)}(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&]uh1jhj.hM; hj.ubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hj.hM; hj-ubj")}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j()}(h``rcu_callback_t func``h]j.)}(hj4.h]hrcu_callback_t func}(hj6.hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2.ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM< hj..ubjD)}(hhh]j)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjM.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI.hM< hjJ.ubah}(h]h ]h"]h$]h&]uh1jChj..ubeh}(h]h ]h"]h$]h&]uh1j!hjI.hM< hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj)}(h**Description**h]j)}(hjo.h]h Description}(hjq.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm.ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM> hj-ubj)}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM> hj-ubj)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMB hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu (C function) c.call_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h:void call_rcu (struct rcu_head *head, rcu_callback_t func)h]h)}(h9void call_rcu(struct rcu_head *head, rcu_callback_t func)h](h)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMT ubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj.hMT ubj)}(hcall_rcuh]j)}(hcall_rcuh]hcall_rcu}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj.hhhj.hMT ubj/)}(h,(struct rcu_head *head, rcu_callback_t func)h](j5)}(hstruct rcu_head *headh](j;)}(hj>h]hstruct}(hj/hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj.ubh)}(h h]h }(hj /hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj /modnameN classnameNjwjz)}j}]j)}jsj.sb c.call_rcuasbuh1hhj.ubh)}(h h]h }(hj>/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hjL/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hheadh]hhead}(hjY/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hju/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjr/ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjw/modnameN classnameNjwjz)}j}]j:/ c.call_rcuasbuh1hhjn/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn/ubj)}(hfunch]hfunc}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjn/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj.hhhj.hMT ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhj.hMT ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hMT hj.hhubj)}(hhh]j)}(hQueue an RCU callback for invocation after a grace period. By default the callbacks are 'lazy' and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().h]hXQueue an RCU callback for invocation after a grace period. By default the callbacks are ‘lazy’ and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMT hj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMT ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj/jj/jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj/h]h Parameters}(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:404: ./kernel/rcu/tree.chMX hj/ubj)}(hhh](j")}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j()}(h``struct rcu_head *head``h]j.)}(hj 0h]hstruct rcu_head *head}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj 0ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMY hj0ubjD)}(hhh]j)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!0hMY hj"0ubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hj!0hMY hj0ubj")}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j()}(h``rcu_callback_t func``h]j.)}(hjE0h]hrcu_callback_t func}(hjG0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjC0ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMZ hj?0ubjD)}(hhh]j)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hj^0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ0hMZ hj[0ubah}(h]h ]h"]h$]h&]uh1jChj?0ubeh}(h]h ]h"]h$]h&]uh1j!hjZ0hMZ hj0ubeh}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~0ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM\ hj/ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM\ hj/ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMb hj/ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMh hj/ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMo hj/ubj)}(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).}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM{ hj/ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj/ubj)}(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().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_rcu (C function)c.synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid synchronize_rcu (void)h]h)}(hvoid synchronize_rcu(void)h](h)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj.1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj-1hM ubj)}(hsynchronize_rcuh]j)}(hsynchronize_rcuh]hsynchronize_rcu}(hj@1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<1ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj1hhhj-1hM ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj\1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX1ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjT1ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj1hhhj-1hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj1hhhj-1hM ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj-1hM hj1hhubj)}(hhh]j)}(h&wait until a grace period has elapsed.h]h&wait until a grace period has elapsed.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj-1hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj1h]hvoid}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj1ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hKhj1ubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hj1hKhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj1ubj)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubj)}(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.}(hj'2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubj)}(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.}(hj62hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubj)}(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).}(hjE2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubj)}(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.}(hjT2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hGvoid get_completed_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]h)}(hFvoid get_completed_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhj2hM ubj)}(h"get_completed_synchronize_rcu_fullh]j)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_synchronize_rcu_full}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2hhhj2hM ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj2hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj2modnameN classnameNjwjz)}j}]j)}jsj2sb$c.get_completed_synchronize_rcu_fullasbuh1hhj2ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hrgosph]hrgosp}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj2ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj2hhhj2hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{2hhhj2hM ubah}(h]jv2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hM hjx2hhubj)}(hhh]j)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjC3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj@3hhubah}(h]h ]h"]h$]h&]uh1jhjx2hhhj2hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj[3jj[3jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hje3h]h Parameters}(hjg3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj_3ubj)}(hhh]j")}(h<``struct rcu_gp_oldstate *rgosp`` Place to put state cookie h](j()}(h!``struct rcu_gp_oldstate *rgosp``h]j.)}(hj3h]hstruct rcu_gp_oldstate *rgosp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj~3ubjD)}(hhh]j)}(hPlace to put state cookieh]hPlace to put state cookie}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jChj~3ubeh}(h]h ]h"]h$]h&]uh1j!hj3hM hj{3ubah}(h]h ]h"]h$]h&]uh1jhj_3ubj)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj_3ubj)}(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 }(hj3hhhNhNubj)}(h **rgosp**h]hrgosp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj_3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h.unsigned long get_state_synchronize_rcu (void)h]h)}(h-unsigned long get_state_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM' ubh)}(h h]h }(hj%4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj$4hM' ubh)}(hlongh]hlong}(hj34hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhj$4hM' ubh)}(h h]h }(hjA4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj$4hM' ubj)}(hget_state_synchronize_rcuh]j)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjS4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjO4ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhhj$4hM' ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjo4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk4ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjg4ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj4hhhj$4hM' ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj4hhhj$4hM' ubah}(h]j 4ah ](jjeh"]h$]h&]jj)jhuh1hhj$4hM' hj 4hhubj)}(hhh]j)}(hSnapshot current RCU stateh]hSnapshot current RCU state}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM' hj4hhubah}(h]h ]h"]h$]h&]uh1jhj 4hhhj$4hM' ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj4jj4jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM+ hj4ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj4h]hvoid}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj4ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj4ubj)}(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.}(hj+5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM( hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hCvoid get_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]h)}(hBvoid get_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hjZ5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjV5hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM9 ubh)}(h h]h }(hji5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjV5hhhjh5hM9 ubj)}(hget_state_synchronize_rcu_fullh]j)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hj{5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw5ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjV5hhhjh5hM9 ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj5hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]j)}jsj}5sb c.get_state_synchronize_rcu_fullasbuh1hhj5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hrgosph]hrgosp}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj5ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjV5hhhjh5hM9 ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjR5hhhjh5hM9 ubah}(h]jM5ah ](jjeh"]h$]h&]jj)jhuh1hhjh5hM9 hjO5hhubj)}(hhh]j)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM9 hj6hhubah}(h]h ]h"]h$]h&]uh1jhjO5hhhjh5hM9 ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj26jj26jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj<6h]h Parameters}(hj>6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:6ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM= hj66ubj)}(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.)}(hj[6h]hstruct rcu_gp_oldstate *rgosp}(hj]6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjY6ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM: hjU6ubjD)}(hhh]j)}(h>location to place combined normal/expedited grace-period stateh]h>location to place combined normal/expedited grace-period state}(hjt6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp6hM: hjq6ubah}(h]h ]h"]h$]h&]uh1jChjU6ubeh}(h]h ]h"]h$]h&]uh1j!hjp6hM: hjR6ubah}(h]h ]h"]h$]h&]uh1jhj66ubj)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM< hj66ubj)}(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 }(hj6hhhNhNubj)}(h **rgosp**h]hrgosp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhX. 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM< hj66ubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chME hj66ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h/unsigned long start_poll_synchronize_rcu (void)h]h)}(h.unsigned long start_poll_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMu ubh)}(h h]h }(hj 7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj 7hMu ubh)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhhj 7hMu ubh)}(h h]h }(hj'7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj 7hMu ubj)}(hstart_poll_synchronize_rcuh]j)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hj97hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj57ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj6hhhj 7hMu ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjU7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ7ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjM7ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj6hhhj 7hMu ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6hhhj 7hMu ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj 7hMu hj6hhubj)}(hhh]j)}(h#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMu hj|7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj 7hMu ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj7jj7jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMy hj7ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj7h]hvoid}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj7ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj7ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhj7ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMv hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hDvoid start_poll_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]h)}(hCvoid start_poll_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hj@8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hjO8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<8hhhjN8hM ubj)}(hstart_poll_synchronize_rcu_fullh]j)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hja8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]8ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj<8hhhjN8hM ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj}8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjy8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy8ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj8modnameN classnameNjwjz)}j}]j)}jsjc8sb!c.start_poll_synchronize_rcu_fullasbuh1hhjy8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy8ubj)}(hrgosph]hrgosp}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjy8ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hju8ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj<8hhhjN8hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj88hhhjN8hM ubah}(h]j38ah ](jjeh"]h$]h&]jj)jhuh1hhjN8hM hj58hhubj)}(hhh]j)}(h/Take a full snapshot and start RCU grace periodh]h/Take a full snapshot and start RCU grace period}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj8hhubah}(h]h ]h"]h$]h&]uh1jhj58hhhjN8hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9jj9jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj"9h]h Parameters}(hj$9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubj)}(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.)}(hjA9h]hstruct rcu_gp_oldstate *rgosp}(hjC9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?9ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj;9ubjD)}(hhh]j)}(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()}(hjZ9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV9hM hjW9ubah}(h]h ]h"]h$]h&]uh1jChj;9ubeh}(h]h ]h"]h$]h&]uh1j!hjV9hM hj89ubah}(h]h ]h"]h$]h&]uh1jhj9ubj)}(h**Description**h]j)}(hj|9h]h Description}(hj~9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubj)}(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 }(hj9hhhNhNubj)}(h ***rgos**h]h*rgos}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubhXK. 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.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h8bool poll_state_synchronize_rcu (unsigned long oldstate)h]h)}(h7bool poll_state_synchronize_rcu(unsigned long oldstate)h](h)}(hjoh]hbool}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhj9hM ubj)}(hpoll_state_synchronize_rcuh]j)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj9hhhj9hM ubj/)}(h(unsigned long oldstate)h]j5)}(hunsigned long oldstateh](h)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj :ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj :ubh)}(hlongh]hlong}(hj+:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj :ubh)}(h h]h }(hj9:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj :ubj)}(holdstateh]holdstate}(hjG:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj:ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj9hhhj9hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhj9hM ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM hj9hhubj)}(hhh]j)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjq:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hjn:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj:h]h Parameters}(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:404: ./kernel/rcu/tree.chM hj:ubj)}(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.)}(hj:h]hunsigned long oldstate}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj:ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj:ubjD)}(hhh]j)}(hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()h]hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jChj:ubeh}(h]h ]h"]h$]h&]uh1j!hj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(h**Description**h]j)}(hj:h]h Description}(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:404: ./kernel/rcu/tree.chM hj:ubj)}(hX'If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.h](hIIf a full RCU grace period has elapsed since the earlier call from which }(hj;hhhNhNubj)}(h **oldstate**h]holdstate}(hj ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh was obtained, return }(hj;hhhNhNubj)}(h**true**h]htrue}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh, otherwise return }(hj;hhhNhNubj)}(h **false**h]hfalse}(hj/;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh. If }(hj;hhhNhNubj)}(h **false**h]hfalse}(hjA;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj;hhhNhNubj)}(h**true**h]htrue}(hjS;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj;hhhNhNubj)}(h **oldstate**h]holdstate}(hje;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj:ubj)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.}(hj~;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj:ubj)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj:ubj)}(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 }(hj;hhhNhNubj)}(h **oldstate**h]holdstate}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh0, and that returned at the end of this function.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hDbool poll_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]h)}(hCbool poll_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](h)}(hjoh]hbool}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;hhhj;hM ubj)}(hpoll_state_synchronize_rcu_fullh]j)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj;hhhj;hM ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj<hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj<ubh)}(h h]h }(hj&<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj7<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4<ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9<modnameN classnameNjwjz)}j}]j)}jsj;sb!c.poll_state_synchronize_rcu_fullasbuh1hhj<ubh)}(h h]h }(hjW<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hje<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hrgosph]hrgosp}(hjr<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj<ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj;hhhj;hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;hhhj;hM ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj;hM hj;hhubj)}(hhh]j)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj<jj<jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(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:404: ./kernel/rcu/tree.chM hj<ubj)}(hhh]j")}(hs``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j()}(h!``struct rcu_gp_oldstate *rgosp``h]j.)}(hj<h]hstruct rcu_gp_oldstate *rgosp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj<ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj<ubjD)}(hhh]j)}(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()}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jChj<ubeh}(h]h ]h"]h$]h&]uh1j!hj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(h**Description**h]j)}(hj=h]h Description}(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:404: ./kernel/rcu/tree.chM hj<ubj)}(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 }(hj.=hhhNhNubj)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hj6=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.=ubh, otherwise return }(hj.=hhhNhNubj)}(h **false**h]hfalse}(hjH=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.=ubh. If }(hj.=hhhNhNubj)}(h **false**h]hfalse}(hjZ=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.=ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj.=hhhNhNubj)}(h**true**h]htrue}(hjl=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.=ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj.=hhhNhNubj)}(h **rgosp**h]hrgosp}(hj~=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.=ubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hj.=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj<ubj)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj<ubj)}(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}(hj=hhhNhNubah}(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}(hj=hhhNhNubah}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]h)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](h)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhj>hM ubj)}(hcond_synchronize_rcuh]j)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhhj>hM ubj/)}(h(unsigned long oldstate)h]j5)}(hunsigned long oldstateh](h)}(hunsignedh]hunsigned}(hj6>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2>ubh)}(h h]h }(hjD>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2>ubh)}(hlongh]hlong}(hjR>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2>ubh)}(h h]h }(hj`>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2>ubj)}(holdstateh]holdstate}(hjn>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2>ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.>ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj=hhhj>hM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj=hhhj>hM ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj>hM hj=hhubj)}(hhh]j)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj>jj>jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj>h]h Parameters}(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:404: ./kernel/rcu/tree.chM hj>ubj)}(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.)}(hj>h]hunsigned long oldstate}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj>ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj>ubjD)}(hhh]j)}(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()}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hM hj>ubah}(h]h ]h"]h$]h&]uh1jChj>ubeh}(h]h ]h"]h$]h&]uh1j!hj>hM hj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubj)}(h**Description**h]j)}(hj?h]h Description}(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:404: ./kernel/rcu/tree.chM hj>ubj)}(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.}(hj*?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj>ubj)}(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.}(hj9?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM hj>ubj)}(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 }(hjH?hhhNhNubj)}(h **oldstate**h]holdstate}(hjP?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH?ubh/ and that returned at the end of this function.}(hjH?hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(h>void cond_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]h)}(h=void cond_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhj?hMubj)}(hcond_synchronize_rcu_fullh]j)}(hcond_synchronize_rcu_fullh]hcond_synchronize_rcu_full}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?hhhj?hMubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hj?hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj?modnameN classnameNjwjz)}j}]j)}jsj?sbc.cond_synchronize_rcu_fullasbuh1hhj?ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hrgosph]hrgosp}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj?ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj?hhhj?hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?hhhj?hMubah}(h]j|?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMhj~?hhubj)}(hhh]j)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hjI@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjF@hhubah}(h]h ]h"]h$]h&]uh1jhj~?hhhj?hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjja@jja@jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjk@h]h Parameters}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji@ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhje@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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj@ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhj@ubjD)}(hhh]j)}(h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()h]h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jChj@ubeh}(h]h ]h"]h$]h&]uh1j!hj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhje@ubj)}(h**Description**h]j)}(hj@h]h Description}(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:404: ./kernel/rcu/tree.chMhje@ubj)}(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 }(hj@hhhNhNubj)}(h **rgosp**h]hrgosp}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubha was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhje@ubj)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhje@ubj)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hj AhhhNhNubj)}(h **rgosp**h]hrgosp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubh/ and that returned at the end of this function.}(hj AhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhje@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_barrier (C function) c.rcu_barrierhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_barrier (void)h]h)}(hvoid rcu_barrier(void)h](h)}(hvoidh]hvoid}(hjLAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHAhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMubh)}(h h]h }(hj[AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHAhhhjZAhMubj)}(h rcu_barrierh]j)}(h rcu_barrierh]h rcu_barrier}(hjmAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjHAhhhjZAhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjAubah}(h]h ]h"]h$]h&]j,j-uh1j.hjHAhhhjZAhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDAhhhjZAhMubah}(h]j?Aah ](jjeh"]h$]h&]jj)jhuh1hhjZAhMhjAAhhubj)}(hhh]j)}(h7Wait until all in-flight call_rcu() callbacks complete.h]h7Wait until all in-flight call_rcu() callbacks complete.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjAAhhhjZAhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjAjjAjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjAubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjAh]hvoid}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjAubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjAubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj BhKhj Bubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj BhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(h**Description**h]j)}(hj/Bh]h Description}(hj1BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Bubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjAubj)}(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.}(hjEBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhjihhhNhNubh)}(hhh](h)}(h!void rcu_barrier_throttled (void)h]h)}(h void rcu_barrier_throttled(void)h](h)}(hvoidh]hvoid}(hjtBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpBhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM"ubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpBhhhjBhM"ubj)}(hrcu_barrier_throttledh]j)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjpBhhhjBhM"ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubah}(h]h ]h"]h$]h&]j,j-uh1j.hjpBhhhjBhM"ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjlBhhhjBhM"ubah}(h]jgBah ](jjeh"]h$]h&]jj)jhuh1hhjBhM"hjiBhhubj)}(hhh]j)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM"hjBhhubah}(h]h ]h"]h$]h&]uh1jhjiBhhhjBhM"ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjBjjBjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM&hjBubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjCh]hvoid}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjCubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj5ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ChKhj2Cubah}(h]h ]h"]h$]h&]uh1jChjCubeh}(h]h ]h"]h$]h&]uh1j!hj1ChKhjCubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(h**Description**h]j)}(hjWCh]h Description}(hjYChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUCubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chKhjBubj)}(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.}(hjmChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM#hjBubj)}(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.}(hj|ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM)hjBubj)}(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!}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/tree.chM-hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h%void synchronize_rcu_expedited (void)h]h)}(h$void synchronize_rcu_expedited(void)h](h)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjChMubj)}(hsynchronize_rcu_expeditedh]j)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhjChMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjCubah}(h]h ]h"]h$]h&]j,j-uh1j.hjChhhjChMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjChhubj)}(hhh]j)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hj!DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj9Djj9Djjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjCDh]h Parameters}(hjEDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjADubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj=Dubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjbDh]hvoid}(hjdDhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`Dubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhKhj\DubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj{DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwDhKhjxDubah}(h]h ]h"]h$]h&]uh1jChj\Dubeh}(h]h ]h"]h$]h&]uh1j!hjwDhKhjYDubah}(h]h ]h"]h$]h&]uh1jhj=Dubj)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhKhj=Dubj)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj=Dubj)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj=Dubj)}(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().}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhj=Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]h)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](h)}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjEhMubh)}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhjEhMubh)}(h h]h }(hj+EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjEhMubj)}(h$start_poll_synchronize_rcu_expeditedh]j)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hj=EhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9Eubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjEhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjYEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUEubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQEubah}(h]h ]h"]h$]h&]j,j-uh1j.hjDhhhjEhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjDhhhjEhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhjDhhubj)}(hhh]j)}(h;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state and start expedited grace period}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjEhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM hjEubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjEh]hvoid}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhKhjEubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jChjEubeh}(h]h ]h"]h$]h&]uh1j!hjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(h**Description**h]j)}(hjEh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhKhjEubj)}(hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hNvoid start_poll_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]h)}(hMvoid start_poll_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](h)}(hvoidh]hvoid}(hjDFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@FhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM>ubh)}(h h]h }(hjSFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@FhhhjRFhM>ubj)}(h)start_poll_synchronize_rcu_expedited_fullh]j)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hjeFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@FhhhjRFhM>ubj/)}(h(struct rcu_gp_oldstate *rgosp)h]j5)}(hstruct rcu_gp_oldstate *rgosph](j;)}(hj>h]hstruct}(hjFhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}Fubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Fubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsjgFsb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhj}Fubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Fubj)}(hrgosph]hrgosp}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}Fubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyFubah}(h]h ]h"]h$]h&]j,j-uh1j.hj@FhhhjRFhM>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjubah}(h]j7Fah ](jjeh"]h$]h&]jj)jhuh1hhjRFhM>hj9Fhhubj)}(hhh]j)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM>hjGhhubah}(h]h ]h"]h$]h&]uh1jhj9FhhhjRFhM>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjGjjGjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj&Gh]h Parameters}(hj(GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMBhj Gubj)}(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.)}(hjEGh]hstruct rcu_gp_oldstate *rgosp}(hjGGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCGubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhM?hj?GubjD)}(hhh]j)}(h+Place to put snapshot of grace-period stateh]h+Place to put snapshot of grace-period state}(hj^GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZGhM?hj[Gubah}(h]h ]h"]h$]h&]uh1jChj?Gubeh}(h]h ]h"]h$]h&]uh1j!hjZGhM?hjh]hstruct}(hjIhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjImodnameN classnameNjwjz)}j}]j)}jsjxIsb%c.cond_synchronize_rcu_expedited_fullasbuh1hhjIubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hrgosph]hrgosp}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjIubah}(h]h ]h"]h$]h&]j,j-uh1j.hjQIhhhjcIhMkubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjMIhhhjcIhMkubah}(h]jHIah ](jjeh"]h$]h&]jj)jhuh1hhjcIhMkhjJIhhubj)}(hhh]j)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMkhjJhhubah}(h]h ]h"]h$]h&]uh1jhjJIhhhjcIhMkubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-Jjj-Jjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() **Description** If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **rgosp** was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp** and that returned at the end of this function.h](j)}(h**Parameters**h]j)}(hj7Jh]h Parameters}(hj9JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Jubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMohj1Jubj)}(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.)}(hjVJh]hstruct rcu_gp_oldstate *rgosp}(hjXJhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTJubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMlhjPJubjD)}(hhh]j)}(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()}(hjoJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkJhMlhjlJubah}(h]h ]h"]h$]h&]uh1jChjPJubeh}(h]h ]h"]h$]h&]uh1j!hjkJhMlhjMJubah}(h]h ]h"]h$]h&]uh1jhj1Jubj)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMnhj1Jubj)}(hX,If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **rgosp** was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.h](hIf a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which }(hjJhhhNhNubj)}(h **rgosp**h]hrgosp}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhk was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMnhj1Jubj)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMthj1Jubj)}(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 }(hjJhhhNhNubj)}(h **rgosp**h]hrgosp}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh/ and that returned at the end of this function.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./kernel/rcu/tree_exp.hhMyhj1Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&rcu_read_lock_held_common (C function)c.rcu_read_lock_held_commonhNtauh1hhjihhhNhNubh)}(hhh](h)}(h*bool rcu_read_lock_held_common (bool *ret)h]h)}(h)bool rcu_read_lock_held_common(bool *ret)h](h)}(hjoh]hbool}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKDubh)}(h h]h }(hj&KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj%KhKDubj)}(hrcu_read_lock_held_commonh]j)}(hrcu_read_lock_held_commonh]hrcu_read_lock_held_common}(hj8KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4Kubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjKhhhj%KhKDubj/)}(h (bool *ret)h]j5)}(h bool *reth](h)}(hjoh]hbool}(hjTKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPKubh)}(h h]h }(hjaKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPKubj)}(hjh]h*}(hjoKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPKubj)}(hreth]hret}(hj|KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjLKubah}(h]h ]h"]h$]h&]j,j-uh1j.hjKhhhj%KhKDubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhj%KhKDubah}(h]j Kah ](jjeh"]h$]h&]jj)jhuh1hhj%KhKDhj Khhubj)}(hhh]j)}(h4might we be in RCU-sched read-side critical section?h]h4might we be in RCU-sched read-side critical section?}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKDhjKhhubah}(h]h ]h"]h$]h&]uh1jhj Khhhj%KhKDubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjKjjKjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``bool *ret`` Best guess answer if lockdep cannot be relied on **Description** Returns true if lockdep must be ignored, in which case ``*ret`` contains the best guess described below. Otherwise returns false, in which case ``*ret`` tells the caller nothing and the caller should instead consult lockdep. If CONFIG_DEBUG_LOCK_ALLOC is selected, set ``*ret`` to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section. Check debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets ``*ret`` to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task. Similarly, we avoid claiming an RCU read lock held if the current CPU is offline.h](j)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKHhjKubj)}(hhh]j")}(h?``bool *ret`` Best guess answer if lockdep cannot be relied on h](j()}(h ``bool *ret``h]j.)}(hjKh]h bool *ret}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKEhjKubjD)}(hhh]j)}(h0Best guess answer if lockdep cannot be relied onh]h0Best guess answer if lockdep cannot be relied on}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKEhjKubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjKhKEhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(h**Description**h]j)}(hj"Lh]h Description}(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:408: ./kernel/rcu/update.chKGhjKubj)}(hReturns true if lockdep must be ignored, in which case ``*ret`` contains the best guess described below. Otherwise returns false, in which case ``*ret`` tells the caller nothing and the caller should instead consult lockdep.h](h7Returns true if lockdep must be ignored, in which case }(hj8LhhhNhNubj.)}(h``*ret``h]h*ret}(hj@LhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8LubhR contains the best guess described below. Otherwise returns false, in which case }(hj8LhhhNhNubj.)}(h``*ret``h]h*ret}(hjRLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8LubhH tells the caller nothing and the caller should instead consult lockdep.}(hj8LhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKGhjKubj)}(hXIf CONFIG_DEBUG_LOCK_ALLOC is selected, set ``*ret`` to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section.h](h,If CONFIG_DEBUG_LOCK_ALLOC is selected, set }(hjkLhhhNhNubj.)}(h``*ret``h]h*ret}(hjsLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkLubhX to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section.}(hjkLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKLhjKubj)}(hgCheck debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hgCheck debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKUhjKubj)}(hX Note that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets ``*ret`` to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task.h](hNote that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets }(hjLhhhNhNubj.)}(h``*ret``h]h*ret}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubhXW to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKXhjKubj)}(hQSimilarly, we avoid claiming an RCU read lock held if the current CPU is offline.h]hQSimilarly, we avoid claiming an RCU read lock held if the current CPU is offline.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKdhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_async_hurry (C function)c.rcu_async_hurryhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_async_hurry (void)h]h)}(hvoid rcu_async_hurry(void)h](h)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhjLhKubj)}(hrcu_async_hurryh]j)}(hrcu_async_hurryh]hrcu_async_hurry}(hj MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjLhhhjLhKubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj(MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$Mubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj Mubah}(h]h ]h"]h$]h&]j,j-uh1j.hjLhhhjLhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLhhhjLhKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhKhjLhhubj)}(hhh]j)}(h)Make future async RCU callbacks not lazy.h]h)Make future async RCU callbacks not lazy.}(hjRMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjMjjjMjjjuh1hhhhjihNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to call_rcu() will be processed in a timely fashion.h](j)}(h**Parameters**h]j)}(hjtMh]h Parameters}(hjvMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjnMubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjMh]hvoid}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjMubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhKhjMubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjMhKhjMubah}(h]h ]h"]h$]h&]uh1jhjnMubj)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjnMubj)}(h`After a call to this function, future calls to call_rcu() will be processed in a timely fashion.h]h`After a call to this function, future calls to call_rcu() will be processed in a timely fashion.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjnMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_async_relax (C function)c.rcu_async_relaxhNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_async_relax (void)h]h)}(hvoid rcu_async_relax(void)h](h)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKubh)}(h h]h }(hj"NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhj!NhKubj)}(hrcu_async_relaxh]j)}(hrcu_async_relaxh]hrcu_async_relax}(hj4NhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0Nubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhj!NhKubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjPNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLNubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjHNubah}(h]h ]h"]h$]h&]j,j-uh1j.hjNhhhj!NhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj Nhhhj!NhKubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhj!NhKhjNhhubj)}(hhh]j)}(h%Make future async RCU callbacks lazy.h]h%Make future async RCU callbacks lazy.}(hjzNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjwNhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhj!NhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjNjjNjjjuh1hhhhjihNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjNubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjNh]hvoid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjNubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhKhjNubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjNhKhjNubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjNubj)}(h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h]h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.}(hj OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_expedite_gp (C function)c.rcu_expedite_gphNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_expedite_gp (void)h]h)}(hvoid rcu_expedite_gp(void)h](h)}(hvoidh]hvoid}(hj;OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7OhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKubh)}(h h]h }(hjJOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7OhhhjIOhKubj)}(hrcu_expedite_gph]j)}(hrcu_expedite_gph]hrcu_expedite_gp}(hj\OhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXOubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj7OhhhjIOhKubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjxOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtOubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjpOubah}(h]h ]h"]h$]h&]j,j-uh1j.hj7OhhhjIOhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj3OhhhjIOhKubah}(h]j.Oah ](jjeh"]h$]h&]jj)jhuh1hhjIOhKhj0Ohhubj)}(hhh]j)}(h!Expedite future RCU grace periodsh]h!Expedite future RCU grace periods}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOhhubah}(h]h ]h"]h$]h&]uh1jhj0OhhhjIOhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjOjjOjjjuh1hhhhjihNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjOh]hvoid}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhKhjOubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjOhKhjOubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(h**Description**h]j)}(hjPh]h Description}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOubj)}(hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h]hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.}(hj4PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_unexpedite_gp (C function)c.rcu_unexpedite_gphNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_unexpedite_gp (void)h]h)}(hvoid rcu_unexpedite_gp(void)h](h)}(hvoidh]hvoid}(hjcPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_PhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKubh)}(h h]h }(hjrPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_PhhhjqPhKubj)}(hrcu_unexpedite_gph]j)}(hrcu_unexpedite_gph]hrcu_unexpedite_gp}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj_PhhhjqPhKubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjPubah}(h]h ]h"]h$]h&]j,j-uh1j.hj_PhhhjqPhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj[PhhhjqPhKubah}(h]jVPah ](jjeh"]h$]h&]jj)jhuh1hhjqPhKhjXPhhubj)}(hhh]j)}(h)Cancel prior rcu_expedite_gp() invocationh]h)Cancel prior rcu_expedite_gp() invocation}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjXPhhhjqPhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjPjjPjjjuh1hhhhjihNhNubj)}(hXk**Parameters** ``void`` no arguments **Description** Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h](j)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjPubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj Qh]hvoid}(hj QhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj Qubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjQubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj$QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj QhKhj!Qubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hj QhKhjQubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(h**Description**h]j)}(hjFQh]h Description}(hjHQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjPubj)}(hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h]hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.}(hj\QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_read_lock_held (C function)c.rcu_read_lock_heldhNtauh1hhjihhhNhNubh)}(hhh](h)}(hint rcu_read_lock_held (void)h]h)}(hint rcu_read_lock_held(void)h](h)}(hinth]hint}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMFubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhjQhMFubj)}(hrcu_read_lock_heldh]j)}(hrcu_read_lock_heldh]hrcu_read_lock_held}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjQhhhjQhMFubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjQubah}(h]h ]h"]h$]h&]j,j-uh1j.hjQhhhjQhMFubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjQhhhjQhMFubah}(h]j~Qah ](jjeh"]h$]h&]jj)jhuh1hhjQhMFhjQhhubj)}(hhh]j)}(h.might we be in RCU read-side critical section?h]h.might we be in RCU read-side critical section?}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMFhjQhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMFubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj Rjj Rjjjuh1hhhhjihNhNubj)}(hXq**Parameters** ``void`` no arguments **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler. Note that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](j)}(h**Parameters**h]j)}(hjRh]h Parameters}(hdjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMJhjRubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj3Rh]hvoid}(hj5RhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1Rubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhj-RubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjLRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHRhKhjIRubah}(h]h ]h"]h$]h&]uh1jChj-Rubeh}(h]h ]h"]h$]h&]uh1j!hjHRhKhj*Rubah}(h]h ]h"]h$]h&]uh1jhjRubj)}(h**Description**h]j)}(hjnRh]h Description}(hjpRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjRubj)}(hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMGhjRubj)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMMhjRubj)}(hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.h]hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMPhjRubj)}(hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMUhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_read_lock_bh_held (C function)c.rcu_read_lock_bh_heldhNtauh1hhjihhhNhNubh)}(hhh](h)}(h int rcu_read_lock_bh_held (void)h]h)}(hint rcu_read_lock_bh_held(void)h](h)}(hinth]hint}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMdubh)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjRhMdubj)}(hrcu_read_lock_bh_heldh]j)}(hrcu_read_lock_bh_heldh]hrcu_read_lock_bh_held}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjRhhhjRhMdubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubah}(h]h ]h"]h$]h&]j,j-uh1j.hjRhhhjRhMdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjRhMdubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhMdhjRhhubj)}(hhh]j)}(h1might we be in RCU-bh read-side critical section?h]h1might we be in RCU-bh read-side critical section?}(hjGShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMdhjDShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj_Sjj_Sjjjuh1hhhhjihNhNubj)}(hXW**Parameters** ``void`` no arguments **Description** Check for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Check debug_lockdep_rcu_enabled() to prevent false positives during boot. Note that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](j)}(h**Parameters**h]j)}(hjiSh]h Parameters}(hjkShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhhjcSubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjSh]hvoid}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjSubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShKhjSubah}(h]h ]h"]h$]h&]uh1jChjSubeh}(h]h ]h"]h$]h&]uh1j!hjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjcSubj)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjcSubj)}(hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMehjcSubj)}(hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.h]hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMlhjcSubj)}(hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMnhjcSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwakeme_after_rcu (C function)c.wakeme_after_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h-void wakeme_after_rcu (struct rcu_head *head)h]h)}(h,void wakeme_after_rcu(struct rcu_head *head)h](h)}(hvoidh]hvoid}(hj&ThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMubh)}(h h]h }(hj5ThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"Thhhj4ThMubj)}(hwakeme_after_rcuh]j)}(hwakeme_after_rcuh]hwakeme_after_rcu}(hjGThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCTubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj"Thhhj4ThMubj/)}(h(struct rcu_head *head)h]j5)}(hstruct rcu_head *headh](j;)}(hj>h]hstruct}(hjcThhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj_Tubh)}(h h]h }(hjpThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_Tubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~Tubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}jsjITsbc.wakeme_after_rcuasbuh1hhj_Tubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_Tubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Tubj)}(hheadh]hhead}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_Tubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj[Tubah}(h]h ]h"]h$]h&]j,j-uh1j.hj"Thhhj4ThMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjThhhj4ThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhj4ThMhjThhubj)}(hhh]j)}(h5Callback function to awaken a task after grace periodh]h5Callback function to awaken a task after grace period}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjThhhj4ThMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjTjjTjjjuh1hhhhjihNhNubj)}(h**Parameters** ``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure **Description** Awaken the corresponding task now that a grace period has elapsed.h](j)}(h**Parameters**h]j)}(hjUh]h Parameters}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjUubj)}(hhh]j")}(hV``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure h](j()}(h``struct rcu_head *head``h]j.)}(hj'Uh]hstruct rcu_head *head}(hj)UhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj%Uubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhj!UubjD)}(hhh]j)}(h;Pointer to rcu_head member within rcu_synchronize structureh]h;Pointer to rcu_head member within rcu_synchronize structure}(hj@UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]hstruct}(hjUhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVmodnameN classnameNjwjz)}j}]j)}jsjUsbc.init_rcu_head_on_stackasbuh1hhjUubh)}(h h]h }(hj"VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hj0VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hheadh]hhead}(hj=VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUubah}(h]h ]h"]h$]h&]j,j-uh1j.hjUhhhjUhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjUhhubj)}(hhh]j)}(h-initialize on-stack rcu_head for debugobjectsh]h-initialize on-stack rcu_head for debugobjects}(hjgVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjdVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjVjjVjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](j)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjVubj)}(hhh]j")}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j()}(h``struct rcu_head *head``h]j.)}(hjVh]hstruct rcu_head *head}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjVubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjVubjD)}(hhh]j)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubj)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjVubj)}(hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&destroy_rcu_head_on_stack (C function)c.destroy_rcu_head_on_stackhNtauh1hhjihhhNhNubh)}(hhh](h)}(h6void destroy_rcu_head_on_stack (struct rcu_head *head)h]h)}(h5void destroy_rcu_head_on_stack(struct rcu_head *head)h](h)}(hvoidh]hvoid}(hj(WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$WhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMubh)}(h h]h }(hj7WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$Whhhj6WhMubj)}(hdestroy_rcu_head_on_stackh]j)}(hdestroy_rcu_head_on_stackh]hdestroy_rcu_head_on_stack}(hjIWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEWubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj$Whhhj6WhMubj/)}(h(struct rcu_head *head)h]j5)}(hstruct rcu_head *headh](j;)}(hj>h]hstruct}(hjeWhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjaWubh)}(h h]h }(hjrWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaWubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjWmodnameN classnameNjwjz)}j}]j)}jsjKWsbc.destroy_rcu_head_on_stackasbuh1hhjaWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaWubj)}(hheadh]hhead}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj]Wubah}(h]h ]h"]h$]h&]j,j-uh1j.hj$Whhhj6WhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj Whhhj6WhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj6WhMhjWhhubj)}(hhh]j)}(h*destroy on-stack rcu_head for debugobjectsh]h*destroy on-stack rcu_head for debugobjects}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhj6WhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjXjjXjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](j)}(h**Parameters**h]j)}(hj Xh]h Parameters}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjXubj)}(hhh]j")}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j()}(h``struct rcu_head *head``h]j.)}(hj)Xh]hstruct rcu_head *head}(hj+XhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj'Xubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhj#XubjD)}(hhh]j)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjBXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>XhMhj?Xubah}(h]h ]h"]h$]h&]uh1jChj#Xubeh}(h]h ]h"]h$]h&]uh1j!hj>XhMhj Xubah}(h]h ]h"]h$]h&]uh1jhjXubj)}(h**Description**h]j)}(hjdXh]h Description}(hjfXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjXubj)}(hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hjzXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*get_completed_synchronize_rcu (C function)c.get_completed_synchronize_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h2unsigned long get_completed_synchronize_rcu (void)h]h)}(h1unsigned long get_completed_synchronize_rcu(void)h](h)}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM:ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjXhM:ubh)}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhjXhM:ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjXhM:ubj)}(hget_completed_synchronize_rcuh]j)}(hget_completed_synchronize_rcuh]hget_completed_synchronize_rcu}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjXhhhjXhM:ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubah}(h]h ]h"]h$]h&]j,j-uh1j.hjXhhhjXhM:ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjXhM:ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhM:hjXhhubj)}(hhh]j)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hj,YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM:hj)Yhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhM:ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDYjjDYjjjuh1hhhhjihNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.h](j)}(h**Parameters**h]j)}(hjNYh]h Parameters}(hjPYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM>hjHYubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjmYh]hvoid}(hjoYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkYubah}(h]h ]h"]h$]h&]uh1j'hX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjgYubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jChjgYubeh}(h]h ]h"]h$]h&]uh1j!hjYhKhjdYubah}(h]h ]h"]h$]h&]uh1jhjHYubj)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chKhjHYubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/update.chM;hjHYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h3unsigned long get_completed_synchronize_srcu (void)h]h)}(h2unsigned long get_completed_synchronize_srcu(void)h](h)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKJubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjYhKJubh)}(hlongh]hlong}(hj ZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhjYhKJubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjYhKJubj)}(hget_completed_synchronize_srcuh]j)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hj*ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&Zubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjYhhhjYhKJubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjFZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBZubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj>Zubah}(h]h ]h"]h$]h&]j,j-uh1j.hjYhhhjYhKJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjYhhhjYhKJubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhKJhjYhhubj)}(hhh]j)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjpZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKJhjmZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhKJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjZjjZjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKNhjZubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjZh]hvoid}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjZubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jChjZubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhjZubah}(h]h ]h"]h$]h&]uh1jhjZubj)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjZubj)}(hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h]hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKKhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hSbool same_state_synchronize_srcu (unsigned long oldstate1, unsigned long oldstate2)h]h)}(hRbool same_state_synchronize_srcu(unsigned long oldstate1, unsigned long oldstate2)h](h)}(hjoh]hbool}(hj1[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhK]ubh)}(h h]h }(hj?[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-[hhhj>[hK]ubj)}(hsame_state_synchronize_srcuh]j)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hjQ[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjM[ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj-[hhhj>[hK]ubj/)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j5)}(hunsigned long oldstate1h](h)}(hunsignedh]hunsigned}(hjm[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji[ubh)}(h h]h }(hj{[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji[ubh)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji[ubj)}(h oldstate1h]h oldstate1}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hje[ubj5)}(hunsigned long oldstate2h](h)}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(h oldstate2h]h oldstate2}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hje[ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj-[hhhj>[hK]ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj)[hhhj>[hK]ubah}(h]j$[ah ](jjeh"]h$]h&]jj)jhuh1hhj>[hK]hj&[hhubj)}(hhh]j)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhK]hj\hhubah}(h]h ]h"]h$]h&]uh1jhj&[hhhj>[hK]ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj8\jj8\jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjB\h]h Parameters}(hjD\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@\ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKahj<\ubj)}(hhh](j")}(h3``unsigned long oldstate1`` First old-state value. h](j()}(h``unsigned long oldstate1``h]j.)}(hja\h]hunsigned long oldstate1}(hjc\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_\ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhK^hj[\ubjD)}(hhh]j)}(hFirst old-state value.h]hFirst old-state value.}(hjz\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv\hK^hjw\ubah}(h]h ]h"]h$]h&]uh1jChj[\ubeh}(h]h ]h"]h$]h&]uh1j!hjv\hK^hjX\ubj")}(h4``unsigned long oldstate2`` Second old-state value. h](j()}(h``unsigned long oldstate2``h]j.)}(hj\h]hunsigned long oldstate2}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhK_hj\ubjD)}(hhh]j)}(hSecond old-state value.h]hSecond old-state value.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hK_hj\ubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hj\hK_hjX\ubeh}(h]h ]h"]h$]h&]uh1jhj<\ubj)}(h**Description**h]j)}(hj\h]h Description}(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:410: ./include/linux/srcu.hhKahj<\ubj)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hj\hhhNhNubj)}(h**true**h]htrue}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh% if the two values are identical and }(hj\hhhNhNubj)}(h **false**h]hfalse}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKahj<\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_read_lock_held (C function)c.srcu_read_lock_heldhNtauh1hhjihhhNhNubh)}(hhh](h)}(h7int srcu_read_lock_held (const struct srcu_struct *ssp)h]h)}(h6int srcu_read_lock_held(const struct srcu_struct *ssp)h](h)}(hinth]hint}(hj>]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:]hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKubh)}(h h]h }(hjM]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:]hhhjL]hKubj)}(hsrcu_read_lock_heldh]j)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hj_]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[]ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj:]hhhjL]hKubj/)}(h(const struct srcu_struct *ssp)h]j5)}(hconst struct srcu_struct *ssph](j;)}(hjh]hconst}(hj{]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjw]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw]ubj;)}(hj>h]hstruct}(hj]hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjw]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw]ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj]modnameN classnameNjwjz)}j}]j)}jsja]sbc.srcu_read_lock_heldasbuh1hhjw]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw]ubj)}(hssph]hssp}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw]ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjs]ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj:]hhhjL]hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj6]hhhjL]hKubah}(h]j1]ah ](jjeh"]h$]h&]jj)jhuh1hhjL]hKhj3]hhubj)}(hhh]j)}(h/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj^hhubah}(h]h ]h"]h$]h&]uh1jhj3]hhhjL]hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1^jj1^jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj;^h]h Parameters}(hj=^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj5^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.)}(hjZ^h]hconst struct srcu_struct *ssp}(hj\^hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjX^ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjT^ubjD)}(hhh]j)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hjs^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo^hKhjp^ubah}(h]h ]h"]h$]h&]uh1jChjT^ubeh}(h]h ]h"]h$]h&]uh1j!hjo^hKhjQ^ubah}(h]h ]h"]h$]h&]uh1jhj5^ubj)}(h**Description**h]j)}(hj^h]h Description}(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:410: ./include/linux/srcu.hhKhj5^ubj)}(hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.h]hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj5^ubj)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj5^ubj)}(hNote that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h]hNote that SRCU is based on its own statemachine and it doesn’t relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj5^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhjihhhNhNubh)}(hhh](h)}(hsrcu_dereference_checkh]h)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]j)}(hj^h]hsrcu_dereference_check}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj^hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj^hhhj_hKubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj_hKhj^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^hhhj_hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj(_jj(_jjjuh1hhhhjihNhNubj)}(h&``srcu_dereference_check (p, ssp, c)``h]j.)}(hj._h]h"srcu_dereference_check (p, ssp, c)}(hj0_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjihhubj<8)}(h5fetch SRCU-protected pointer for later dereferencing h]j)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjH_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjD_ubah}(h]h ]h"]h$]h&]uh1j;8hjV_hKhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjc_h]h Parameters}(hje_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj]_ubj)}(hhh](j")}(h?``p`` the pointer to fetch and protect for later dereferencing h](j()}(h``p``h]j.)}(hj_h]hp}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj|_ubjD)}(hhh]j)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jChj|_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhjy_ubj")}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j()}(h``ssp``h]j.)}(hj_h]hssp}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj_ubjD)}(hhh]j)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj_ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj_hKhjy_ubj")}(h-``c`` condition to check for update-side use h](j()}(h``c``h]j.)}(hj_h]hc}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj_ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj_ubjD)}(hhh]j)}(h&condition to check for update-side useh]h&condition to check for update-side use}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj `hKhj `ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hj `hKhjy_ubeh}(h]h ]h"]h$]h&]uh1jhj]_ubj)}(h**Description**h]j)}(hj0`h]h Description}(hj2`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.`ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj]_ubj)}(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 }(hjF`hhhNhNubj)}(h**c**h]hc}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF`ubh evaluates to 1. The }(hjF`hhhNhNubj)}(h**c**h]hc}(hj``hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF`ubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjF`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj]_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_dereference (C macro)c.srcu_dereferencehNtauh1hhjihhhNhNubh)}(hhh](h)}(hsrcu_dereferenceh]h)}(hsrcu_dereferenceh]j)}(hsrcu_dereferenceh]j)}(hj`h]hsrcu_dereference}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj`hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj`hhhj`hKubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hKhj`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj`hhhj`hKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj`jj`jjjuh1hhhhjihNhNubj)}(h``srcu_dereference (p, ssp)``h]j.)}(hj`h]hsrcu_dereference (p, ssp)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjihhubj<8)}(h5fetch SRCU-protected pointer for later dereferencing h]j)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj`ubah}(h]h ]h"]h$]h&]uh1j;8hj`hKhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj`ubj)}(hhh](j")}(h?``p`` the pointer to fetch and protect for later dereferencing h](j()}(h``p``h]j.)}(hj#ah]hp}(hj%ahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!aubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjaubjD)}(hhh]j)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjh]hstruct}(hj6chhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2cubh)}(h h]h }(hjCchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2cubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjTchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjVcmodnameN classnameNjwjz)}j}]j)}jsjcsbc.srcu_read_lockasbuh1hhj2cubh)}(h h]h }(hjtchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2cubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2cubj)}(hssph]hssp}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2cubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj.cubah}(h]h ]h"]h$]h&]j,j-uh1j.hjbhhhjchKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjbhhhjchKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjchKhjbhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjchKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjcjjcjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjcubj)}(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.)}(hjch]hstruct srcu_struct *ssp}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjcubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hjdhKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubj)}(h**Description**h]j)}(hj5dh]h Description}(hj7dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3dubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjcubj)}(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().}(hjKdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjcubj)}(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.}(hjZdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhjihhhNhNubh)}(hhh](h)}(hHstruct srcu_ctr __percpu * srcu_read_lock_fast (struct srcu_struct *ssp)h]h)}(hFstruct srcu_ctr __percpu *srcu_read_lock_fast(struct srcu_struct *ssp)h](j;)}(hj>h]hstruct}(hjdhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjdhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhMubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjdmodnameN classnameNjwjz)}j}]j)}jssrcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhjdhhhjdhMubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhMubh__percpu}(hjdhhhNhNubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhjdhMubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMubj)}(hsrcu_read_lock_fasth]j)}(hjdh]hsrcu_read_lock_fast}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjdhhhjdhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjehhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjeubh)}(h h]h }(hj"ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj3ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0eubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5emodnameN classnameNjwjz)}j}]jdc.srcu_read_lock_fastasbuh1hhjeubh)}(h h]h }(hjQehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hjh]h*}(hj_ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hssph]hssp}(hjlehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj eubah}(h]h ]h"]h$]h&]j,j-uh1j.hjdhhhjdhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjdhMubah}(h]j|dah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhj~dhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhj~dhhhjdhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjejjejjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubj)}(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.)}(hjeh]hstruct srcu_struct *ssp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubj)}(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.}(hj(fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubj)}(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.}(hj7fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubj)}(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.}(hjFfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhjihhhNhNubh)}(hhh](h)}(hHstruct srcu_ctr __percpu * srcu_down_read_fast (struct srcu_struct *ssp)h]h)}(hFstruct srcu_ctr __percpu *srcu_down_read_fast(struct srcu_struct *ssp)h](j;)}(hj>h]hstruct}(hjufhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqfhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqfhhhjfhMubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjfmodnameN classnameNjwjz)}j}]j)}jssrcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjqfhhhjfhMubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqfhhhjfhMubh__percpu}(hjqfhhhNhNubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqfhhhjfhMubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqfhhhjfhMubj)}(hsrcu_down_read_fasth]j)}(hjfh]hsrcu_down_read_fast}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjqfhhhjfhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjghhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjfubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj!gmodnameN classnameNjwjz)}j}]jfc.srcu_down_read_fastasbuh1hhjfubh)}(h h]h }(hj=ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjKghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hssph]hssp}(hjXghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjfubah}(h]h ]h"]h$]h&]j,j-uh1j.hjqfhhhjfhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmfhhhjfhMubah}(h]jhfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjjfhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjghhubah}(h]h ]h"]h$]h&]uh1jhjjfhhhjfhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjgjjgjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM!hjgubj)}(hhh]j")}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjgh]hstruct srcu_struct *ssp}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjgubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghMhjgubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h**Description**h]j)}(hjgh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM hjgubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM hjgubj)}(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().}(hj#hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM$hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_read_lock_lite (C function)c.srcu_read_lock_litehNtauh1hhjihhhNhNubh)}(hhh](h)}(h1int srcu_read_lock_lite (struct srcu_struct *ssp)h]h)}(h0int srcu_read_lock_lite(struct srcu_struct *ssp)h](h)}(hinth]hint}(hjRhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNhhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM/ubh)}(h h]h }(hjahhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNhhhhj`hhM/ubj)}(hsrcu_read_lock_liteh]j)}(hsrcu_read_lock_liteh]hsrcu_read_lock_lite}(hjshhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjohubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjNhhhhj`hhM/ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjhhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j)}jsjuhsbc.srcu_read_lock_liteasbuh1hhjhubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hssph]hssp}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubah}(h]h ]h"]h$]h&]j,j-uh1j.hjNhhhhj`hhM/ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjJhhhhj`hhM/ubah}(h]jEhah ](jjeh"]h$]h&]jj)jhuh1hhj`hhM/hjGhhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM/hjihhubah}(h]h ]h"]h$]h&]uh1jhjGhhhhj`hhM/ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*ijj*ijjjuh1hhhhjihNhNubj)}(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_lite() 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 _lite srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. Note that srcu_read_lock_lite() 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](j)}(h**Parameters**h]j)}(hj4ih]h Parameters}(hj6ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2iubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM3hj.iubj)}(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.)}(hjSih]hstruct srcu_struct *ssp}(hjUihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQiubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM0hjMiubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjlihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhihM0hjiiubah}(h]h ]h"]h$]h&]uh1jChjMiubeh}(h]h ]h"]h$]h&]uh1j!hjhihM0hjJiubah}(h]h ]h"]h$]h&]uh1jhj.iubj)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM2hj.iubj)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM2hj.iubj)}(hX<If srcu_read_lock_lite() 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 _lite srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.h]hX<If srcu_read_lock_lite() 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 _lite srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM5hj.iubj)}(hNote that srcu_read_lock_lite() 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_lite() 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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM;hj.iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhjihhhNhNubh)}(hhh](h)}(h4int srcu_read_lock_nmisafe (struct srcu_struct *ssp)h]h)}(h3int srcu_read_lock_nmisafe(struct srcu_struct *ssp)h](h)}(hinth]hint}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMJubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihMJubj)}(hsrcu_read_lock_nmisafeh]j)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjihhhjihMJubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj.jhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*jubh)}(h h]h }(hj;jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*jubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjLjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNjmodnameN classnameNjwjz)}j}]j)}jsjjsbc.srcu_read_lock_nmisafeasbuh1hhj*jubh)}(h h]h }(hjljhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*jubj)}(hjh]h*}(hjzjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*jubj)}(hssph]hssp}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*jubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&jubah}(h]h ]h"]h$]h&]j,j-uh1j.hjihhhjihMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjihhhjihMJubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMJhjihhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMJhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMNhjjubj)}(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.)}(hjjh]hstruct srcu_struct *ssp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMKhjjubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMKhjkubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjkhMKhjjubah}(h]h ]h"]h$]h&]uh1jhjjubj)}(h**Description**h]j)}(hj-kh]h Description}(hj/khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+kubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMMhjjubj)}(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.}(hjCkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMMhjjubj)}(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.}(hjRkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMPhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_down_read (C function)c.srcu_down_readhNtauh1hhjihhhNhNubh)}(hhh](h)}(h,int srcu_down_read (struct srcu_struct *ssp)h]h)}(h+int srcu_down_read(struct srcu_struct *ssp)h](h)}(hinth]hint}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}khhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMjubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}khhhjkhMjubj)}(hsrcu_down_readh]j)}(hsrcu_down_readh]hsrcu_down_read}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj}khhhjkhMjubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjkmodnameN classnameNjwjz)}j}]j)}jsjksbc.srcu_down_readasbuh1hhjkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hj lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hssph]hssp}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjkubah}(h]h ]h"]h$]h&]j,j-uh1j.hj}khhhjkhMjubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjykhhhjkhMjubah}(h]jtkah ](jjeh"]h$]h&]jj)jhuh1hhjkhMjhjvkhhubj)}(hhh]j)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjAlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMjhj>lhhubah}(h]h ]h"]h$]h&]uh1jhjvkhhhjkhMjubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjYljjYljjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjclh]h Parameters}(hjelhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjalubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMnhj]lubj)}(hhh]j")}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjlh]hstruct srcu_struct *ssp}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMkhj|lubjD)}(hhh]j)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMkhjlubah}(h]h ]h"]h$]h&]uh1jChj|lubeh}(h]h ]h"]h$]h&]uh1j!hjlhMkhjylubah}(h]h ]h"]h$]h&]uh1jhj]lubj)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMmhj]lubj)}(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().}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMmhj]lubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMvhj]lubj)}(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().}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhM{hj]lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhjihhhNhNubh)}(hhh](h)}(h8void srcu_read_unlock (struct srcu_struct *ssp, int idx)h]h)}(h7void srcu_read_unlock(struct srcu_struct *ssp, int idx)h](h)}(hvoidh]hvoid}(hj mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hj/mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhj.mhMubj)}(hsrcu_read_unlockh]j)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hjAmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=mubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjmhhhj.mhMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj]mhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjYmubh)}(h h]h }(hjjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYmubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj{mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxmubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}mmodnameN classnameNjwjz)}j}]j)}jsjCmsbc.srcu_read_unlockasbuh1hhjYmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYmubj)}(hssph]hssp}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUmubj5)}(hint idxh](h)}(hinth]hint}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hidxh]hidx}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjUmubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjmhhhj.mhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjmhhhj.mhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhj.mhMhjmhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhj.mhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj-njj-njjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj7nh]h Parameters}(hj9nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5nubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj1nubj)}(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.)}(hjVnh]hstruct srcu_struct *ssp}(hjXnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTnubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjPnubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjonhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjknhMhjlnubah}(h]h ]h"]h$]h&]uh1jChjPnubeh}(h]h ]h"]h$]h&]uh1j!hjknhMhjMnubj")}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j()}(h ``int idx``h]j.)}(hjnh]hint idx}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjnubjD)}(hhh]j)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jChjnubeh}(h]h ]h"]h$]h&]uh1j!hjnhMhjMnubeh}(h]h ]h"]h$]h&]uh1jhj1nubj)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj1nubj)}(h(Exit an SRCU read-side critical section.h]h(Exit an SRCU read-side critical section.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj1nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhjihhhNhNubh)}(hhh](h)}(hSvoid srcu_read_unlock_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]h)}(hRvoid srcu_read_unlock_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](h)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ohhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ohhhjohMubj)}(hsrcu_read_unlock_fasth]j)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hj0ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,oubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj ohhhjohMubj/)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjLohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjHoubh)}(h h]h }(hjYohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHoubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjlomodnameN classnameNjwjz)}j}]j)}jsj2osbc.srcu_read_unlock_fastasbuh1hhjHoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHoubj)}(hssph]hssp}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDoubj5)}(hstruct srcu_ctr __percpu *scph](j;)}(hj>h]hstruct}(hjohhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]joc.srcu_read_unlock_fastasbuh1hhjoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubh__percpu}(hjohhhNhNubh)}(h h]h }(hj phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hscph]hscp}(hj'phhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjDoubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj ohhhjohMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjohhhjohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjohhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjQphhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjNphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjipjjipjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjsph]h Parameters}(hjuphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmpubj)}(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.)}(hjph]hstruct srcu_struct *ssp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjpubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjpubj")}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j()}(h!``struct srcu_ctr __percpu *scp``h]j.)}(hjph]hstruct srcu_ctr __percpu *scp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjpubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjpubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jChjpubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjpubeh}(h]h ]h"]h$]h&]uh1jhjmpubj)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmpubj)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjmpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhjihhhNhNubh)}(hhh](h)}(hOvoid srcu_up_read_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]h)}(hNvoid srcu_up_read_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](h)}(hvoidh]hvoid}(hjKqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGqhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjZqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGqhhhjYqhMubj)}(hsrcu_up_read_fasth]j)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjlqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhqubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjGqhhhjYqhMubj/)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjqmodnameN classnameNjwjz)}j}]j)}jsjnqsbc.srcu_up_read_fastasbuh1hhjqubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hssph]hssp}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubj5)}(hstruct srcu_ctr __percpu *scph](j;)}(hj>h]hstruct}(hjqhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjqubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjrmodnameN classnameNjwjz)}j}]jqc.srcu_up_read_fastasbuh1hhjqubh)}(h h]h }(hj6rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh__percpu}(hjqhhhNhNubh)}(h h]h }(hjHrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjVrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hscph]hscp}(hjcrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjqubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjGqhhhjYqhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjCqhhhjYqhMubah}(h]j>qah ](jjeh"]h$]h&]jj)jhuh1hhjYqhMhj@qhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjrhhubah}(h]h ]h"]h$]h&]uh1jhj@qhhhjYqhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrjjrjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjrubj)}(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.)}(hjrh]hstruct srcu_struct *ssp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjrubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjrubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jChjrubeh}(h]h ]h"]h$]h&]uh1j!hjrhMhjrubj")}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j()}(h!``struct srcu_ctr __percpu *scp``h]j.)}(hjsh]hstruct srcu_ctr __percpu *scp}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjsubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjsubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jChjsubeh}(h]h ]h"]h$]h&]uh1j!hjshMhjrubeh}(h]h ]h"]h$]h&]uh1jhjrubj)}(h**Description**h]j)}(hjBsh]h Description}(hjDshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@subah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjrubj)}(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().}(hjXshhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"srcu_read_unlock_lite (C function)c.srcu_read_unlock_litehNtauh1hhjihhhNhNubh)}(hhh](h)}(h=void srcu_read_unlock_lite (struct srcu_struct *ssp, int idx)h]h)}(hh]hstruct}(hjshhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjsubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsjssbc.srcu_read_unlock_liteasbuh1hhjsubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hssph]hssp}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubj5)}(hint idxh](h)}(hinth]hint}(hj6thhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2tubh)}(h h]h }(hjDthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2tubj)}(hidxh]hidx}(hjRthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2tubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjsubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjshhhjshMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjshhhjshMubah}(h]jzsah ](jjeh"]h$]h&]jj)jhuh1hhjshMhj|shhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjythhubah}(h]h ]h"]h$]h&]uh1jhj|shhhjshMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjtjjtjjjuh1hhhhjihNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock_lite(). **Description** Exit a light-weight SRCU read-side critical section.h](j)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubj)}(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.)}(hjth]hstruct srcu_struct *ssp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjtubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjtubj")}(hC``int idx`` return value from corresponding srcu_read_lock_lite(). h](j()}(h ``int idx``h]j.)}(hjth]hint idx}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjtubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubjD)}(hhh]j)}(h6return value from corresponding srcu_read_lock_lite().h]h6return value from corresponding srcu_read_lock_lite().}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj uhMhj uubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hj uhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjtubj)}(h**Description**h]j)}(hj1uh]h Description}(hj3uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/uubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubj)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hjGuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhjihhhNhNubh)}(hhh](h)}(h@void srcu_read_unlock_nmisafe (struct srcu_struct *ssp, int idx)h]h)}(h?void srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx)h](h)}(hvoidh]hvoid}(hjvuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjruhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjruhhhjuhMubj)}(hsrcu_read_unlock_nmisafeh]j)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjruhhhjuhMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjuhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsjusbc.srcu_read_unlock_nmisafeasbuh1hhjuubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hssph]hssp}(hj vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubj5)}(hint idxh](h)}(hinth]hint}(hj%vhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!vubh)}(h h]h }(hj3vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!vubj)}(hidxh]hidx}(hjAvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!vubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjuubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjruhhhjuhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjnuhhhjuhMubah}(h]jiuah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjkuhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjkvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjhvhhubah}(h]h ]h"]h$]h&]uh1jhjkuhhhjuhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjvjjvjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubj)}(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.)}(hjvh]hstruct srcu_struct *ssp}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjvubj")}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j()}(h ``int idx``h]j.)}(hjvh]hint idx}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjvubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubjD)}(hhh]j)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjvhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubj)}(h**Description**h]j)}(hj wh]h Description}(hj"whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubj)}(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.}(hj6whhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_up_read (C function)c.srcu_up_readhNtauh1hhjihhhNhNubh)}(hhh](h)}(h4void srcu_up_read (struct srcu_struct *ssp, int idx)h]h)}(h3void srcu_up_read(struct srcu_struct *ssp, int idx)h](h)}(hvoidh]hvoid}(hjewhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjawhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjtwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjawhhhjswhMubj)}(h srcu_up_readh]j)}(h srcu_up_readh]h srcu_up_read}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjawhhhjswhMubj/)}(h"(struct srcu_struct *ssp, int idx)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjwubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjwmodnameN classnameNjwjz)}j}]j)}jsjwsbc.srcu_up_readasbuh1hhjwubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hssph]hssp}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubj5)}(hint idxh](h)}(hinth]hint}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubh)}(h h]h }(hj"xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hidxh]hidx}(hj0xhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjawhhhjswhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj]whhhjswhMubah}(h]jXwah ](jjeh"]h$]h&]jj)jhuh1hhjswhMhjZwhhubj)}(hhh]j)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjZxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjWxhhubah}(h]h ]h"]h$]h&]uh1jhjZwhhhjswhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjrxjjrxjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj|xh]h Parameters}(hj~xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvxubj)}(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.)}(hjxh]hstruct srcu_struct *ssp}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjxubjD)}(hhh]j)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjxubj")}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j()}(h ``int idx``h]j.)}(hjxh]hint idx}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjxubjD)}(hhh]j)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjxhMhjxubeh}(h]h ]h"]h$]h&]uh1jhjvxubj)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvxubj)}(hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h]hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().}(hj%yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjvxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhjihhhNhNubh)}(hhh](h)}(h*void smp_mb__after_srcu_read_unlock (void)h]h)}(h)void smp_mb__after_srcu_read_unlock(void)h](h)}(hvoidh]hvoid}(hjTyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPyhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjcyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPyhhhjbyhMubj)}(hsmp_mb__after_srcu_read_unlockh]j)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hjuyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqyubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjPyhhhjbyhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubah}(h]h ]h"]h$]h&]j,j-uh1j.hjPyhhhjbyhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjLyhhhjbyhMubah}(h]jGyah ](jjeh"]h$]h&]jj)jhuh1hhjbyhMhjIyhhubj)}(hhh]j)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjIyhhhjbyhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjyjjyjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjyubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjyh]hvoid}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjyubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjyubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhKhjzubah}(h]h ]h"]h$]h&]uh1jChjyubeh}(h]h ]h"]h$]h&]uh1j!hjzhKhjyubah}(h]h ]h"]h$]h&]uh1jhjyubj)}(h**Description**h]j)}(hj7zh]h Description}(hj9zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5zubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhjyubj)}(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.}(hjMzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjyubj)}(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\zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhjihhhNhNubh)}(hhh](h)}(h(void smp_mb__after_srcu_read_lock (void)h]h)}(h'void smp_mb__after_srcu_read_lock(void)h](h)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjzhMubj)}(hsmp_mb__after_srcu_read_lockh]j)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjzhhhjzhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjzubah}(h]h ]h"]h$]h&]j,j-uh1j.hjzhhhjzhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjzhhhjzhMubah}(h]j~zah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj)}(hhh]j)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj {jj {jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj{h]h Parameters}(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:410: ./include/linux/srcu.hhMhj{ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj3{h]hvoid}(hj5{hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1{ubah}(h]h ]h"]h$]h&]uh1j'hY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj-{ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjL{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH{hKhjI{ubah}(h]h ]h"]h$]h&]uh1jChj-{ubeh}(h]h ]h"]h$]h&]uh1j!hjH{hKhj*{ubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(h**Description**h]j)}(hjn{h]h Description}(hjp{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhKhj{ubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj{ubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/srcu.hhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌinit_srcu_struct (C function)c.init_srcu_structhNtauh1hhjihhhNhNubh)}(hhh](h)}(h.int init_srcu_struct (struct srcu_struct *ssp)h]h)}(h-int init_srcu_struct(struct srcu_struct *ssp)h](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM.ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hM.ubj)}(hinit_srcu_structh]j)}(hinit_srcu_structh]hinit_srcu_struct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{hhhj{hM.ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj{hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{ubh)}(h h]h }(hj |hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j)}jsj{sbc.init_srcu_structasbuh1hhj{ubh)}(h h]h }(hj=|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjK|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hssph]hssp}(hjX|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj{ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj{hhhj{hM.ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj{hhhj{hM.ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hM.hj{hhubj)}(hhh]j)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM.hj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hM.ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj|jj|jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj|h]h Parameters}(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:412: ./kernel/rcu/srcutree.chM2hj|ubj)}(hhh]j")}(h5``struct srcu_struct *ssp`` structure to initialize. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hj|h]hstruct srcu_struct *ssp}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM/hj|ubjD)}(hhh]j)}(hstructure to initialize.h]hstructure to initialize.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hM/hj|ubah}(h]h ]h"]h$]h&]uh1jChj|ubeh}(h]h ]h"]h$]h&]uh1j!hj|hM/hj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubj)}(h**Description**h]j)}(hj|h]h Description}(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:412: ./kernel/rcu/srcutree.chM1hj|ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM1hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhjihhhNhNubh)}(hhh](h)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]h)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](h)}(hjoh]hbool}(hjC}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?}hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM9ubh)}(h h]h }(hjQ}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?}hhhjP}hM9ubj)}(hsrcu_readers_activeh]j)}(hsrcu_readers_activeh]hsrcu_readers_active}(hjc}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_}ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj?}hhhjP}hM9ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj}hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{}ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{}ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj}modnameN classnameNjwjz)}j}]j)}jsje}sbc.srcu_readers_activeasbuh1hhj{}ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{}ubj)}(hssph]hssp}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjw}ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj?}hhhjP}hM9ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj;}hhhjP}hM9ubah}(h]j6}ah ](jjeh"]h$]h&]jj)jhuh1hhjP}hM9hj8}hhubj)}(hhh]j)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM9hj}hhubah}(h]h ]h"]h$]h&]uh1jhj8}hhhjP}hM9ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj~jj~jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj$~h]h Parameters}(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:412: ./kernel/rcu/srcutree.chM=hj~ubj)}(hhh]j")}(h```struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjC~h]hstruct srcu_struct *ssp}(hjE~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjA~ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM;hj=~ubjD)}(hhh]j)}(hCwhich srcu_struct to count active readers (holding srcu_read_lock).h]hCwhich srcu_struct to count active readers (holding srcu_read_lock).}(hj\~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX~hM;hjY~ubah}(h]h ]h"]h$]h&]uh1jChj=~ubeh}(h]h ]h"]h$]h&]uh1j!hjX~hM;hj:~ubah}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hj~~h]h Description}(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:412: ./kernel/rcu/srcutree.chM=hj~ubj)}(hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.h]hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM=hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhjihhhNhNubh)}(hhh](h)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]h)}(h1void cleanup_srcu_struct(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj~hMubj)}(hcleanup_srcu_structh]j)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj~hhhj~hMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj~ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj~sbc.cleanup_srcu_structasbuh1hhj~ubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hssph]hssp}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj~ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj~hhhj~hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj~hhhj~hMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhj~hhubj)}(hhh]j)}(h!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubj)}(hhh]j")}(h3``struct srcu_struct *ssp`` structure to clean up. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubjD)}(hhh]j)}(hstructure to clean up.h]hstructure to clean up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_srcu (C function) c.call_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hSvoid call_srcu (struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h]h)}(hRvoid call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](h)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMqubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhMqubj)}(h call_srcuh]j)}(h call_srcuh]h call_srcu}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjaubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj@hhhjRhMqubj/)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjgsb c.call_srcuasbuh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hj̀hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hssph]hssp}(hjڀhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubj5)}(hstruct rcu_head *rhph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j c.call_srcuasbuh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjhmodnameN classnameNjwjz)}j}]j c.call_srcuasbuh1hhj_ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjyubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj@hhhjRhMqubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj<hhhjRhMqubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMqhj9hhubj)}(hhh]j)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMqubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjԁjjԁjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjށh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܁ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMuhj؁ubj)}(hhh](j")}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMrhjubjD)}(hhh]j)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMrhjubj")}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j()}(h``struct rcu_head *rhp``h]j.)}(hj6h]hstruct rcu_head *rhp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj4ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMshj0ubjD)}(hhh]j)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhMshjLubah}(h]h ]h"]h$]h&]uh1jChj0ubeh}(h]h ]h"]h$]h&]uh1j!hjKhMshjubj")}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j()}(h``rcu_callback_t func``h]j.)}(hjoh]hrcu_callback_t func}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjmubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMthjiubjD)}(hhh]j)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMthjubah}(h]h ]h"]h$]h&]uh1jChjiubeh}(h]h ]h"]h$]h&]uh1j!hjhMthjubeh}(h]h ]h"]h$]h&]uh1jhj؁ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMvhj؁ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMvhj؁ubj)}(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.}(hjςhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM~hj؁ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj؁ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h9void synchronize_srcu_expedited (struct srcu_struct *ssp)h]h)}(h8void synchronize_srcu_expedited(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubj)}(hsynchronize_srcu_expeditedh]j)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhjhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjJhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjFubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjjmodnameN classnameNjwjz)}j}]j)}jsj0sbc.synchronize_srcu_expeditedasbuh1hhjFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hssph]hssp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjBubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hj̓hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjʃhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubjD)}(hhh]j)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj#hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubj)}(hqWait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting.h]hqWait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubj)}(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().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_srcu (C function)c.synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h/void synchronize_srcu (struct srcu_struct *ssp)h]h)}(h.void synchronize_srcu(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsynchronize_srcuh]j)}(hsynchronize_srcuh]hsynchronize_srcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjڄhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjքubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjքubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.synchronize_srcuasbuh1hhjքubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjքubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjքubj)}(hssph]hssp}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjքubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj҄ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjujjujjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubjD)}(hhh]j)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubj)}(h**Description**h]j)}(hjمh]h Description}(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:412: ./kernel/rcu/srcutree.chMhjyubj)}(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 - }(hjhhhNhNubh)}(h:c:type:`ssp->sda `h]j.)}(hjh]hssp->sda}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8sspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(hXThere are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXThere are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(hOf course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure.h]hOf course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(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().}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubj)}(hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.h]hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hBunsigned long get_state_synchronize_srcu (struct srcu_struct *ssp)h]h)}(hAunsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hlongh]hlong}(hjdžhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhMubh)}(h h]h }(hjՆhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hget_state_synchronize_srcuh]j)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]j)}jsjsbc.get_state_synchronize_srcuasbuh1hhjubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hssph]hssp}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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.)}(hjLJh]hstruct srcu_struct *ssp}(hjɇhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjŇubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubjD)}(hhh]j)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܇hMhj݇ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj܇hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hCunsigned long start_poll_synchronize_srcu (struct srcu_struct *ssp)h]h)}(hBunsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)h](h)}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM ubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhM ubh)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhjUhM ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhM ubj)}(hstart_poll_synchronize_srcuh]j)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjChhhjUhM ubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.start_poll_synchronize_srcuasbuh1hhjubh)}(h h]h }(hjވhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hssph]hssp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjChhhjUhM ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj?hhhjUhM ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hj<hhubj)}(hhh]j)}(h%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj;jj;jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj?ubj)}(hhh]j")}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjdh]hstruct srcu_struct *ssp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj^ubjD)}(hhh]j)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj?ubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hPbool poll_state_synchronize_srcu (struct srcu_struct *ssp, unsigned long cookie)h]h)}(hObool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hpoll_state_synchronize_srcuh]j)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj@modnameN classnameNjwjz)}j}]j)}jsjsbc.poll_state_synchronize_srcuasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hssph]hssp}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hunsigned long cookieh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcookieh]hcookie}(hjʊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj܉hhhjhMubah}(h]j׉ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjىhhubj)}(hhh]j)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjىhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM!hjubj)}(hhh](j")}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hj5h]hstruct srcu_struct *ssp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj3ubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhj/ubjD)}(hhh]j)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jChj/ubeh}(h]h ]h"]h$]h&]uh1j!hjJhMhj,ubj")}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j()}(h``unsigned long cookie``h]j.)}(hjnh]hunsigned long cookie}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjhubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM!hjubj)}(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}(hjNjhhhNhNubah}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM!hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM&hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsrcu_barrier (C function)c.srcu_barrierhNtauh1hhjihhhNhNubh)}(hhh](h)}(h+void srcu_barrier (struct srcu_struct *ssp)h]h)}(h*void srcu_barrier(struct srcu_struct *ssp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMgubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMgubj)}(h srcu_barrierh]j)}(h srcu_barrierh]h srcu_barrier}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj;ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj,hMgubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hj[hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj{modnameN classnameNjwjz)}j}]j)}jsjAsbc.srcu_barrierasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hssph]hssp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjSubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj,hMgubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj,hMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMghjhhubj)}(hhh]j)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMghjیhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMgubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hc**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMkhjubj)}(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.)}(hjh]hstruct srcu_struct *ssp}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMmhjubjD)}(hhh]j)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhhj5ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj4hMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhjihhhNhNubh)}(hhh](h)}(h>unsigned long srcu_batches_completed (struct srcu_struct *ssp)h]h)}(h=unsigned long srcu_batches_completed(struct srcu_struct *ssp)h](h)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMubj)}(hsrcu_batches_completedh]j)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjuhhhjhMubj/)}(h(struct srcu_struct *ssp)h]j5)}(hstruct srcu_struct *ssph](j;)}(hj>h]hstruct}(hjҍhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj΍ubh)}(h h]h }(hjߍhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj΍ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.srcu_batches_completedasbuh1hhj΍ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj΍ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΍ubj)}(hssph]hssp}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj΍ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjʍubah}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(hhh]j)}(hreturn batches completed.h]hreturn batches completed.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjqubj)}(hhh]j")}(hM``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. h](j()}(h``struct srcu_struct *ssp``h]j.)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjubjD)}(hhh]j)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(h**Description**h]j)}(hjюh]h Description}(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:412: ./kernel/rcu/srcutree.chMhjqubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./kernel/rcu/srcutree.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h/void hlist_bl_del_rcu (struct hlist_bl_node *n)h]h)}(h.void hlist_bl_del_rcu(struct hlist_bl_node *n)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hKubj)}(hhlist_bl_del_rcuh]j)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj$hKubj/)}(h(struct hlist_bl_node *n)h]j5)}(hstruct hlist_bl_node *nh](j;)}(hj>h]hstruct}(hjShhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjsmodnameN classnameNjwjz)}j}]j)}jsj9sbc.hlist_bl_del_rcuasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjKubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj$hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj$hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhj hhubj)}(hhh]j)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjՏhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKhjҏhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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. **Description** 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK hjubj)}(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.)}(hjh]hstruct hlist_bl_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKhjubjD)}(hhh]j)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hKhj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjQh]hNote}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKhjubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKhjubj)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK#hjubj)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK#hjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK&hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hMvoid hlist_bl_add_head_rcu (struct hlist_bl_node *n, struct hlist_bl_head *h)h]h)}(hLvoid hlist_bl_add_head_rcu(struct hlist_bl_node *n, struct hlist_bl_head *h)h](h)}(hvoidh]hvoid}(hj̐hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjȐhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK5ubh)}(h h]h }(hjېhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȐhhhjڐhK5ubj)}(hhlist_bl_add_head_rcuh]j)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjȐhhhjڐhK5ubj/)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j5)}(hstruct hlist_bl_node *nh](j;)}(hj>h]hstruct}(hj hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj)modnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_bl_add_head_rcuasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_bl_head *hh](j;)}(hj>h]hstruct}(hjzhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(h hlist_bl_headh]h hlist_bl_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jCc.hlist_bl_add_head_rcuasbuh1hhjvubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(hjh]h*}(hjđhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hj-ah]hh}(hjёhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjȐhhhjڐhK5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjĐhhhjڐhK5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjڐhK5hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjڐhK5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK9hjubj)}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK6hj&ubjD)}(hhh]j)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhK6hjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhK6hj#ubj")}(h0``struct hlist_bl_head *h`` the list to add to. h](j()}(h``struct hlist_bl_head *h``h]j.)}(hjeh]hstruct hlist_bl_head *h}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjcubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK7hj_ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhK7hj{ubah}(h]h ]h"]h$]h&]uh1jChj_ubeh}(h]h ]h"]h$]h&]uh1j!hjzhK7hj#ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK9hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK9hjubj)}(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&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK\hjYubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hj~h]htpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKYhjxubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKYhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhKYhjuubj")}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhKZhjubjD)}(hhh]j)}(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 ](j8jqc-typeeh"]h$]h&]uh1j-hjؓubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 hlist_bl_nodeuh1hhj̓hKZhjГubh to use as a loop cursor.}(hjГhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj̓hKZhj͓ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj̓hKZhjuubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK[hj ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hK[hj)ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj(hK[hjuubj")}(h;``member`` the name of the hlist_bl_node within the struct.h](j()}(h ``member``h]j.)}(hjLh]hmember}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]uh1j'h_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK]hjFubjD)}(hhh]j)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_bl.hhK\hjbubah}(h]h ]h"]h$]h&]uh1jChjFubeh}(h]h ]h"]h$]h&]uh1j!hjahK]hjuubeh}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h list_tail_rcuh]h)}(h list_tail_rcuh]j)}(h list_tail_rcuh]j)}(hjh]h list_tail_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK.ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK.hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK.ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj֔jj֔jjjuh1hhhhjihNhNubj)}(h``list_tail_rcu (head)``h]j.)}(hjܔh]hlist_tail_rcu (head)}(hjޔhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjڔubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK0hjihhubj<8)}(h1returns the prev pointer of the head of the list h]j)}(h0returns the prev pointer of the head of the listh]h0returns the prev pointer of the head of the list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK.hjubah}(h]h ]h"]h$]h&]uh1j;8hjhK.hjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK2hj ubj)}(hhh]j")}(h``head`` the head of the list h](j()}(h``head``h]j.)}(hj0h]hhead}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK/hj*ubjD)}(hhh]j)}(hthe head of the listh]hthe head of the list}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhK/hjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhK/hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Note**h]j)}(hjkh]hNote}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK1hj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK1hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add_rcu (C function)c.list_add_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hAvoid list_add_rcu (struct list_head *new, struct list_head *head)h]h)}(h@void list_add_rcu(struct list_head *new, struct list_head *head)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKdubj)}(h list_add_rcuh]j)}(h list_add_rcuh]h list_add_rcu}(hjѕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj͕ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKdubj/)}(h/(struct list_head *new, struct list_head *head)h](j5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjӕsbc.list_add_rcuasbuh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(h list_headh]h list_head}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j'c.list_add_rcuasbuh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKdubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKdhjhhubj)}(hhh]j)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKdhjݖhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKdubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhhjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKehjubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKehj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hKehjubj")}(h5``struct list_head *head`` list head to add it after h](j()}(h``struct list_head *head``h]j.)}(hjZh]hstruct list_head *head}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKfhjTubjD)}(hhh]j)}(hlist head to add it afterh]hlist head to add it after}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKfhjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohKfhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_add_tail_rcu (C function)c.list_add_tail_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hFvoid list_add_tail_rcu (struct list_head *new, struct list_head *head)h]h)}(hEvoid list_add_tail_rcu(struct list_head *new, struct list_head *head)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKyubj)}(hlist_add_tail_rcuh]j)}(hlist_add_tail_rcuh]hlist_add_tail_rcu}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKyubj/)}(h/(struct list_head *new, struct list_head *head)h](j5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hj&hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj"ubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j)}(h list_headh]h list_head}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjFmodnameN classnameNjwjz)}j}]j)}jsj sbc.list_add_tail_rcuasbuh1hhj"ubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j`c.list_add_tail_rcuasbuh1hhjubh)}(h h]h }(hjԘhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKyubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKyubah}(h]jܗah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjޗhhubj)}(hhh]j)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjޗhhhjhKyubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj1jj1jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK}hj5ubj)}(hhh](j")}(h0``struct list_head *new`` new entry to be added h](j()}(h``struct list_head *new``h]j.)}(hjZh]hstruct list_head *new}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjXubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKzhjTubjD)}(hhh]j)}(hnew entry to be addedh]hnew entry to be added}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKzhjpubah}(h]h ]h"]h$]h&]uh1jChjTubeh}(h]h ]h"]h$]h&]uh1j!hjohKzhjQubj")}(h6``struct list_head *head`` list head to add it before h](j()}(h``struct list_head *head``h]j.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK{hjubjD)}(hhh]j)}(hlist head to add it beforeh]hlist head to add it before}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK{hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK{hjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj)}(h**Description**h]j)}(hjΙh]h Description}(hjЙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̙ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK}hj5ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhK}hj5ubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_del_rcu (C function)c.list_del_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h+void list_del_rcu (struct list_head *entry)h]h)}(h*void list_del_rcu(struct list_head *entry)h](h)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj0hKubj)}(h list_del_rcuh]j)}(h list_del_rcuh]h list_del_rcu}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj0hKubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj_hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj[ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(h list_headh]h list_head}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjEsbc.list_del_rcuasbuh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjWubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj0hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj0hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hKhjhhubj)}(hhh]j)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjߚhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX**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. **Description** 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubjD)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hj^h]hNote}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h1void list_bidir_del_rcu (struct list_head *entry)h]h)}(h0void list_bidir_del_rcu(struct list_head *entry)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hlist_bidir_del_rcuh]j)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct list_head *entry)h]j5)}(hstruct list_head *entryh](j;)}(hj>h]hstruct}(hj%hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj!ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hhh]j)}(h list_headh]h list_head}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjEmodnameN classnameNjwjz)}j}]j)}jsj sbc.list_bidir_del_rcuasbuh1hhj!ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hentryh]hentry}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jۛah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjݛhhubj)}(hhh]j)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjݛhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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(). 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. **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.h](j)}(h**Parameters**h]j)}(hjʜh]h Parameters}(hj̜hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȜubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/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.)}(hjh]hstruct list_head *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubjD)}(hhh]j)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjĜubj)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(hzIn contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().h]h|In contrast to list_del_rcu() doesn’t poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(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().}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(h**Note**h]j)}(hjxh]hNote}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjĜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h.void hlist_del_init_rcu (struct hlist_node *n)h]h)}(h-void hlist_del_init_rcu(struct hlist_node *n)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hj̝hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj˝hKubj)}(hhlist_del_init_rcuh]j)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hjޝhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjڝubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj˝hKubj/)}(h(struct hlist_node *n)h]j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_del_init_rcuasbuh1hhjubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj˝hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj˝hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˝hKhjhhubj)}(hhh]j)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj˝hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hXX**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. **Description** 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(hhh]j")}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubjD)}(hhh]j)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj֞hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҞhKhjӞubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjҞhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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().}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_replace_rcu (C function)c.list_replace_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hDvoid list_replace_rcu (struct list_head *old, struct list_head *new)h]h)}(hCvoid list_replace_rcu(struct list_head *old, struct list_head *new)h](h)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjohhhjhKubj)}(hlist_replace_rcuh]j)}(hlist_replace_rcuh]hlist_replace_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjohhhjhKubj/)}(h.(struct list_head *old, struct list_head *new)h](j5)}(hstruct list_head *oldh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjΟhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj˟ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjПmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_replace_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *newh](j;)}(hj>h]hstruct}(hj"hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjBmodnameN classnameNjwjz)}j}]jc.list_replace_rcuasbuh1hhjubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjohhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjkhhhjhKubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhhubj)}(hhh]j)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjŠh]h Parameters}(hjǠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjàubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(hhh](j")}(h5``struct list_head *old`` the element to be replaced h](j()}(h``struct list_head *old``h]j.)}(hjh]hstruct list_head *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjޠubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjޠubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj۠ubj")}(h4``struct list_head *new`` the new element to insert h](j()}(h``struct list_head *new``h]j.)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hKhj۠ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(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 }(hjnhhhNhNubj)}(h**old**h]hold}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh! entry will be replaced with the }(hjnhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubj)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should not be empty.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hxvoid __list_splice_init_rcu (struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h]h)}(hwvoid __list_splice_init_rcu(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h__list_splice_init_rcuh]j)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hj3hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj/ubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(h list_headh]h list_head}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjSmodnameN classnameNjwjz)}j}]j)}jsjsbc.__list_splice_init_rcuasbuh1hhj/ubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hstruct list_head *prevh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hjâhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjŢmodnameN classnameNjwjz)}j}]jmc.__list_splice_init_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprevh]hprev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hstruct list_head *nexth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj5modnameN classnameNjwjz)}j}]jmc.__list_splice_init_rcuasbuh1hhjubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubj5)}(hvoid (*sync)(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjƏh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hjh]h)}(hjɣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjƏh]h(}(hj֣hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj+ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj2jj2jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj6ubj)}(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&]uh1j-hjYubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjUubjD)}(hhh]j)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjqubah}(h]h ]h"]h$]h&]uh1jChjUubeh}(h]h ]h"]h$]h&]uh1j!hjphMhjRubj")}(hK``struct list_head *prev`` points to the last element of the existing list h](j()}(h``struct list_head *prev``h]j.)}(hjh]hstruct list_head *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjRubj")}(hL``struct list_head *next`` points to the first element of the existing list h](j()}(h``struct list_head *next``h]j.)}(hjͤh]hstruct list_head *next}(hjϤhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjˤubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjǤubjD)}(hhh]j)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjǤubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjRubj")}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j()}(h``void (*sync)(void)``h]j.)}(hjh]hvoid (*sync)(void)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj6ubj)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjWhhhNhNubj)}(h**prev**h]hprev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh and }(hjWhhhNhNubj)}(h**next**h]hnext}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh; can be RCU-read traversed concurrently with this function.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj6ubj)}(hNote that this function blocks.h]hNote that this function blocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj6ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h^void list_splice_init_rcu (struct list_head *list, struct list_head *head, void (*sync)(void))h]h)}(h]void list_splice_init_rcu(struct list_head *list, struct list_head *head, void (*sync)(void))h](h)}(hvoidh]hvoid}(hjȥhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĥhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM;ubh)}(h h]h }(hjץhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjĥhhhj֥hM;ubj)}(hlist_splice_init_rcuh]j)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjĥhhhj֥hM;ubj/)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h list_headh]h list_head}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj%modnameN classnameNjwjz)}j}]j)}jsjsbc.list_splice_init_rcuasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j?c.list_splice_init_rcuasbuh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hheadh]hhead}(hjΦhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hvoid (*sync)(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjƏh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hjh]h)}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjƏh]h(}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h)}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjĥhhhj֥hM;ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj֥hM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj֥hM;hjhhubj)}(hhh]j)}(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|hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM;hjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj֥hM;ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM?hjubj)}(hhh](j")}(h<``struct list_head *list`` the RCU-protected list to splice h](j()}(h``struct list_head *list``h]j.)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM=hjubjD)}(hhh]j)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj֧hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧhM=hjӧubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjҧhM=hjubj")}(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.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM>hjubjD)}(hhh]j)}(hhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hM>hjubj")}(hF``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](j()}(h``void (*sync)(void)``h]j.)}(hj/h]hvoid (*sync)(void)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM@hj)ubjD)}(hhh]j)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM?hjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_splice_tail_init_rcu (C function)c.list_splice_tail_init_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hcvoid list_splice_tail_init_rcu (struct list_head *list, struct list_head *head, void (*sync)(void))h]h)}(hbvoid list_splice_tail_init_rcu(struct list_head *list, struct list_head *head, void (*sync)(void))h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMJubj)}(hlist_splice_tail_init_rcuh]j)}(hlist_splice_tail_init_rcuh]hlist_splice_tail_init_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMJubj/)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j5)}(hstruct list_head *listh](j;)}(hj>h]hstruct}(hjƨhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj¨ubh)}(h h]h }(hjӨhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj¨ubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.list_splice_tail_init_rcuasbuh1hhj¨ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj¨ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¨ubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj¨ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct list_head *headh](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h list_headh]h list_head}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]jc.list_splice_tail_init_rcuasbuh1hhj4ubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hvoid (*sync)(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjƏh]h(}(hjĩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjѩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hjީhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjƏh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMJubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhj~hhubj)}(hhh]j)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMJhj:hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjUjjUjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMNhjYubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj|ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMLhjxubjD)}(hhh]j)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjxubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjuubj")}(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.)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMMhjubjD)}(hhh]j)}(h` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM]hjubj)}(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&]uh1j-hjҫubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMZhjΫubjD)}(hhh]j)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjh]hstruct list_head}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjhMZhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubah}(h]h ]h"]h$]h&]uh1jChjΫubeh}(h]h ]h"]h$]h&]uh1j!hjhMZhj˫ubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hj0h]htype}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM[hj*ubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhM[hjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhM[hj˫ubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjih]hmember}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM\hjcubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hM\hjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hM\hj˫ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM^hjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ list_first_or_null_rcu (C macro)c.list_first_or_null_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_first_or_null_rcuh]h)}(hlist_first_or_null_rcuh]j)}(hlist_first_or_null_rcuh]j)}(hjh]hlist_first_or_null_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jܬah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjެhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjެhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h.``list_first_or_null_rcu (ptr, type, member)``h]j.)}(hjh]h*list_first_or_null_rcu (ptr, type, member)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h"get the first element from a list h]j)}(h!get the first element from a listh]h!get the first element from a list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j;8hjGhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjNubj)}(hhh](j")}(h0``ptr`` the list head to take the element from. h](j()}(h``ptr``h]j.)}(hjsh]hptr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjmubjD)}(hhh]j)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhj­ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj߭ubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj߭ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjNubj)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjNubj)}(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().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_next_or_null_rcu (C macro)c.list_next_or_null_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_next_or_null_rcuh]h)}(hlist_next_or_null_rcuh]j)}(hlist_next_or_null_rcuh]j)}(hjnh]hlist_next_or_null_rcu}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjphhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h3``list_next_or_null_rcu (head, ptr, type, member)``h]j.)}(hjh]h/list_next_or_null_rcu (head, ptr, type, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h!get the next element from a list h]j)}(h get the next element from a listh]h get the next element from a list}(hjĮhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjҮhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj߮h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݮubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjٮubj)}(hhh](j")}(h ``head`` the head for the list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for the list.h]hthe head for the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h5``ptr`` the list head to take the next element from. h](j()}(h``ptr``h]j.)}(hj7h]hptr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj5ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj1ubjD)}(hhh]j)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jChj1ubeh}(h]h ]h"]h$]h&]uh1j!hjLhMhjubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hjph]htype}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjnubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjjubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjٮubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjٮubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjٮubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjٮubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_for_each_entry_rcuh]h)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]j)}(hj2h]hlist_for_each_entry_rcu}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj4hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj0hhhjOhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhjOhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjhjjhjjjuh1hhhhjihNhNubj)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j.)}(hjnh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hj°h]hpos}(hjİhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(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&]uh1jhjװhMhjذubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjװhMhjubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hj4h]hmember}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj2ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj.ubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jChj.ubeh}(h]h ]h"]h$]h&]uh1j!hjIhMhjubj")}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j()}(h ``cond...``h]j.)}(hjmh]hcond...}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjgubjD)}(hhh]j)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"list_for_each_entry_srcu (C macro)c.list_for_each_entry_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_for_each_entry_srcuh]h)}(hlist_for_each_entry_srcuh]j)}(hlist_for_each_entry_srcuh]j)}(hjh]hlist_for_each_entry_srcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j.)}(hj#h]h2list_for_each_entry_srcu (pos, head, member, cond)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj9ubah}(h]h ]h"]h$]h&]uh1j;8hjKhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjRubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjwh]hpos}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjqubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjqubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjnubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjɲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŲhMhjƲubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjŲhMhjnubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjnubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj7hMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubj)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjRubj)}(hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h]hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlist_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_entry_locklessh]h)}(hlist_entry_locklessh]j)}(hlist_entry_locklessh]j)}(hjh]hlist_entry_lockless}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjҳjjҳjjjuh1hhhhjihNhNubj)}(h+``list_entry_lockless (ptr, type, member)``h]j.)}(hjسh]h'list_entry_lockless (ptr, type, member)}(hjڳhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjֳubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(hget the struct for this entry h]j)}(hget the struct for this entryh]hget the struct for this entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(hX>**Parameters** ``ptr`` the :c:type:`struct list_head ` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj&ubjD)}(hhh]j)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjEhhhNhNubh)}(h&:c:type:`struct list_head `h]j.)}(hjOh]hstruct list_head}(hjQhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8 list_headuh1hhjAhMhjEubh pointer.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhj#ubj")}(h5``type`` the type of the struct this is embedded in. h](j()}(h``type``h]j.)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj#ubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjôhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(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&]uh1jhjִhMhj״ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjִhMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_for_each_entry_locklessh]h)}(hlist_for_each_entry_locklessh]j)}(hlist_for_each_entry_locklessh]j)}(hj;h]hlist_for_each_entry_lockless}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjAubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj=hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhj9hhhjXhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhj6hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6hhhjXhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjqjjqjjjuh1hhhhjihNhNubj)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j.)}(hjwh]h0list_for_each_entry_lockless (pos, head, member)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hj˵h]hpos}(hj͵hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjɵubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjŵubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjŵubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjµubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjµubj")}(h:``member`` the name of the list_struct within the struct. h](j()}(h ``member``h]j.)}(hj=h]hmember}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj;ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj7ubjD)}(hhh]j)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jChj7ubeh}(h]h ]h"]h$]h&]uh1j!hjRhMhjµubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*list_for_each_entry_continue_rcu (C macro)"c.list_for_each_entry_continue_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h list_for_each_entry_continue_rcuh]h)}(h list_for_each_entry_continue_rcuh]j)}(h list_for_each_entry_continue_rcuh]j)}(hjh]h list_for_each_entry_continue_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjԶhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԶhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjԶhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h8``list_for_each_entry_continue_rcu (pos, head, member)``h]j.)}(hjh]h4list_for_each_entry_continue_rcu (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h+continue iteration over list of given type h]j)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj ubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Continue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list. This iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.h](j)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj"ubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjGh]hpos}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjEubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjAubjD)}(hhh]j)}(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&]uh1jhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jChjAubeh}(h]h ]h"]h$]h&]uh1j!hj\hMhj>ubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj~ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjzubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjzubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj>ubj")}(h8``member`` the name of the list_head within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(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&]uh1jhjηhMhjϷubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjηhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj"ubj)}(hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive }(hj hhhNhNubj)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh in the list.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj"ubj)}(hThis iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.h]hThis iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&list_for_each_entry_from_rcu (C macro)c.list_for_each_entry_from_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hlist_for_each_entry_from_rcuh]h)}(hlist_for_each_entry_from_rcuh]j)}(hlist_for_each_entry_from_rcuh]j)}(hjTh]hlist_for_each_entry_from_rcu}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjZubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjVhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjRhhhjqhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h4``list_for_each_entry_from_rcu (pos, head, member)``h]j.)}(hjh]h0list_for_each_entry_from_rcu (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjihhubj<8)}(h'iterate over a list from current point h]j)}(h&iterate over a list from current pointh]h&iterate over a list from current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_node within the struct. **Description** Iterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list. This iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.h](j)}(h**Parameters**h]j)}(hjŸh]h Parameters}(hjǸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjøubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj޸ubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChj޸ubeh}(h]h ]h"]h$]h&]uh1j!hjhMhj۸ubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hM hj3ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj2hM hj۸ubj")}(h8``member`` the name of the list_node within the struct. h](j()}(h ``member``h]j.)}(hjVh]hmember}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjPubjD)}(hhh]j)}(h,the name of the list_node within the struct.h]h,the name of the list_node within the struct.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhM hjlubah}(h]h ]h"]h$]h&]uh1jChjPubeh}(h]h ]h"]h$]h&]uh1j!hjkhM hj۸ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjubj)}(hXIterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](hXrIterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive }(hjhhhNhNubj)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjubj)}(hThis iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.h]hThis iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.}(hjȹhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_del_rcu (C function)c.hlist_del_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void hlist_del_rcu (struct hlist_node *n)h]h)}(h(void hlist_del_rcu(struct hlist_node *n)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h hlist_del_rcuh]j)}(h hlist_del_rcuh]h hlist_del_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(struct hlist_node *n)h]j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hj4hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj0ubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjTmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_del_rcuasbuh1hhj0ubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj,ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjκjjκjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to delete from the hash list. **Note** list_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. **Description** In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().h](j)}(h**Parameters**h]j)}(hjغh]h Parameters}(hjںhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֺubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM hjҺubj)}(hhh]j")}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubah}(h]h ]h"]h$]h&]uh1jhjҺubj)}(h**Note**h]j)}(hj2h]hNote}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjҺubj)}(hlist_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hlist_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjҺubj)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM#hjҺubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM#hjҺubj)}(hXYThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().h]hXYThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM&hjҺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_replace_rcu (C function)c.hlist_replace_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hGvoid hlist_replace_rcu (struct hlist_node *old, struct hlist_node *new)h]h)}(hFvoid hlist_replace_rcu(struct hlist_node *old, struct hlist_node *new)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM5ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM5ubj)}(hhlist_replace_rcuh]j)}(hhlist_replace_rcuh]hhlist_replace_rcu}(hjλhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjʻubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhM5ubj/)}(h0(struct hlist_node *old, struct hlist_node *new)h](j5)}(hstruct hlist_node *oldh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjлsbc.hlist_replace_rcuasbuh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_node *newh](j;)}(hj>h]hstruct}(hj\hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjXubh)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj|modnameN classnameNjwjz)}j}]j$c.hlist_replace_rcuasbuh1hhjXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhM5ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj)}(hhh]j)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjݼhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM5hjڼhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hXV**Parameters** ``struct hlist_node *old`` the element to be replaced ``struct hlist_node *new`` the new element to insert **Description** The **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM9hjubj)}(hhh](j")}(h6``struct hlist_node *old`` the element to be replaced h](j()}(h``struct hlist_node *old``h]j.)}(hjh]hstruct hlist_node *old}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM6hjubjD)}(hhh]j)}(hthe element to be replacedh]hthe element to be replaced}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hM6hj4ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj3hM6hjubj")}(h5``struct hlist_node *new`` the new element to insert h](j()}(h``struct hlist_node *new``h]j.)}(hjWh]hstruct hlist_node *new}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjUubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM7hjQubjD)}(hhh]j)}(hthe new element to inserth]hthe new element to insert}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhM7hjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhM7hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM9hjubj)}(hThe **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](hThe }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! entry will be replaced with the }(hjhhhNhNubj)}(h**new**h]hnew}(hj½hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlists_swap_heads_rcu (C function)c.hlists_swap_heads_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hNvoid hlists_swap_heads_rcu (struct hlist_head *left, struct hlist_head *right)h]h)}(hMvoid hlists_swap_heads_rcu(struct hlist_head *left, struct hlist_head *right)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMKubj)}(hhlists_swap_heads_rcuh]j)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMKubj/)}(h3(struct hlist_head *left, struct hlist_head *right)h](j5)}(hstruct hlist_head *lefth](j;)}(hj>h]hstruct}(hj8hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjXmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlists_swap_heads_rcuasbuh1hhj4ubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hlefth]hleft}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubj5)}(hstruct hlist_head *righth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjȾhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjžubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjʾmodnameN classnameNjwjz)}j}]jrc.hlists_swap_heads_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrighth]hright}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj0ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMKhjhhubj)}(hhh]j)}(h'swap the lists the hlist heads point toh]h'swap the lists the hlist heads point to}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMKhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjCjjCjjjuh1hhhhjihNhNubj)}(hXZ**Parameters** ``struct hlist_head *left`` The hlist head on the left ``struct hlist_head *right`` The hlist head on the right **Description** The lists start out as [**left** ][node1 ... ] and [**right** ][node2 ... ] The lists end up as [**left** ][node2 ... ] [**right** ][node1 ... ]h](j)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjGubj)}(hhh](j")}(h7``struct hlist_head *left`` The hlist head on the left h](j()}(h``struct hlist_head *left``h]j.)}(hjlh]hstruct hlist_head *left}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMLhjfubjD)}(hhh]j)}(hThe hlist head on the lefth]hThe hlist head on the left}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhMLhjcubj")}(h9``struct hlist_head *right`` The hlist head on the right h](j()}(h``struct hlist_head *right``h]j.)}(hjh]hstruct hlist_head *right}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMMhjubjD)}(hhh]j)}(hThe hlist head on the righth]hThe hlist head on the right}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޿ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjGubj)}(hhh](j")}(hLThe lists start out as [**left** ][node1 ... ] and [**right** ][node2 ... ]h](j()}(h3The lists start out as [**left** ][node1 ... ] andh](hThe lists start out as [}(hjhhhNhNubj)}(h**left**h]hleft}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ][node1 ... ] and}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjubjD)}(hhh]j)}(h[**right** ][node2 ... ]h](h[}(hj!hhhNhNubj)}(h **right**h]hright}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh ][node2 ... ]}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMPhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMOhjubj")}(hHThe lists end up as [**left** ][node2 ... ] [**right** ][node1 ... ]h](j()}(h/The lists end up as [**left** ][node2 ... ]h](hThe lists end up as [}(hjRhhhNhNubj)}(h**left**h]hleft}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh ][node2 ... ]}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMQhjNubjD)}(hhh]j)}(h[**right** ][node1 ... ]h](h[}(hjvhhhNhNubj)}(h **right**h]hright}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh ][node1 ... ]}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMRhjsubah}(h]h ]h"]h$]h&]uh1jChjNubeh}(h]h ]h"]h$]h&]uh1j!hjrhMQhjubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_head_rcu (C function)c.hlist_add_head_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hDvoid hlist_add_head_rcu (struct hlist_node *n, struct hlist_head *h)h]h)}(hCvoid hlist_add_head_rcu(struct hlist_node *n, struct hlist_head *h)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMgubj)}(hhlist_add_head_rcuh]j)}(hhlist_add_head_rcuh]hhlist_add_head_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMgubj/)}(h,(struct hlist_node *n, struct hlist_head *h)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj&modnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_add_head_rcuasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_head *hh](j;)}(hj>h]hstruct}(hjwhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j@c.hlist_add_head_rcuasbuh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hj-ah]hh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMgubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMghjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMkhjubj)}(hhh](j")}(h>``struct hlist_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hj)h]hstruct hlist_node *n}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj'ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhhj#ubjD)}(hhh]j)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hMhhj?ubah}(h]h ]h"]h$]h&]uh1jChj#ubeh}(h]h ]h"]h$]h&]uh1j!hj>hMhhj ubj")}(h-``struct hlist_head *h`` the list to add to. h](j()}(h``struct hlist_head *h``h]j.)}(hjbh]hstruct hlist_head *h}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj`ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMihj\ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhMihjxubah}(h]h ]h"]h$]h&]uh1jChj\ubeh}(h]h ]h"]h$]h&]uh1j!hjwhMihj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMkhjubj)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMkhjubj)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hDvoid hlist_add_tail_rcu (struct hlist_node *n, struct hlist_head *h)h]h)}(hCvoid hlist_add_tail_rcu(struct hlist_node *n, struct hlist_head *h)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hhlist_add_tail_rcuh]j)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h,(struct hlist_node *n, struct hlist_head *h)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hj.hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj*ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjNmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_add_tail_rcuasbuh1hhj*ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&ubj5)}(hstruct hlist_head *hh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jhc.hlist_add_tail_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj-ah]hh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj&ubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj(jj(jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj,ubj)}(hhh](j")}(h>``struct hlist_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hjQh]hstruct hlist_node *n}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjOubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjKubjD)}(hhh]j)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jChjKubeh}(h]h ]h"]h$]h&]uh1j!hjfhMhjHubj")}(h-``struct hlist_head *h`` the list to add to. h](j()}(h``struct hlist_head *h``h]j.)}(hjh]hstruct hlist_head *h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj,ubj)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj,ubj)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hIvoid hlist_add_before_rcu (struct hlist_node *n, struct hlist_node *next)h]h)}(hHvoid hlist_add_before_rcu(struct hlist_node *n, struct hlist_node *next)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMubj)}(hhlist_add_before_rcuh]j)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj'hMubj/)}(h/(struct hlist_node *n, struct hlist_node *next)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjVhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjRubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjvmodnameN classnameNjwjz)}j}]j)}jsj<sbc.hlist_add_before_rcuasbuh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubj5)}(hstruct hlist_node *nexth](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.hlist_add_before_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjNubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj'hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjQjjQjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *next`` the existing element to add the new element before. **Description** Adds the specified element to the specified hlist before the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](j)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjUubj)}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjxubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjtubjD)}(hhh]j)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjtubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjqubj")}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j()}(h``struct hlist_node *next``h]j.)}(hjh]hstruct hlist_node *next}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h3the existing element to add the new element before.h]h3the existing element to add the new element before.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjqubeh}(h]h ]h"]h$]h&]uh1jhjUubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjUubj)}(hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.h]hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjUubj)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hIvoid hlist_add_behind_rcu (struct hlist_node *n, struct hlist_node *prev)h]h)}(hHvoid hlist_add_behind_rcu(struct hlist_node *n, struct hlist_node *prev)h](h)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhjPhMubj)}(hhlist_add_behind_rcuh]j)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj>hhhjPhMubj/)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j5)}(hstruct hlist_node *nh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjesbc.hlist_add_behind_rcuasbuh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubj5)}(hstruct hlist_node *prevh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]jc.hlist_add_behind_rcuasbuh1hhjubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprevh]hprev}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjwubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj>hhhjPhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj:hhhjPhMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhj7hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7hhhjPhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjzjjzjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj~ubj)}(hhh](j")}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j()}(h``struct hlist_node *n``h]j.)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j()}(h``struct hlist_node *prev``h]j.)}(hjh]hstruct hlist_node *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj~ubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj~ubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_rcuh]h)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]j)}(hjeh]hhlist_for_each_entry_rcu}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjghhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjchhhjhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj`hhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j.)}(hjh]h5hlist_for_each_entry_rcu (pos, head, member, cond...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1j;8hjhMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hMhjubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj.h]hhead}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj,ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj(ubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChMhjDubah}(h]h ]h"]h$]h&]uh1jChj(ubeh}(h]h ]h"]h$]h&]uh1j!hjChMhjubj")}(h9``member`` the name of the hlist_node within the struct. h](j()}(h ``member``h]j.)}(hjgh]hmember}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjeubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjaubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jChjaubeh}(h]h ]h"]h$]h&]uh1j!hj|hMhjubj")}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j()}(h ``cond...``h]j.)}(hjh]hcond...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_srcuh]h)}(hhlist_for_each_entry_srcuh]j)}(hhlist_for_each_entry_srcuh]j)}(hjh]hhlist_for_each_entry_srcu}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj7hMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjPjjPjjjuh1hhhhjihNhNubj)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j.)}(hjVh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjlubah}(h]h ]h"]h$]h&]uh1j;8hj~hMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(h9``member`` the name of the hlist_node within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj1hMhjubj")}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j()}(h``cond``h]j.)}(hjUh]hcond}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjOubjD)}(hhh]j)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubj)}(hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h]hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhjihhhNhNubh)}(hhh](h)}(h hlist_for_each_entry_rcu_notraceh]h)}(h hlist_for_each_entry_rcu_notraceh]j)}(h hlist_for_each_entry_rcu_notraceh]j)}(hjh]h hlist_for_each_entry_rcu_notrace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjihhubj<8)}(h2iterate over rcu list of given type (for tracing) h]j)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj!ubah}(h]h ]h"]h$]h&]uh1j;8hj3hMhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj:ubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hj_h]hpos}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj]ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjYubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jChjYubeh}(h]h ]h"]h$]h&]uh1j!hjthMhjVubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjVubj")}(h9``member`` the name of the hlist_node within the struct. h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhjubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubj)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj:ubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj:ubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_rcu_bhh]h)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]j)}(hjZh]hhlist_for_each_entry_rcu_bh}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj\hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM#ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjXhhhjwhM#ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjwhM#hjUhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjUhhhjwhM#ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j.)}(hjh]h/hlist_for_each_entry_rcu_bh (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM%hjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM#hjubah}(h]h ]h"]h$]h&]uh1j;8hjhM#hjihhubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM'hjubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM$hjubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM$hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM$hjubj")}(h!``head`` the head for your list. h](j()}(h``head``h]j.)}(hj#h]hhead}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj!ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM%hjubjD)}(hhh]j)}(hthe head for your list.h]hthe head for your list.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8hM%hj9ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj8hM%hjubj")}(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&]uh1j-hjZubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM&hjVubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhM&hjrubah}(h]h ]h"]h$]h&]uh1jChjVubeh}(h]h ]h"]h$]h&]uh1j!hjqhM&hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM(hjubj)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+hlist_for_each_entry_continue_rcu (C macro)#c.hlist_for_each_entry_continue_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h!hlist_for_each_entry_continue_rcuh]h)}(h!hlist_for_each_entry_continue_rcuh]j)}(h!hlist_for_each_entry_continue_rcuh]j)}(hjh]h!hlist_for_each_entry_continue_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM4ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM4hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j.)}(hjh]h/hlist_for_each_entry_continue_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM6hjihhubj<8)}(h4iterate over a hlist continuing after current point h]j)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM4hj(ubah}(h]h ]h"]h$]h&]uh1j;8hj:hM4hjihhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM8hjAubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjfh]hpos}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjdubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM5hj`ubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hM5hj|ubah}(h]h ]h"]h$]h&]uh1jChj`ubeh}(h]h ]h"]h$]h&]uh1j!hj{hM5hj]ubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM7hjubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM6hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhM7hj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(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_bhhNtauh1hhjihhhNhNubh)}(hhh](h)}(h$hlist_for_each_entry_continue_rcu_bhh]h)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(hjh]h$hlist_for_each_entry_continue_rcu_bh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM@ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhM@ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM@hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj)jj)jjjuh1hhhhjihNhNubj)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j.)}(hj/h]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMBhjihhubj<8)}(h4iterate over a hlist continuing after current point h]j)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhM@hjEubah}(h]h ]h"]h$]h&]uh1j;8hjWhM@hjihhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMDhj^ubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMAhj}ubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMAhjubah}(h]h ]h"]h$]h&]uh1jChj}ubeh}(h]h ]h"]h$]h&]uh1j!hjhMAhjzubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMChjubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMBhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMChjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'hlist_for_each_entry_from_rcu (C macro)c.hlist_for_each_entry_from_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_for_each_entry_from_rcuh]h)}(hhlist_for_each_entry_from_rcuh]j)}(hhlist_for_each_entry_from_rcuh]j)}(hjh]hhlist_for_each_entry_from_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMLubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj-hMLubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMLhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj-hMLubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjFjjFjjjuh1hhhhjihNhNubj)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j.)}(hjLh]h+hlist_for_each_entry_from_rcu (pos, member)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjJubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMNhjihhubj<8)}(h3iterate over a hlist continuing from current point h]j)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMLhjbubah}(h]h ]h"]h$]h&]uh1j;8hjthMLhjihhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMPhj{ubj)}(hhh](j")}(h,``pos`` the type * to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMMhjubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMMhjubj")}(h8``member`` the name of the hlist_node within the struct.h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMOhjubjD)}(hhh]j)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rculist.hhMNhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMOhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_nulls_del_init_rcu (C function)c.hlist_nulls_del_init_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h:void hlist_nulls_del_init_rcu (struct hlist_nulls_node *n)h]h)}(h9void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhKubj)}(hhlist_nulls_del_init_rcuh]j)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhKubj/)}(h(struct hlist_nulls_node *n)h]j5)}(hstruct hlist_nulls_node *nh](j;)}(hj>h]hstruct}(hjphhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjVsbc.hlist_nulls_del_init_rcuasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubah}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhKhj(hhubj)}(hhh]j)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(hXw**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. **Description** 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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$s]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]j")}(hI``struct hlist_nulls_node *n`` the element to delete from the hash list. h](j()}(h``struct hlist_nulls_node *n``h]j.)}(hj3h]hstruct hlist_nulls_node *n}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj-ubjD)}(hhh]j)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhKhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Note**h]j)}(hjnh]hNote}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.h]hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_nulls_first_rcu (C macro)c.hlist_nulls_first_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_nulls_first_rcuh]h)}(hhlist_nulls_first_rcuh]j)}(hhlist_nulls_first_rcuh]j)}(hjh]hhlist_nulls_first_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK*ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK*hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK*ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h ``hlist_nulls_first_rcu (head)``h]j.)}(hjh]hhlist_nulls_first_rcu (head)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK,hjihhubj<8)}(h,returns the first element of the hash list. h]j)}(h+returns the first element of the hash list.h]h+returns the first element of the hash list.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK*hj5ubah}(h]h ]h"]h$]h&]uh1j;8hjGhK*hjihhubj)}(h0**Parameters** ``head`` the head of the list.h](j)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK.hjNubj)}(hhh]j")}(h``head`` the head of the list.h](j()}(h``head``h]j.)}(hjsh]hhead}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjqubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK0hjmubjD)}(hhh]j)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK+hjubah}(h]h ]h"]h$]h&]uh1jChjmubeh}(h]h ]h"]h$]h&]uh1j!hjhK0hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌhlist_nulls_next_rcu (C macro)c.hlist_nulls_next_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_nulls_next_rcuh]h)}(hhlist_nulls_next_rcuh]j)}(hhlist_nulls_next_rcuh]j)}(hjh]hhlist_nulls_next_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK1hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK1ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h``hlist_nulls_next_rcu (node)``h]j.)}(hjh]hhlist_nulls_next_rcu (node)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK3hjihhubj<8)}(h0returns the element of the list after **node**. h]j)}(h/returns the element of the list after **node**.h](h&returns the element of the list after }(hjhhhNhNubj)}(h**node**h]hnode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK1hjubah}(h]h ]h"]h$]h&]uh1j;8hj=hK1hjihhubj)}(h/**Parameters** ``node`` element of the list.h](j)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK5hjDubj)}(hhh]j")}(h``node`` element of the list.h](j()}(h``node``h]j.)}(hjih]hnode}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK7hjcubjD)}(hhh]j)}(helement of the list.h]helement of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK2hjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hK7hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ hlist_nulls_del_rcu (C function)c.hlist_nulls_del_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(h5void hlist_nulls_del_rcu (struct hlist_nulls_node *n)h]h)}(h4void hlist_nulls_del_rcu(struct hlist_nulls_node *n)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK8ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK8ubj)}(hhlist_nulls_del_rcuh]j)}(hhlist_nulls_del_rcuh]hhlist_nulls_del_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK8ubj/)}(h(struct hlist_nulls_node *n)h]j5)}(hstruct hlist_nulls_node *nh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_nulls_del_rcuasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK8ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK8hjhhubj)}(hhh]j)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhK8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK8ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. **Description** In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKh]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_nulls_add_head_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_nulls_head *hh](j;)}(hj>h]hstruct}(hj'hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj#ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjGmodnameN classnameNjwjz)}j}]jc.hlist_nulls_add_head_rcuasbuh1hhj#ubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hj-ah]hh}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjuhhhjhKQubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjqhhhjhKQubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhKQhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjhKQubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKUhjubj)}(hhh](j")}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_nulls_node *n``h]j.)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKRhjubjD)}(hhh]j)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKRhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKRhjubj")}(h3``struct hlist_nulls_head *h`` the list to add to. h](j()}(h``struct hlist_nulls_head *h``h]j.)}(hjh]hstruct hlist_nulls_head *h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKShj ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'hKShj(ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj'hKShjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKUhjubj)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKUhjubj)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hVvoid hlist_nulls_add_tail_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]h)}(hUvoid hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKpubj)}(hhlist_nulls_add_tail_rcuh]j)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKpubj/)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j5)}(hstruct hlist_nulls_node *nh](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.hlist_nulls_add_tail_rcuasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hn}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hstruct hlist_nulls_head *hh](j;)}(hj>h]hstruct}(hjOhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjKubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjomodnameN classnameNjwjz)}j}]jc.hlist_nulls_add_tail_rcuasbuh1hhjKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hj-ah]hh}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKphjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKthjubj)}(hhh](j")}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j()}(h``struct hlist_nulls_node *n``h]j.)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKqhjubjD)}(hhh]j)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKqhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKqhjubj")}(h3``struct hlist_nulls_head *h`` the list to add to. h](j()}(h``struct hlist_nulls_head *h``h]j.)}(hj:h]hstruct hlist_nulls_head *h}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj8ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKrhj4ubjD)}(hhh]j)}(hthe list to add to.h]hthe list to add to.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOhKrhjPubah}(h]h ]h"]h$]h&]uh1jChj4ubeh}(h]h ]h"]h$]h&]uh1j!hjOhKrhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKthjubj)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKthjubj)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_nulls_for_each_entry_rcuh]h)}(hhlist_nulls_for_each_entry_rcuh]j)}(hhlist_nulls_for_each_entry_rcuh]j)}(hjh]hhlist_nulls_for_each_entry_rcu}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j.)}(hjh]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjihhubj<8)}(h$iterate over rcu list of given type h]j)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hj'hKhjihhubj)}(hX**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. ``head`` the head of the list. ``member`` the name of the hlist_nulls_node within the struct. **Description** The barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj.ubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hjSh]htpos}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjMubjD)}(hhh]j)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhKhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhKhjJubj")}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubjD)}(hhh]j)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hjhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j.)}(hjh]hstruct hlist_nulls_node}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8hlist_nulls_nodeuh1hhjhKhjubh to use as a loop cursor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjJubj")}(h``head`` the head of the list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubjD)}(hhh]j)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjJubj")}(h?``member`` the name of the hlist_nulls_node within the struct. h](j()}(h ``member``h]j.)}(hj!h]hmember}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubjD)}(hhh]j)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj6hKhjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubj)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj.ubj)}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhjihhhNhNubh)}(hhh](h)}(hhlist_nulls_for_each_entry_safeh]h)}(hhlist_nulls_for_each_entry_safeh]j)}(hhlist_nulls_for_each_entry_safeh]j)}(hjh]hhlist_nulls_for_each_entry_safe}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqmacroeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(h=``hlist_nulls_for_each_entry_safe (tpos, pos, head, member)``h]j.)}(hjh]h9hlist_nulls_for_each_entry_safe (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjihhubj<8)}(hCiterate over list of given type safe against removal of list entry h]j)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1j;8hjhKhjihhubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubj)}(hhh](j")}(h-``tpos`` the type * to use as a loop cursor. h](j()}(h``tpos``h]j.)}(hj+h]htpos}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj)ubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj%ubjD)}(hhh]j)}(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&]uh1jhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jChj%ubeh}(h]h ]h"]h$]h&]uh1j!hj@hKhj"ubj")}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j()}(h``pos``h]j.)}(hjdh]hpos}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjbubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhj^ubjD)}(hhh]j)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hj}hhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j.)}(hjh]hstruct hlist_nulls_node}(hjhhhNhNubah}(h]h ](j8jqc-typeeh"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]refdocj8 refdomainjqreftypetype refexplicitrefwarnjwj8j8hlist_nulls_nodeuh1hhjyhKhj}ubh to use as a loop cursor.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jChj^ubeh}(h]h ]h"]h$]h&]uh1j!hjyhKhj"ubj")}(h``head`` the head of the list. h](j()}(h``head``h]j.)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubjD)}(hhh]j)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj"ubj")}(h>``member`` the name of the hlist_nulls_node within the struct.h](j()}(h ``member``h]j.)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubjD)}(hhh]j)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhj"ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhjihhhNhNubh)}(hhh](h)}(h,bool rcu_sync_is_idle (struct rcu_sync *rsp)h]h)}(h+bool rcu_sync_is_idle(struct rcu_sync *rsp)h](h)}(hjoh]hbool}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhj`hKubj)}(hrcu_sync_is_idleh]j)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjOhhhj`hKubj/)}(h(struct rcu_sync *rsp)h]j5)}(hstruct rcu_sync *rsph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjusbc.rcu_sync_is_idleasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjOhhhj`hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjKhhhj`hKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhj`hKhjHhhubj)}(hhh]j)}(h-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhj`hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj*jj*jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKhj.ubj)}(hhh]j")}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j()}(h``struct rcu_sync *rsp``h]j.)}(hjSh]hstruct rcu_sync *rsp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjQubah}(h]h ]h"]h$]h&]uh1j'h]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKhjMubjD)}(hhh]j)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhKhjiubah}(h]h ]h"]h$]h&]uh1jChjMubeh}(h]h ]h"]h$]h&]uh1j!hjhhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKhj.ubj)}(hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h]hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./include/linux/rcu_sync.hhKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_init (C function)c.rcu_sync_inithNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void rcu_sync_init (struct rcu_sync *rsp)h]h)}(h(void rcu_sync_init(struct rcu_sync *rsp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h rcu_sync_inith]j)}(h rcu_sync_inith]h rcu_sync_init}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct rcu_sync *rsp)h]j5)}(hstruct rcu_sync *rsph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj0modnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_initasbuh1hhj ubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrsph]hrsp}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h Initialize an rcu_sync structureh]h Initialize an rcu_sync structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hZ**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubj)}(hhh]j")}(hH``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](j()}(h``struct rcu_sync *rsp``h]j.)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubjD)}(hhh]j)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_func (C function)c.rcu_sync_funchNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void rcu_sync_func (struct rcu_head *rhp)h]h)}(h(void rcu_sync_func(struct rcu_head *rhp)h](h)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK#ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj<hK#ubj)}(h rcu_sync_funch]j)}(h rcu_sync_funch]h rcu_sync_func}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjKubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj*hhhj<hK#ubj/)}(h(struct rcu_head *rhp)h]j5)}(hstruct rcu_head *rhph](j;)}(hj>h]hstruct}(hjkhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjgubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjQsbc.rcu_sync_funcasbuh1hhjgubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjcubah}(h]h ]h"]h$]h&]j,j-uh1j.hj*hhhj<hK#ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj&hhhj<hK#ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj<hK#hj#hhubj)}(hhh]j)}(h4Callback function managing reader access to fastpathh]h4Callback function managing reader access to fastpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK#hjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hK#ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK'hj ubj)}(hhh]j")}(h^``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization h](j()}(h``struct rcu_head *rhp``h]j.)}(hj/h]hstruct rcu_head *rhp}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj-ubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK$hj)ubjD)}(hhh]j)}(hDPointer to rcu_head in rcu_sync structure to use for synchronizationh]hDPointer to rcu_head in rcu_sync structure to use for synchronization}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhK$hjEubah}(h]h ]h"]h$]h&]uh1jChj)ubeh}(h]h ]h"]h$]h&]uh1j!hjDhK$hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK&hj ubj)}(hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.h]hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK&hj ubj)}(haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.h]haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK*hj ubj)}(hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.h]hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK-hj ubj)}(hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h]hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK1hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhjihhhNhNubh)}(hhh](h)}(h*void rcu_sync_enter (struct rcu_sync *rsp)h]h)}(h)void rcu_sync_enter(struct rcu_sync *rsp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK[ubj)}(hrcu_sync_enterh]j)}(hrcu_sync_enterh]hrcu_sync_enter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK[ubj/)}(h(struct rcu_sync *rsp)h]j5)}(hstruct rcu_sync *rsph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj9modnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_enterasbuh1hhjubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK[ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK[hjhhubj)}(hhh]j)}(hForce readers onto slowpathh]hForce readers onto slowpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK[hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK[ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK_hjubj)}(hhh]j")}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j()}(h``struct rcu_sync *rsp``h]j.)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK\hjubjD)}(hhh]j)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK\hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK^hjubj)}(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.Wh]hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chK^hjubj)}(hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h]hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void rcu_sync_exit (struct rcu_sync *rsp)h]h)}(h(void rcu_sync_exit(struct rcu_sync *rsp)h](h)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhKubj)}(h rcu_sync_exith]j)}(h rcu_sync_exith]h rcu_sync_exit}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhhjzhKubj/)}(h(struct rcu_sync *rsp)h]j5)}(hstruct rcu_sync *rsph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_exitasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhhjzhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjdhhhjzhKubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjahhubj)}(hhh]j)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhj)hhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjDjjDjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjHubj)}(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.)}(hjmh]hstruct rcu_sync *rsp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjkubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjgubjD)}(hhh]j)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjgubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjHubj)}(hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h]hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhjihhhNhNubh)}(hhh](h)}(h)void rcu_sync_dtor (struct rcu_sync *rsp)h]h)}(h(void rcu_sync_dtor(struct rcu_sync *rsp)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h rcu_sync_dtorh]j)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(struct rcu_sync *rsp)h]j5)}(hstruct rcu_sync *rsph](j;)}(hj>h]hstruct}(hj*hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj&ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjJmodnameN classnameNjwjz)}j}]j)}jsjsbc.rcu_sync_dtorasbuh1hhj&ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj"ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hClean up an rcu_sync structureh]hClean up an rcu_sync structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hY**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubj)}(hhh]j")}(hG``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](j()}(h``struct rcu_sync *rsp``h]j.)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubjD)}(hhh]j)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhjihhhNhNubh)}(hhh](h)}(hrcu_tasks_percpuh]h)}(hstruct rcu_tasks_percpuh](j;)}(hj>h]hstruct}(hjHhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjDhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjUhKubj)}(hrcu_tasks_percpuh]j)}(hjBh]hrcu_tasks_percpu}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjDhhhjUhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj@hhhjUhKubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjUhKhj=hhubj)}(hhh]j)}(h?Per-CPU component of definition for a Tasks-RCU-like mechanism.h]h?Per-CPU component of definition for a Tasks-RCU-like mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjUhKubeh}(h]h ](jqstructeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX **Definition**:: struct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t __private lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; }; **Members** ``cblist`` Callback list. ``lock`` Lock protecting per-CPU callback list. ``rtp_jiffies`` Jiffies counter value for statistics. ``rtp_n_lock_retries`` Rough lock-contention statistic. ``lazy_timer`` Timer to unlazify callbacks. ``urgent_gp`` Number of additional non-lazy grace periods. ``rtp_work`` Work queue for invoking callbacks. ``rtp_irq_work`` IRQ work queue for deferred wakeups. ``barrier_q_head`` RCU callback for barrier operation. ``rtp_blkd_tasks`` List of tasks blocked as readers. ``rtp_exit_list`` List of tasks in the latter portion of do_exit(). ``cpu`` CPU number corresponding to this entry. ``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. ``rtpp`` Pointer to the rcu_tasks structure.h](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjo)}(hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t __private lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };h]hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t __private lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubj)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK/hjubj)}(hhh](j")}(h``cblist`` Callback list. h](j()}(h ``cblist``h]j.)}(hjh]hcblist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(hCallback list.h]hCallback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKhjubj")}(h0``lock`` Lock protecting per-CPU callback list. h](j()}(h``lock``h]j.)}(hj0h]hlock}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj.ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhj*ubjD)}(hhh]j)}(h&Lock protecting per-CPU callback list.h]h&Lock protecting per-CPU callback list.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jChj*ubeh}(h]h ]h"]h$]h&]uh1j!hjEhKhjubj")}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j()}(h``rtp_jiffies``h]j.)}(hjih]h rtp_jiffies}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjgubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjcubjD)}(hhh]j)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hKhjubah}(h]h ]h"]h$]h&]uh1jChjcubeh}(h]h ]h"]h$]h&]uh1j!hj~hKhjubj")}(h8``rtp_n_lock_retries`` Rough lock-contention statistic. h](j()}(h``rtp_n_lock_retries``h]j.)}(hjh]hrtp_n_lock_retries}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(h Rough lock-contention statistic.h]h Rough lock-contention statistic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h,``lazy_timer`` Timer to unlazify callbacks. h](j()}(h``lazy_timer``h]j.)}(hjh]h lazy_timer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(hTimer to unlazify callbacks.h]hTimer to unlazify callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubj")}(h;``urgent_gp`` Number of additional non-lazy grace periods. h](j()}(h ``urgent_gp``h]j.)}(hjh]h urgent_gp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(h,Number of additional non-lazy grace periods.h]h,Number of additional non-lazy grace periods.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj)hKhjubj")}(h0``rtp_work`` Work queue for invoking callbacks. h](j()}(h ``rtp_work``h]j.)}(hjMh]hrtp_work}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjKubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK hjGubjD)}(hhh]j)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbhK hjcubah}(h]h ]h"]h$]h&]uh1jChjGubeh}(h]h ]h"]h$]h&]uh1j!hjbhK hjubj")}(h6``rtp_irq_work`` IRQ work queue for deferred wakeups. h](j()}(h``rtp_irq_work``h]j.)}(hjh]h rtp_irq_work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK!hjubjD)}(hhh]j)}(h$IRQ work queue for deferred wakeups.h]h$IRQ work queue for deferred wakeups.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK!hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK!hjubj")}(h7``barrier_q_head`` RCU callback for barrier operation. h](j()}(h``barrier_q_head``h]j.)}(hjh]hbarrier_q_head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK"hjubjD)}(hhh]j)}(h#RCU callback for barrier operation.h]h#RCU callback for barrier operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK"hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK"hjubj")}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j()}(h``rtp_blkd_tasks``h]j.)}(hjh]hrtp_blkd_tasks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK#hjubjD)}(hhh]j)}(h!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hK#hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hK#hjubj")}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j()}(h``rtp_exit_list``h]j.)}(hj1h]h rtp_exit_list}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK$hj+ubjD)}(hhh]j)}(h1List of tasks in the latter portion of do_exit().h]h1List of tasks in the latter portion of do_exit().}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhK$hjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhK$hjubj")}(h0``cpu`` CPU number corresponding to this entry. h](j()}(h``cpu``h]j.)}(hjjh]hcpu}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK%hjdubjD)}(hhh]j)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK%hjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhK%hjubj")}(hG``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. h](j()}(h ``index``h]j.)}(hjh]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK&hjubjD)}(hhh]j)}(hh]hstruct}(hj6hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj2hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK-ubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhjChK-ubj)}(h rcu_tasksh]j)}(hj0h]h rcu_tasks}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj2hhhjChK-ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj.hhhjChK-ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjChK-hj+hhubj)}(hhh]j)}(h*Definition for a Tasks-RCU-like mechanism.h]h*Definition for a Tasks-RCU-like mechanism.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK:hjuhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjChK-ubeh}(h]h ](jqstructeh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(hX **Definition**:: struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; unsigned long n_ipis_fails; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; }; **Members** ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. ``cbs_gbl_lock`` Lock protecting callback list. ``tasks_gp_mutex`` Mutex protecting grace period, needed during mid-boot dead zone. ``gp_state`` Grace period's most recent state transition (debugging). ``gp_sleep`` Per-grace-period sleep to prevent CPU-bound looping. ``init_fract`` Initial backoff sleep interval. ``gp_jiffies`` Time of last **gp_state** transition. ``gp_start`` Most recent grace-period start in jiffies. ``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. ``n_ipis`` Number of IPIs sent to encourage grace periods to end. ``n_ipis_fails`` Number of IPI-send failures. ``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. ``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. ``gp_func`` This flavor's grace-period-wait function. ``pregp_func`` This flavor's pre-grace-period function (optional). ``pertask_func`` This flavor's per-task scan function (optional). ``postscan_func`` This flavor's post-task scan function (optional). ``holdouts_func`` This flavor's holdout-list scan function (optional). ``postgp_func`` This flavor's post-grace-period function (optional). ``call_func`` This flavor's call_rcu()-equivalent function. ``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). ``rtpcpu`` This flavor's rcu_tasks_percpu structure. ``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. ``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. ``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. ``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. ``barrier_q_mutex`` Serialize barrier operations. ``barrier_q_count`` Number of queues being waited on. ``barrier_q_completion`` Barrier wait/wakeup mechanism. ``barrier_q_seq`` Sequence number for barrier operations. ``barrier_q_start`` Most recent barrier start in jiffies. ``name`` This flavor's textual name. ``kname`` This flavor's kthread name.h](j)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK>hjubjo)}(hX-struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; unsigned long n_ipis_fails; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; };h]hX-struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; unsigned long n_ipis_fails; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; };}hjsbah}(h]h ]h"]h$]h&]j,j-uh1jnhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK@hjubj)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKehjubj)}(hhh](j")}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j()}(h ``cbs_wait``h]j.)}(hjh]hcbs_wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjQubjD)}(hhh]j)}(h@Mutex protecting grace period, needed during mid-boot dead zone.h]h@Mutex protecting grace period, needed during mid-boot dead zone.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhK>hjmubah}(h]h ]h"]h$]h&]uh1jChjQubeh}(h]h ]h"]h$]h&]uh1j!hjlhK>hjubj")}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j()}(h ``gp_state``h]j.)}(hjh]hgp_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK@hjubjD)}(hhh]j)}(h8Grace period's most recent state transition (debugging).h]h:Grace period’s most recent state transition (debugging).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK@hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK@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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKAhjubjD)}(hhh]j)}(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&]uh1jhjhKAhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKAhjubj")}(h/``init_fract`` Initial backoff sleep interval. h](j()}(h``init_fract``h]j.)}(hjh]h init_fract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKBhjubjD)}(hhh]j)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKBhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKBhjubj")}(h5``gp_jiffies`` Time of last **gp_state** transition. h](j()}(h``gp_jiffies``h]j.)}(hj;h]h gp_jiffies}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj9ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKChj5ubjD)}(hhh]j)}(h%Time of last **gp_state** transition.h](h Time of last }(hjThhhNhNubj)}(h **gp_state**h]hgp_state}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh transition.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjPhKChjQubah}(h]h ]h"]h$]h&]uh1jChj5ubeh}(h]h ]h"]h$]h&]uh1j!hjPhKChjubj")}(h8``gp_start`` Most recent grace-period start in jiffies. h](j()}(h ``gp_start``h]j.)}(hjh]hgp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKDhjubjD)}(hhh]j)}(h*Most recent grace-period start in jiffies.h]h*Most recent grace-period start in jiffies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKDhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKDhjubj")}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j()}(h``tasks_gp_seq``h]j.)}(hjh]h tasks_gp_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKEhjubjD)}(hhh]j)}(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&]uh1jhjhKEhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKEhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKFhjubjD)}(hhh]j)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKFhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj hKFhjubj")}(h.``n_ipis_fails`` Number of IPI-send failures. h](j()}(h``n_ipis_fails``h]j.)}(hj1h]h n_ipis_fails}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj/ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKGhj+ubjD)}(hhh]j)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFhKGhjGubah}(h]h ]h"]h$]h&]uh1jChj+ubeh}(h]h ]h"]h$]h&]uh1j!hjFhKGhjubj")}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j()}(h``kthread_ptr``h]j.)}(hjjh]h kthread_ptr}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjhubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKHhjdubjD)}(hhh]j)}(h7This flavor's grace-period/callback-invocation kthread.h]h9This flavor’s grace-period/callback-invocation kthread.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKHhjubah}(h]h ]h"]h$]h&]uh1jChjdubeh}(h]h ]h"]h$]h&]uh1j!hjhKHhjubj")}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j()}(h``lazy_jiffies``h]j.)}(hjh]h lazy_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKIhjubjD)}(hhh]j)}(h0Number of jiffies to allow callbacks to be lazy.h]h0Number of jiffies to allow callbacks to be lazy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKIhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKIhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK?hjubjD)}(hhh]j)}(h)This flavor's grace-period-wait function.h]h+This flavor’s grace-period-wait function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK?hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK?hjubj")}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j()}(h``pregp_func``h]j.)}(hjh]h pregp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKJhjubjD)}(hhh]j)}(h3This flavor's pre-grace-period function (optional).h]h5This flavor’s pre-grace-period function (optional).}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*hKJhj+ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj*hKJhjubj")}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j()}(h``pertask_func``h]j.)}(hjNh]h pertask_func}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjLubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKKhjHubjD)}(hhh]j)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchKKhjdubah}(h]h ]h"]h$]h&]uh1jChjHubeh}(h]h ]h"]h$]h&]uh1j!hjchKKhjubj")}(hD``postscan_func`` This flavor's post-task scan function (optional). h](j()}(h``postscan_func``h]j.)}(hjh]h postscan_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKLhjubjD)}(hhh]j)}(h1This flavor's post-task scan function (optional).h]h3This flavor’s post-task scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKLhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKLhjubj")}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j()}(h``holdouts_func``h]j.)}(hjh]h holdouts_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKMhjubjD)}(hhh]j)}(h4This flavor's holdout-list scan function (optional).h]h6This flavor’s holdout-list scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKNhjubjD)}(hhh]j)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKNhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKNhjubj")}(h<``call_func`` This flavor's call_rcu()-equivalent function. h](j()}(h ``call_func``h]j.)}(hj2h]h call_func}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj0ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKOhj,ubjD)}(hhh]j)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhKOhjHubah}(h]h ]h"]h$]h&]uh1jChj,ubeh}(h]h ]h"]h$]h&]uh1j!hjGhKOhjubj")}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j()}(h``wait_state``h]j.)}(hjkh]h wait_state}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjiubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKPhjeubjD)}(hhh]j)}(hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).h]hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKPhjubah}(h]h ]h"]h$]h&]uh1jChjeubeh}(h]h ]h"]h$]h&]uh1j!hjhKPhjubj")}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j()}(h ``rtpcpu``h]j.)}(hjh]hrtpcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKQhjubjD)}(hhh]j)}(h)This flavor's rcu_tasks_percpu structure.h]h+This flavor’s rcu_tasks_percpu structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKQhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKQhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKRhjubjD)}(hhh]j)}(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&]uh1jhjhKRhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKRhjubj")}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j()}(h``percpu_enqueue_shift``h]j.)}(hjh]hpercpu_enqueue_shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKShjubjD)}(hhh]j)}(h5Shift down CPU ID this much when enqueuing callbacks.h]h5Shift down CPU ID this much when enqueuing callbacks.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hKShj,ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj+hKShjubj")}(hO``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. h](j()}(h``percpu_enqueue_lim``h]j.)}(hjOh]hpercpu_enqueue_lim}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjMubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKThjIubjD)}(hhh]j)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhKThjeubah}(h]h ]h"]h$]h&]uh1jChjIubeh}(h]h ]h"]h$]h&]uh1j!hjdhKThjubj")}(hO``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. h](j()}(h``percpu_dequeue_lim``h]j.)}(hjh]hpercpu_dequeue_lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKUhjubjD)}(hhh]j)}(h7Number of per-CPU callback queues in use for dequeuing.h]h7Number of per-CPU callback queues in use for dequeuing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKUhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKUhjubj")}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j()}(h``percpu_dequeue_gpseq``h]j.)}(hjh]hpercpu_dequeue_gpseq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKVhjubjD)}(hhh]j)}(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&]uh1jhjhKVhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKVhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKWhjubjD)}(hhh]j)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKWhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKWhjubj")}(h6``barrier_q_count`` Number of queues being waited on. h](j()}(h``barrier_q_count``h]j.)}(hj3h]hbarrier_q_count}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj1ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKXhj-ubjD)}(hhh]j)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHhKXhjIubah}(h]h ]h"]h$]h&]uh1jChj-ubeh}(h]h ]h"]h$]h&]uh1j!hjHhKXhjubj")}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j()}(h``barrier_q_completion``h]j.)}(hjlh]hbarrier_q_completion}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKYhjfubjD)}(hhh]j)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKYhjubah}(h]h ]h"]h$]h&]uh1jChjfubeh}(h]h ]h"]h$]h&]uh1j!hjhKYhjubj")}(h:``barrier_q_seq`` Sequence number for barrier operations. h](j()}(h``barrier_q_seq``h]j.)}(hjh]h barrier_q_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKZhjubjD)}(hhh]j)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKZhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKZhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK[hjubjD)}(hhh]j)}(h%Most recent barrier start in jiffies.h]h%Most recent barrier start in jiffies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK[hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK[hjubj")}(h%``name`` This flavor's textual name. h](j()}(h``name``h]j.)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK\hjubjD)}(hhh]j)}(hThis flavor's textual name.h]hThis flavor’s textual name.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hK\hj-ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj,hK\hjubj")}(h%``kname`` This flavor's kthread name.h](j()}(h ``kname``h]j.)}(hjPh]hkname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjNubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK\hjJubjD)}(hhh]j)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhK]hjfubah}(h]h ]h"]h$]h&]uh1jChjJubeh}(h]h ]h"]h$]h&]uh1j!hjehK\hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcall_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhjihhhNhNubh)}(hhh](h)}(h?void call_rcu_tasks (struct rcu_head *rhp, rcu_callback_t func)h]h)}(h>void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hcall_rcu_tasksh]j)}(hcall_rcu_tasksh]hcall_rcu_tasks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j5)}(hstruct rcu_head *rhph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.call_rcu_tasksasbuh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj^modnameN classnameNjwjz)}j}]j!c.call_rcu_tasksasbuh1hhjUubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h3Queue an RCU for invocation task-based grace periodh]h3Queue an RCU for invocation task-based grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhj ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hj*ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj&ubjD)}(hhh]j)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jChj&ubeh}(h]h ]h"]h$]h&]uh1j!hjAhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(hXgThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing RCU read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization.h]hXgThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing RCU read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhjihhhNhNubh)}(hhh](h)}(h!void synchronize_rcu_tasks (void)h]h)}(h void synchronize_rcu_tasks(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsynchronize_rcu_tasksh]j)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj:jj:jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj>ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjch]hvoid}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjaubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhj]ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhKhjyubah}(h]h ]h"]h$]h&]uh1jChj]ubeh}(h]h ]h"]h$]h&]uh1j!hjxhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhj>ubj)}(hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj>ubj)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj>ubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_barrier_tasks (void)h]h)}(hvoid rcu_barrier_tasks(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrcu_barrier_tasksh]j)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj6ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhjihhhNhNubh)}(hhh](h)}(h&void synchronize_rcu_tasks_rude (void)h]h)}(h%void synchronize_rcu_tasks_rude(void)h](h)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMpubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhhj7hMpubj)}(hsynchronize_rcu_tasks_rudeh]j)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj%hhhj7hMpubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj^ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj%hhhj7hMpubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj!hhhj7hMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMphjhhubj)}(hhh]j)}(h&wait for a rude rcu-tasks grace periodh]h&wait for a rude rcu-tasks grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMphjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMpubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMthjubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMqhjubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMxhjubj)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!call_rcu_tasks_trace (C function)c.call_rcu_tasks_tracehNtauh1hhjihhhNhNubh)}(hhh](h)}(hEvoid call_rcu_tasks_trace (struct rcu_head *rhp, rcu_callback_t func)h]h)}(hDvoid call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func)h](h)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkhhhj}hMubj)}(hcall_rcu_tasks_traceh]j)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjkhhhj}hMubj/)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j5)}(hstruct rcu_head *rhph](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.call_rcu_tasks_traceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubj5)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj#modnameN classnameNjwjz)}j}]jc.call_rcu_tasks_traceasbuh1hhjubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfunch]hfunc}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubeh}(h]h ]h"]h$]h&]j,j-uh1j.hjkhhhj}hMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjdhhubj)}(hhh]j)}(h.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjthhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubj")}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubjD)}(hhh]j)}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj,h]h Description}(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:424: ./kernel/rcu/tasks.hhMhjubj)}(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().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(synchronize_rcu_tasks_trace (C function)c.synchronize_rcu_tasks_tracehNtauh1hhjihhhNhNubh)}(hhh](h)}(h'void synchronize_rcu_tasks_trace (void)h]h)}(h&void synchronize_rcu_tasks_trace(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhhjhMubj)}(hsynchronize_rcu_tasks_traceh]j)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj|hhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hj|hhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]j)}(h'wait for a trace rcu-tasks grace periodh]h'wait for a trace rcu-tasks grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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&]uh1j-hj&ubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhj"ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jChj"ubeh}(h]h ]h"]h$]h&]uh1j!hj=hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjubj)}(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().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$rcu_barrier_tasks_trace (C function)c.rcu_barrier_tasks_tracehNtauh1hhjihhhNhNubh)}(hhh](h)}(h#void rcu_barrier_tasks_trace (void)h]h)}(h"void rcu_barrier_tasks_trace(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hrcu_barrier_tasks_traceh]j)}(hrcu_barrier_tasks_traceh]hrcu_barrier_tasks_trace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhMubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhMubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h4Wait for in-flight call_rcu_tasks_trace() callbacks.h]h4Wait for in-flight call_rcu_tasks_trace() callbacks.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjEjjEjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjIubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjnh]hvoid}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjlubah}(h]h ]h"]h$]h&]uh1j'hW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjhubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjhubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhKhjIubj)}(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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./kernel/rcu/tasks.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_cpu_stall_reset (void)h]h)}(hvoid rcu_cpu_stall_reset(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hrcu_cpu_stall_reseth]j)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj#ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h6restart stall-warning timeout for current grace periodh]h6restart stall-warning timeout for current grace period}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjmjjmjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjqubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjqubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjqubj)}(h"The caller must disable hard irqs.h]h"The caller must disable hard irqs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhjihhhNhNubh)}(hhh](h)}(h@int rcu_stall_chain_notifier_register (struct notifier_block *n)h]h)}(h?int rcu_stall_chain_notifier_register(struct notifier_block *n)h](h)}(hinth]hint}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMJubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj3hMJubj)}(h!rcu_stall_chain_notifier_registerh]j)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj!hhhj3hMJubj/)}(h(struct notifier_block *n)h]j5)}(hstruct notifier_block *nh](j;)}(hj>h]hstruct}(hjbhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj^ubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjHsb#c.rcu_stall_chain_notifier_registerasbuh1hhj^ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjZubah}(h]h ]h"]h$]h&]j,j-uh1j.hj!hhhj3hMJubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj3hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMJhjhhubj)}(hhh]j)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMJubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMNhjubj)}(hhh]j")}(h+``struct notifier_block *n`` Entry to add. h](j()}(h``struct notifier_block *n``h]j.)}(hj%h]hstruct notifier_block *n}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj#ubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMKhjubjD)}(hhh]j)}(h Entry to add.h]h Entry to add.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hMKhj;ubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hj:hMKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMMhjubj)}(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 }(hjvhhhNhNubj)}(h **action**h]haction}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh passed to a notifier will be }(hjvhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh or friends. The }(hjvhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMMhjubj)}(h+Returns 0 on success, ``-EEXIST`` on error.h](hReturns 0 on success, }(hjhhhNhNubj.)}(h ``-EEXIST``h]h-EEXIST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubh on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhjihhhNhNubh)}(hhh](h)}(hBint rcu_stall_chain_notifier_unregister (struct notifier_block *n)h]h)}(hAint rcu_stall_chain_notifier_unregister(struct notifier_block *n)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMaubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMaubj)}(h#rcu_stall_chain_notifier_unregisterh]j)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhj hMaubj/)}(h(struct notifier_block *n)h]j5)}(hstruct notifier_block *nh](j;)}(hj>h]hstruct}(hj9hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj5ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjYmodnameN classnameNjwjz)}j}]j)}jsjsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhj5ubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hj h]hn}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj1ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhj hMaubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj hMaubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMahjhhubj)}(hhh]j)}(h Remove an RCU CPU stall notifierh]h Remove an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMahjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMaubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMehjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMbhjubjD)}(hhh]j)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMdhjubj)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMdhjubj)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hj\hhhNhNubj.)}(h ``-ENOENT``h]h-ENOENT}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj\ubh on failure.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./kernel/rcu/tree_stall.hhMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ rcu_read_lock_trace (C function)c.rcu_read_lock_tracehNtauh1hhjihhhNhNubh)}(hhh](h)}(hvoid rcu_read_lock_trace (void)h]h)}(hvoid rcu_read_lock_trace(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK&ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK&ubj)}(hrcu_read_lock_traceh]j)}(hrcu_read_lock_traceh]hrcu_read_lock_trace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK&ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK&ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK&hjhhubj)}(hhh]j)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK&ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjjjjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK*hj ubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hjEh]hvoid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjCubah}(h]h ]h"]h$]h&]uh1j'hc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKhj?ubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhKhj[ubah}(h]h ]h"]h$]h&]uh1jChj?ubeh}(h]h ]h"]h$]h&]uh1j!hjZhKhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKhj ubj)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK'hj ubj)}(hCFor more details, please see the documentation for rcu_read_lock().h]hCFor more details, please see the documentation for rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK.hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"rcu_read_unlock_trace (C function)c.rcu_read_unlock_tracehNtauh1hhjihhhNhNubh)}(hhh](h)}(h!void rcu_read_unlock_trace (void)h]h)}(h void rcu_read_unlock_trace(void)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK>ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK>ubj)}(hrcu_read_unlock_traceh]j)}(hrcu_read_unlock_traceh]hrcu_read_unlock_trace}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhK>ubj/)}(h(void)h]j5)}(hvoidh]h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhK>ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjhhubj)}(hhh]j)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK>hj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjSjjSjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKBhjWubj)}(hhh]j")}(h``void`` no arguments h](j()}(h``void``h]j.)}(hj|h]hvoid}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjzubah}(h]h ]h"]h$]h&]uh1j'hc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKhjvubjD)}(hhh]j)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jChjvubeh}(h]h ]h"]h$]h&]uh1j!hjhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKhjWubj)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhK?hjWubj)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcupdate_trace.hhKChjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsynchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhjihhhNhNubh)}(hhh](h)}(hsynchronize_rcu_multh]h)}(hsynchronize_rcu_multh]j)}(hsynchronize_rcu_multh]j)}(hjh]hsynchronize_rcu_mult}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK'ubah}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj"hK'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hK'hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj"hK'ubeh}(h]h ](jqmacroeh"]h$]h&]jjqjj;jj;jjjuh1hhhhjihNhNubj)}(h``synchronize_rcu_mult (...)``h]j.)}(hjAh]hsynchronize_rcu_mult (...)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj?ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK)hjihhubj<8)}(h-Wait concurrently for multiple grace periods h]j)}(h,Wait concurrently for multiple grace periodsh]h,Wait concurrently for multiple grace periods}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK'hjWubah}(h]h ]h"]h$]h&]uh1j;8hjihK'hjihhubj)}(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](j)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK+hjpubj)}(hhh]j")}(hL``...`` List of call_rcu() functions for different grace periods to wait on h](j()}(h``...``h]j.)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'hb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK(hjubjD)}(hhh]j)}(hCList of call_rcu() functions for different grace periods to wait onh]hCList of call_rcu() functions for different grace periods to wait on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK(hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK(hjubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK*hjpubj)}(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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK*hjpubj)}(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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK1hjpubj)}(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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcupdate_wait.hhK6hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_init (C function) c.rcuref_inithNtauh1hhjihhhNhNubh)}(hhh](h)}(h2void rcuref_init (rcuref_t *ref, unsigned int cnt)h]h)}(h1void rcuref_init(rcuref_t *ref, unsigned int cnt)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhKubj)}(h rcuref_inith]j)}(h rcuref_inith]h rcuref_init}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj/hhhjAhKubj/)}(h!(rcuref_t *ref, unsigned int cnt)h](j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjumodnameN classnameNjwjz)}j}]j)}jsjVsb c.rcuref_initasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubj5)}(hunsigned int cnth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcnth]hcnt}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjhubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj/hhhjAhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj+hhhjAhKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhKhj(hhubj)}(hhh]j)}(hBInitialize a rcuref reference count with the given reference counth]hBInitialize a rcuref reference count with the given reference count}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj& hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjA jjA jjjuh1hhhhjihNhNubj)}(h**Parameters** ``rcuref_t *ref`` Pointer to the reference count ``unsigned int cnt`` The initial reference count typically '1'h](j)}(h**Parameters**h]j)}(hjK h]h Parameters}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjE ubj)}(hhh](j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjj h]h rcuref_t *ref}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjh ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjd ubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChjd ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhja ubj")}(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&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj ubjD)}(hhh]j)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhja ubeh}(h]h ]h"]h$]h&]uh1jhjE ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_read (C function) c.rcuref_readhNtauh1hhjihhhNhNubh)}(hhh](h)}(h(unsigned int rcuref_read (rcuref_t *ref)h]h)}(h'unsigned int rcuref_read(rcuref_t *ref)h](h)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hKubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhj hKubh)}(h h]h }(hj( hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hKubj)}(h rcuref_readh]j)}(h rcuref_readh]h rcuref_read}(hj: hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj6 ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hKubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjY hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjV ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj[ modnameN classnameNjwjz)}j}]j)}jsj< sb c.rcuref_readasbuh1hhjR ubh)}(h h]h }(hjy hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjR ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR ubj)}(hrefh]href}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjR ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjN ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhj hhubj)}(hhh]j)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./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.)}(hj h]h rcuref_t *ref}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj ubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h **Return**h]j)}(hj: h]hReturn}(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:432: ./include/linux/rcuref.hhK!hj ubj)}(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().}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK!hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_is_dead (C function)c.rcuref_is_deadhNtauh1hhjihhhNhNubh)}(hhh](h)}(h#bool rcuref_is_dead (rcuref_t *ref)h]h)}(h"bool rcuref_is_dead(rcuref_t *ref)h](h)}(hjoh]hbool}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK0ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ hhhj hK0ubj)}(hrcuref_is_deadh]j)}(hrcuref_is_deadh]hrcuref_is_dead}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj{ hhhj hK0ubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj modnameN classnameNjwjz)}j}]j)}jsj sbc.rcuref_is_deadasbuh1hhj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrefh]href}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj{ hhhj hK0ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjw hhhj hK0ubah}(h]jr ah ](jjeh"]h$]h&]jj)jhuh1hhj hK0hjt hhubj)}(hhh]j)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK0hj hhubah}(h]h ]h"]h$]h&]uh1jhjt hhhj hK0ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj; jj; jjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjE h]h Parameters}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK4hj? ubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjd h]h rcuref_t *ref}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjb ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK1hj^ ubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy hK1hjz ubah}(h]h ]h"]h$]h&]uh1jChj^ ubeh}(h]h ]h"]h$]h&]uh1j!hjy hK1hj[ ubah}(h]h ]h"]h$]h&]uh1jhj? ubj)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK3hj? ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK3hj? ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_get (C function) c.rcuref_gethNtauh1hhjihhhNhNubh)}(hhh](h)}(hbool rcuref_get (rcuref_t *ref)h]h)}(hbool rcuref_get(rcuref_t *ref)h](h)}(hjoh]hbool}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKBubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hKBubj)}(h rcuref_geth]j)}(h rcuref_geth]h rcuref_get}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj hKBubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hj# hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetj% modnameN classnameNjwjz)}j}]j)}jsj sb c.rcuref_getasbuh1hhj ubh)}(h h]h }(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrefh]href}(hj^ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hj ubah}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj hKBubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhj hhhj hKBubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKBhj hhubj)}(hhh]j)}(h1Acquire one reference on a rcuref reference counth]h1Acquire one reference on a rcuref reference count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKBhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKBubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj jj jjjuh1hhhhjihNhNubj)}(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 **Return** False if the attempt to acquire a reference failed. This happens when the last reference has been put already True if a reference was successfully acquiredh](j)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKFhj ubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hj h]h rcuref_t *ref}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j-hj ubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKChj ubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKChj ubah}(h]h ]h"]h$]h&]uh1jChj ubeh}(h]h ]h"]h$]h&]uh1j!hj hKChj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKEhj ubj)}(h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.h]h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKEhj ubj)}(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}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKGhj ubj)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKKhj ubj<8)}(hFalse if the attempt to acquire a reference failed. This happens when the last reference has been put already True if a reference was successfully acquiredh](j)}(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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKKhjPubj)}(h-True if a reference was successfully acquiredh]h-True if a reference was successfully acquired}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKNhjPubeh}(h]h ]h"]h$]h&]uh1j;8hjbhKKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhjihhhNhNubh)}(hhh](h)}(h'bool rcuref_put_rcusafe (rcuref_t *ref)h]h)}(h&bool rcuref_put_rcusafe(rcuref_t *ref)h](h)}(hjoh]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKyubj)}(hrcuref_put_rcusafeh]j)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjhhhjhKyubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsbc.rcuref_put_rcusafeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjhhhjhKyubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhjhKyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjhhubj)}(hhh]j)}(hhh]j)}(h;Release one reference for a rcuref reference count RCU safeh]j)}(hjAh]h;Release one reference for a rcuref reference count RCU safe}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKyhj?ubah}(h]h ]h"]h$]h&]uh1jhj<hhhjPhNubah}(h]h ]h"]h$]h&]jjuh1jhjPhKyhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKyubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjfjjfjjjuh1hhhhjihNhNubj)}(hX**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. **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. 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.h](j)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK}hjjubj)}(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&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKzhjubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKzhjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjjubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK|hjjubj)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhK|hjjubj)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjjubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjjubj<8)}(hXLTrue 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. 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.h](j)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.h]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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubeh}(h]h ]h"]h$]h&]uh1j;8hj(hKhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrcuref_put (C function) c.rcuref_puthNtauh1hhjihhhNhNubh)}(hhh](h)}(hbool rcuref_put (rcuref_t *ref)h]h)}(hbool rcuref_put(rcuref_t *ref)h](h)}(hjoh]hbool}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjkhKubj)}(h rcuref_puth]j)}(h rcuref_puth]h rcuref_put}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hjZhhhjkhKubj/)}(h(rcuref_t *ref)h]j5)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjsb c.rcuref_putasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjubah}(h]h ]h"]h$]h&]j,j-uh1j.hjZhhhjkhKubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjVhhhjkhKubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjkhKhjShhubj)}(hhh]j)}(hhh]j)}(h2Release one reference for a rcuref reference counth]j)}(hjh]h2Release one reference for a rcuref reference count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjkhKubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjj,jj,jjjuh1hhhhjihNhNubj)}(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. **Return** 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](j)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj0ubj)}(hhh]j")}(h1``rcuref_t *ref`` Pointer to the reference count h](j()}(h``rcuref_t *ref``h]j.)}(hjUh]h rcuref_t *ref}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjSubah}(h]h ]h"]h$]h&]uh1j'h[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjOubjD)}(hhh]j)}(hPointer to the reference counth]hPointer to the reference count}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhKhjkubah}(h]h ]h"]h$]h&]uh1jChjOubeh}(h]h ]h"]h$]h&]uh1j!hjjhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj0ubj)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj0ubj)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj0ubj)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhj0ubj<8)}(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](j)}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:432: ./include/linux/rcuref.hhKhjubeh}(h]h ]h"]h$]h&]uh1j;8hjhKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhjihhhNhNubh)}(hhh](h)}(hebool same_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h]h)}(hdbool same_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](h)}(hjoh]hbool}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK3ubh)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj1hK3ubj)}(hsame_state_synchronize_rcu_fullh]j)}(hsame_state_synchronize_rcu_fullh]hsame_state_synchronize_rcu_full}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubah}(h]h ](j'j(eh"]h$]h&]j,j-uh1j hj hhhj1hK3ubj/)}(h@(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j5)}(hstruct rcu_gp_oldstate *rgosp1h](j;)}(hj>h]hstruct}(hj`hhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hj\ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j)}jsjFsb!c.same_state_synchronize_rcu_fullasbuh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hrgosp1h]hrgosp1}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubj5)}(hstruct rcu_gp_oldstate *rgosp2h](j;)}(hj>h]hstruct}(hjhhhNhNubah}(h]h ]jGah"]h$]h&]uh1j:hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjqreftypejs reftargetjmodnameN classnameNjwjz)}j}]j!c.same_state_synchronize_rcu_fullasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrgosp2h]hrgosp2}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj,j-uh1j4hjXubeh}(h]h ]h"]h$]h&]j,j-uh1j.hj hhhj1hK3ubeh}(h]h ]h"]h$]h&]j,j-juh1hjjhjhhhj1hK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hK3hjhhubj)}(hhh]j)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK3hjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hK3ubeh}(h]h ](jqfunctioneh"]h$]h&]jjqjjkjjkjjjuh1hhhhjihNhNubj)}(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](j)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK7hjoubj)}(hhh](j")}(h:``struct rcu_gp_oldstate *rgosp1`` First old-state value. h](j()}(h"``struct rcu_gp_oldstate *rgosp1``h]j.)}(hjh]hstruct rcu_gp_oldstate *rgosp1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK4hjubjD)}(hhh]j)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK4hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK4hjubj")}(h;``struct rcu_gp_oldstate *rgosp2`` Second old-state value. h](j()}(h"``struct rcu_gp_oldstate *rgosp2``h]j.)}(hjh]hstruct rcu_gp_oldstate *rgosp2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j-hjubah}(h]h ]h"]h$]h&]uh1j'h\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK5hjubjD)}(hhh]j)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK5hjubah}(h]h ]h"]h$]h&]uh1jChjubeh}(h]h ]h"]h$]h&]uh1j!hjhK5hjubeh}(h]h ]h"]h$]h&]uh1jhjoubj)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK7hjoubj)}(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}(hj8hhhNhNubah}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:434: ./include/linux/rcutree.hhK7hjoubj)}(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](hhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubeh}(h]read-copy-update-rcuah ]h"]read-copy update (rcu)ah$]h&]uh1hhjXhhhhhMubeh}(h]synchronization-primitivesah ]h"]synchronization primitivesah$]h&]uh1hhhhhhhhMubeh}(h]the-linux-kernel-apiah ]h"]the linux kernel apiah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj5footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}f1](jj׹esrefids}j](jj׹esnameids}(jjjVjSjlajiajxjujdajaajjjHjEjjj^jjjjjj jjjjjj@j@j^Wj[WjObjLbjBkj?kjjj~j{jjjjjjjjj'j'j'j'j.j.j *j *j.j.j+j+j.j.j.j.jwjwj2j2juj|ujwjwjm{jj{jjjFjCjZjZjxjxjUjRjjjju nametypes}(jjVjlajxjdajjHjj^jjj jjj@j^WjObjBkjj~jjjjj'j'j.j *j.j+j.j.jwj2jujwjm{jjFjZjxjUjjuh}(jhjShhhjjjjjjjwj|j j j j jjjNjSjRjWjVj[j_jdjjj,j1jjjj j!j!jO#jT#j$j$j&j&j\(ja(j+j+jG/jL/jf1jk1jj3jo3j5j5j7j7jc9jh9j:j:j[<j`<j=j=j>j>jp@ju@jAjAj CjCjIDjNDjEjEjFjFj/Hj4HjIjIjgKjlKjLjLj+Nj0NjOjOjPjPjSRjXRjSjSjKUjPUjVjVjCXjHXjYjYj[j[j<]jA]j^j^jm`jr`j bjbjcjcjejejfjfj+hj0hjSjjXjjVlj[ljYnj^njojojEqjJqjlsjqsjujujxjxjzjzj {j%{j=|jB|j}j}jiajYjujxjjjKjPjjjcjhjjjjjސjjjjjj4j9jjjjjvj{jդjڤjjjjjjjjj;j@jɳjγj;j@j j%jjjjjjjj!jjjjjjjBjGjCjHjjjjjLjQjaaj{jjjmjrj}jjjjjj?jDjmjrjjj/j4jjjjjjj+j0j"j'jj jjj@jEjPjUj` je jI jN jjjojjj=jBjjjGjLjjj5j:jjj+"j0"j$j$j&j&j)j )j+j+j@.jE.j0j0j\3ja3j5j5j7j7j9j9j-;j2;j,=j1=j&?j+?j@j@jUBjZBjCjCjAEjFEjFjFj3Hj8HjIjIjLjLjNjNjQjQjSjSjVjVj8Yj=YjF[jK[jT]jY]j]_jb_jjoajEjajajajcjcjejejgjgjijijkjkjmjmjojojqjqjsjsjujujxj xjzjzj|j#|j$~j)~jjjjjj jjKjjjjj,j1j<jAjjjpjujjj'j,jjj;j@jŪjʪjjjjjj׹jj&j j%jjjpjuj;j@jjjjjTjYjjjjjjjjj j%jjjjjjjjjjjjjjjjjDjIjjjPjUjjjjjjjjjjjj jjjxj}j+j0jjj j jL jQ jjjjjOjTjjj@jjjjjj jjjjNjSjjjrjwj j j!j!j$j$j&j&j'j'j)j)j+j+j.j.j/j/j{1j1jT3jY3j-5j25j7j7j8j8j:j:j<j<j[?j`?j[Wj@j@j@jTCjYCjFjFjHjHjIjIj8Mj=MjOjOj_RjdRjTjTjLbjaWj~WjWj'Yj,Yj|ZjZj[j[j\j\j]j]j^j_j`j `j=ajBaj?kjRbjobjtbjjdjodjofjtfjhjhjjj jjjEkjbkjgkj%mj*mjojojfrjkrjtjtjvjvjxjxjzjzj|j|j8~j=~jjj jjvj{jjj)j.j{jj j%jjjjjjjjjjjojtjjj8j=jjjjj:j?jjj jjjjDjIjnjsj5j:jjjѱjֱj jjIjNjjjjjjj,j1jjjjjjjj!jrjwjVj[jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj j%jj jjjjj3j8jjjjjjjzjjj jjjojtjWj\j?jDjJjOjjjjj jjjjEjJj'jj'jj"j'jjjj jjjjjTjYjjj( j- j\ ja jr jw j)j.jjjjjXj]jjj,j1j j%jjjjjjjjj!j!j#j#j9%j>%j.j'j *j'j'j'j.j*j+j*j.j+j.j.jwj.j2j.j/j /j0j0j|uj!2j>2jC2j4j4j8j8j;j;j >j%>j@j@j7Bjj]>jo@jt@jABjFBjDjDjIj IjFMjKMjpOjuOjQjQjSjSjUjUjWjWjXjXjO[jT[j\j\j_j_jajajdjdjfjfjijij.kj3kjljljunjznjpjpj(rj-rjctjhtjujujxjxj{j{jQ}jV}jjj,j1j<jAjLjQj܉jj(j-jjjjjӑjؑj jjŕjʕj֘jۘjjjjjXj]jjjjjjjЪjժjjjjjӰjذj{jjjjjjIjNj_jdjjjjjojdjijj#jjjjjjjjjjjjj+j0jSjXjjj(j-jhjmjjjjjGjLjjjkjpj j%jjjcjhjFjKj\jajjj~jjjjSjXjjjjj' j, jO jT jjjjjVj[jjj@jEjjjjjjjh"jm"j#j#j<&jA&j)j)j+j+j.j.jW0j\0j73j<3j5j5j9j9j=j=jW?j\?j@j@j DjDjGjGjAIjFIjJjJjPNjUNjQjQjTjTj+Wj0Wj\YjaYjZjZj^\jc\j]j]j\_ja_jaj ajbjbj-dj2djejejgjgjhjhjjjjjkjkjmjmjqjqj)tj.tjcxjhxjyjyjjp{j{j{jG~jL~jjƀjBjGjjj jjjjjjjjljqjjjJjOjjjUjZjjƚjsjxj.j3jjjXj]jjjcjhjejjj\jaj8j=jjjxj}j-j2jjjwj|jjjjjojtjjjjjyj~jBjGjjjCjjjjjjKjPjZjIjfjkjjjj j%j*jjjjj|jj`jejDjIjjjyj~jjjSjXjjjzjjbjgjajfjjjjjjjMjRj(j-jXj]jjjjjOjTjjjQjVjjj jje jj j' j, jqjvjjjmjrjjjj jxj}j!j !j0#j5#j%j%j&j&jw*j|*j-j-j0j0j3j3jU5jZ5j6j6j:j:jH>jM>jUAjZAjBjBjDjDjSFjXFj"Hj'Hj0Jj5JjFLjKLjMjMjOjOjRjRjTjTjLVjQVjXjXjxjZjZjZjR]jW]j<`jA`j]djbdjHfjMfjijij ljlj3nj8njpjpj&sj+sjtjtjDvjIvjRjxj3yj8yj {j{j|j|j~j~j@jEjDjIjjjjjjjj jjjjj[j`j jjfjkjj jjj3j8jÛjțj{jjvj{jjjjj+j0j&j+j~jjְj۰jͳjҳjĶjɶjjjjjajfj4j9jjjjjZj_jsjxjjj:j?jjjYj^jojtjjjjjRjWjljqjjj'j,jjjjjjjjjjj9j>jajfjjj jjjXjjijjjjjjjxj}jjjjjjjSjXjjjjjjjjj0j5jj j.j3jsjxj j j j j] jb jg jl jqjvj{jjjjj j>jCjujzjjjjjjjVj[jjj*j/jjj j j"j"j#j#j)&j.&j`'je'jb(jg(j)j)jY+j^+j,j,j.j.j1j1jv2j{2j 4j4jM5jR5j6j6j38j88j9j9j;j;j=j=j|?j?j?AjDAjgBjlBjCjCjDjDj7FjqjCqjzsjsjiujnujXwj]wjGyjLyj~zjzj{j{j6}j;}j~j~j7j<jjjjjjj:j?j׉j܉jjjljqj jjjĐjjjjjjjܗjjjjۛjjjjfjkjjjjj|jj=jBjܬjjgjlj+j0jjjjj4j9jjjMjRjjjjjjjjjjj jj5j:j^jcjjjjjSjXjjjjj jj&j+jjjjjjjljqjjjjjjjFjKjjj!j&jjj_jdjjj;j@j)j.jjjjjjjj!jbjgu(jsjxjjjjjjjjjjjjjjj&j+j j jr jw j j jjjQjVjju footnote_refs}j](jj׹es citation_refs} autofootnotes]j&aautofootnote_refs](jj׹esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.